Closed as not planned
Description
Describe the problem
Hello everyone,
I have files like :
myfile.ino
src/mylib.cpp
src/mylib.h
I get an error at compile time on mylib.h
:
[...]\myfile\src\mylib.h:28:55: error: 'TOTO' was not declared in this scope
In fact, mylib.cpp
is not include in myfile
, because i don't find anyway to avoid compile of mylib.cpp
, I just changed the name of directory from src
to src2
, so my files are now:
myfile.ino
src2/mylib.cpp
src2/mylib.h
But the error is still the same with a wrong directory which doesn't exist anymore (\myfile\src\mylib.h
):
[...]\myfile\src\mylib.h:28:55: error: 'TOTO' was not declared in this scope
The fault occurs when the files are under a subfolder that contains any name starting with s
.
The fault does not occur after I change the folder name to something that does not start with s
.
To reproduce
- Create a sketch.
- Create
src
directory inside. - Create some library inside
src/
which produces a compile error. - Change name of
src/
tos/
. - Compile the sketch again.
Expected behavior
Checking that files still exists in path
Arduino IDE version
2.3.2
Operating system
Windows
Operating system version
10
Issue checklist
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the latest nightly build
- My report contains all necessary details