Skip to content
This repository was archived by the owner on Dec 31, 2018. It is now read-only.

Move sketch to appropriately named subfolder #1

Merged
merged 1 commit into from
Apr 1, 2018
Merged

Move sketch to appropriately named subfolder #1

merged 1 commit into from
Apr 1, 2018

Conversation

per1234
Copy link

@per1234 per1234 commented Apr 1, 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 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 "Arduino-MoonLite-focuser.ino" needs to be inside a sketch folder named "Arduino-MoonLite-focuser".
Create this folder, move the file, and continue?

After clicking "OK" the Arduino IDE currently moves only the file Arduino-MoonLite-focuser.ino to the new folder, leaving behind Config.h. This causes compilation of the sketch to fail:

Arduino-MoonLite-focuser-master\Arduino-MoonLite-focuser\Arduino-MoonLite-focuser.ino:20:20: fatal error: Config.h: No such file or directory

 #include "Config.h"

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 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 "Arduino-MoonLite-focuser.ino" needs to be inside a sketch folder named "Arduino-MoonLite-focuser".
Create this folder, move the file, and continue?

After clicking "OK" the Arduino IDE currently moves only the file Arduino-MoonLite-focuser.ino to the new folder, leaving behind Config.h. This causes compilation of the sketch to fail:

Arduino-MoonLite-focuser-master\Arduino-MoonLite-focuser\Arduino-MoonLite-focuser.ino:20:20: fatal error: Config.h: No such file or directory

 #include "Config.h"
@marcocipriani01
Copy link
Owner

Thanks for being interested in this project! I'll merge the pull request. Stay tuned for further commits, I'm going to update the brackets and the Readme to explain everything in a better way. Check out AstroAllInOne to control I/O pins using one Arduino only!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants