Skip to content

Commit 84c04b3

Browse files
committed
Move sketch to appropriately named subfolder
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 "arduino-midi-synth.ino" needs to be inside a sketch folder named "arduino-midi-synth". Create this folder, move the file, and continue? After clicking "OK" the Arduino IDE currently moves only the file arduino-midi-synth.ino to the new folder, leaving behind the other source files. This causes compilation of the sketch to fail: arduino-midi-sound-module-master\arduino-midi-synth\arduino-midi-synth.ino:82:18: fatal error: main.h: No such file or directory 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 the contents of a repository the branch/release/commit name is appended to the folder name, resulting in the sketch and folder names still not matching.
1 parent 632f033 commit 84c04b3

28 files changed

+0
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)