From f95511fa1e8f7d0dd0574f869e704c14a18bc71f Mon Sep 17 00:00:00 2001 From: per1234 Date: Sat, 28 Apr 2018 22:35:47 -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/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 "TWANG.ino" needs to be inside a sketch folder named "TWANG". Create this folder, move the file, and continue? After clicking "OK" the Arduino IDE currently moves only the file TWANG.ino to the new folder, leaving behind the other source files. This causes compilation of the sketch to fail: TWANG-master\TWANG\TWANG.ino:7:18: fatal error: iSin.h: No such file or directory --- Boss.h => TWANG/Boss.h | 0 Conveyor.h => TWANG/Conveyor.h | 0 Enemy.h => TWANG/Enemy.h | 0 Lava.h => TWANG/Lava.h | 0 Particle.h => TWANG/Particle.h | 0 Spawner.h => TWANG/Spawner.h | 0 TWANG.ino => TWANG/TWANG.ino | 0 iSin.h => TWANG/iSin.h | 0 8 files changed, 0 insertions(+), 0 deletions(-) rename Boss.h => TWANG/Boss.h (100%) rename Conveyor.h => TWANG/Conveyor.h (100%) rename Enemy.h => TWANG/Enemy.h (100%) rename Lava.h => TWANG/Lava.h (100%) rename Particle.h => TWANG/Particle.h (100%) rename Spawner.h => TWANG/Spawner.h (100%) rename TWANG.ino => TWANG/TWANG.ino (100%) rename iSin.h => TWANG/iSin.h (100%) diff --git a/Boss.h b/TWANG/Boss.h similarity index 100% rename from Boss.h rename to TWANG/Boss.h diff --git a/Conveyor.h b/TWANG/Conveyor.h similarity index 100% rename from Conveyor.h rename to TWANG/Conveyor.h diff --git a/Enemy.h b/TWANG/Enemy.h similarity index 100% rename from Enemy.h rename to TWANG/Enemy.h diff --git a/Lava.h b/TWANG/Lava.h similarity index 100% rename from Lava.h rename to TWANG/Lava.h diff --git a/Particle.h b/TWANG/Particle.h similarity index 100% rename from Particle.h rename to TWANG/Particle.h diff --git a/Spawner.h b/TWANG/Spawner.h similarity index 100% rename from Spawner.h rename to TWANG/Spawner.h diff --git a/TWANG.ino b/TWANG/TWANG.ino similarity index 100% rename from TWANG.ino rename to TWANG/TWANG.ino diff --git a/iSin.h b/TWANG/iSin.h similarity index 100% rename from iSin.h rename to TWANG/iSin.h