Skip to content

Conversation

@per1234
Copy link

@per1234 per1234 commented Jan 15, 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 requirement the Arduino IDE presents a dialog:

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

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

fatal error: options.h: No such file or directory

Although the repository name does match the sketch name, it is common for people to use GitHub's Clone or Download > Download ZIP feature to download sketches, rather than doing a Git clone, and GitHub appends the branch/tag/commit to the downloaded folder name, which will cause the folder to still not match the sketch name.

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 requirement the Arduino IDE presents a dialog:

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

After clicking "OK" the Arduino IDE currently moves only the file lighthub.ino to the new folder, leaving behind the other sketch files. This causes compilation of the sketch to fail "fatal error: options.h: No such file or directory".

Although the repository name does match the sketch name, it is common for people to use GitHub's "Clone or Download > Download ZIP" feature to download sketches, rather than doing a Git clone, and GitHub appends the branch/tag/commit to the downloaded folder name, which will cause the folder to still not match the sketch name.
Copy link
Owner

@anklimov anklimov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contribution.
Suggested changes looking reasonable, taking in account ZIP-download issue. I will move sources for "lighthub" folder at next commit manually(because many other changes commited last day and conflict in branch can not been resolved easily)
My suggestion for you - to re-fork project to have consistent version

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

Labels

None yet

2 participants