From 45f49e6c77775214a9deb3bd545a6e953c055f0a Mon Sep 17 00:00:00 2001 From: per1234 Date: Mon, 2 Apr 2018 20:17:22 -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 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 "DebugWireDebuggerProgrammer.ino" needs to be inside a sketch folder named "DebugWireDebuggerProgrammer". Create this folder, move the file, and continue? After clicking "OK" the Arduino IDE currently moves only the file DebugWireDebuggerProgrammer.ino to the new folder, leaving behind the other source files. This causes compilation of the sketch to fail: DebugWireDebuggerProgrammer-master\DebugWireDebuggerProgrammer\DebugWireDebuggerProgrammer.ino:25:26: fatal error: OnePinSerial.h: No such file or directory #include "OnePinSerial.h" --- .../DebugWireDebuggerProgrammer.ino | 0 OnePinSerial.cpp => DebugWireDebuggerProgrammer/OnePinSerial.cpp | 0 OnePinSerial.h => DebugWireDebuggerProgrammer/OnePinSerial.h | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename DebugWireDebuggerProgrammer.ino => DebugWireDebuggerProgrammer/DebugWireDebuggerProgrammer.ino (100%) rename OnePinSerial.cpp => DebugWireDebuggerProgrammer/OnePinSerial.cpp (100%) rename OnePinSerial.h => DebugWireDebuggerProgrammer/OnePinSerial.h (100%) diff --git a/DebugWireDebuggerProgrammer.ino b/DebugWireDebuggerProgrammer/DebugWireDebuggerProgrammer.ino similarity index 100% rename from DebugWireDebuggerProgrammer.ino rename to DebugWireDebuggerProgrammer/DebugWireDebuggerProgrammer.ino diff --git a/OnePinSerial.cpp b/DebugWireDebuggerProgrammer/OnePinSerial.cpp similarity index 100% rename from OnePinSerial.cpp rename to DebugWireDebuggerProgrammer/OnePinSerial.cpp diff --git a/OnePinSerial.h b/DebugWireDebuggerProgrammer/OnePinSerial.h similarity index 100% rename from OnePinSerial.h rename to DebugWireDebuggerProgrammer/OnePinSerial.h