Skip to content

Conversation

@per1234
Copy link
Contributor

@per1234 per1234 commented Apr 1, 2018

The Arduino IDE requires that a sketch be located in a folder of the same name. When opening a file that does not meet this sketch/folder name matching requirement the Arduino IDE presents a dialog:

The file "__ATMOSCAN_MASTER_V2.0.ino" needs to be inside a sketch folder named "__ATMOSCAN_MASTER_V2.0".
Create this folder, move the file, and continue?

After clicking "OK" the Arduino IDE currently moves only the file __ATMOSCAN_MASTER_V2.0.ino to the new folder, leaving behind the other source files. This causes compilation of the sketch to fail:

__ATMOSCAN_MASTER_V2.0.ino:1:67: fatal error: GlobalDefinitions.h: No such file or directory

 #include "GlobalDefinitions.h"

The alternative solution you might be thinking of is to change the sketch name to match the repository name. This would work for people who clone the repository but when GitHub's popular Clone or download > Download ZIP feature is used to download a repository the branch/release/commit name is appended to the folder name, resulting in the sketch and folder names still not matching.

The Arduino IDE requires that a sketch be located in a folder of the same name. When opening a file that does not meet this sketch/folder name matching requirement the Arduino IDE presents a dialog:

The file "__ATMOSCAN_MASTER_V2.0.ino" needs to be inside a sketch folder named "__ATMOSCAN_MASTER_V2.0".
Create this folder, move the file, and continue?

After clicking "OK" the Arduino IDE currently moves only the file __ATMOSCAN_MASTER_V2.0.ino to the new folder, leaving behind the other source files. This causes compilation of the sketch to fail:

__ATMOSCAN_MASTER_V2.0.ino:1:67: fatal error: GlobalDefinitions.h: No such file or directory

 #include "GlobalDefinitions.h"

The alternative solution you might be thinking of is to change the sketch name to match the repository name. This would work for people who clone the repository but when GitHub's popular Clone or download > Download ZIP feature is used to download a repository the branch/release/commit name is appended to the folder name, resulting in the sketch and folder names still not matching.
@per1234
Copy link
Contributor Author

per1234 commented Apr 24, 2018

@MarcFinns I have resolved the merge conflicts caused by your recent commits so this pull request back to being ready for an easy merge.

Please let me know if there's anything I need to do to get this pull request accepted.

@MarcFinns
Copy link
Owner

Hi, thanks. I will look into it as soon as I have a minute. I am on business trip, hectic times... be patient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants