Compilation fails when case of .ino file does not match case of folder it is located in #11551
Labels
Component: Compilation
Related to compilation of Arduino sketches
Type: Bug
Type: Duplicate
Another item already exists for this topic
I have a small program with 1
.ino
file and 1.h
file (here it is: https://github.com/vhar/withrottle). It's for esp8266 core, but it probably doesn't matter.The .ino file is named
WiThrottle.ino
, the header isConfig.h
.If the project folder is named
withrottle
(lowercase), then when I clickVerify/Compile
in Arduino IDE, the IDE converts Config.h into Config.h.cpp, adds stuff from .ino file into it, which makes the order of includes wrong.Config.h
uses types that are included in .ino file, but in resulting .cpp the contents of Config.h goes before the contents of .ino file, so compilation fails.If the project folder is named
WiThrottle
, than compilation goes fine (the cpp file is made from .ino file, not from .h file).Since this is happening on Windows (and Windows filesystem is case-insensitive), this looks like a hard to find and hard to fix bug.
Tested on IDE versions 1.8.13, 1.8.15, Windows x64
The text was updated successfully, but these errors were encountered: