Skip to content

Conversation

@per1234
Copy link
Contributor

@per1234 per1234 commented May 28, 2018

The Arduino IDE requires that a sketch be located in a folder of the same name. Although the name of the repository does match the sketch name, when GitHub's popular Clone or download > Download ZIP feature is used to download the contents of a repository the branch/release/commit name is appended to the folder name, causing a mismatch.

When opening a file that does not meet this sketch/folder name matching requirement the Arduino IDE presents a dialog:

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

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

tiny_scope-master\tiny_scope\tiny_scope.ino:18:17: fatal error: adc.h: No such file or directory
The Arduino IDE requires that a sketch be located in a folder of the same name. Although the name of the repository does match the sketch name, when GitHub's popular Clone or download > Download ZIP feature is used to download the contents of a repository the branch/release/commit name is appended to the folder name, causing a mismatch.

When opening a file that does not meet this sketch/folder name matching requirement the Arduino IDE presents a dialog:

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

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

tiny_scope-master\tiny_scope\tiny_scope.ino:18:17: fatal error: adc.h: No such file or directory
@laurb9
Copy link
Owner

laurb9 commented Jun 2, 2018

Thanks. Looks reasonable, I've never tried to download as ZIP but I can see how this could be a problem, even though I don't like the repetitive nested directories this will result in (tiny_scope/tiny_scope/tiny_scope.ino)

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

Labels

None yet

2 participants