From ea5a97b8d4f933e68a3a5be95448ff295b2342aa Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 13 Aug 2018 19:06:18 -0700 Subject: [PATCH] Move sketch to appropriately named subfolder 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/tag/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 "G27_Pedals_and_Shifter.ino" needs to be inside a sketch folder named "G27_Pedals_and_Shifter". Create this folder, move the file, and continue? After clicking "OK" the Arduino IDE currently moves only the file G27_Pedals_and_Shifter.ino to the new folder, leaving behind the other source files. This causes compilation of the sketch to fail: fatal error: ./lib/G27PedalsShifter.h: No such file or directory --- .../G27_Pedals_and_Shifter.ino | 0 {src => G27_Pedals_and_Shifter/src}/G27PedalsShifter.cpp | 0 {src => G27_Pedals_and_Shifter/src}/G27PedalsShifter.h | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename G27_Pedals_and_Shifter.ino => G27_Pedals_and_Shifter/G27_Pedals_and_Shifter.ino (100%) rename {src => G27_Pedals_and_Shifter/src}/G27PedalsShifter.cpp (100%) rename {src => G27_Pedals_and_Shifter/src}/G27PedalsShifter.h (100%) diff --git a/G27_Pedals_and_Shifter.ino b/G27_Pedals_and_Shifter/G27_Pedals_and_Shifter.ino similarity index 100% rename from G27_Pedals_and_Shifter.ino rename to G27_Pedals_and_Shifter/G27_Pedals_and_Shifter.ino diff --git a/src/G27PedalsShifter.cpp b/G27_Pedals_and_Shifter/src/G27PedalsShifter.cpp similarity index 100% rename from src/G27PedalsShifter.cpp rename to G27_Pedals_and_Shifter/src/G27PedalsShifter.cpp diff --git a/src/G27PedalsShifter.h b/G27_Pedals_and_Shifter/src/G27PedalsShifter.h similarity index 100% rename from src/G27PedalsShifter.h rename to G27_Pedals_and_Shifter/src/G27PedalsShifter.h