I am using Windows 10, and my user name is in Cyrillic letters.
Every library gets recompiled every time I press "Compile button" even if no files were changed. This happens because .d (dependencies) files contain wrong path. Example below shows the problem win RTCLib but you can use any library/code to reproduce
I checked .d files in a temp folder and this is what I found inside:
Describe the problem
I am using Windows 10, and my user name is in Cyrillic letters.
Every library gets recompiled every time I press "Compile button" even if no files were changed. This happens because .d (dependencies) files contain wrong path. Example below shows the problem win RTCLib but you can use any library/code to reproduce
I checked .d files in a temp folder and this is what I found inside:
(must be
C:\Users\ֲВячеслав....
)So no wonder that is "up-to-date" check fails leading to full recompiling. Some paths are Ok tho.
PS: All the
.o
and.a
files do exist in temp folder but get recompiled every timeTo reproduce
Setup environment
Demo
🐛 The "Servo" library was compiled from source instead of using cached objects produced by the previous
compile
command.Now we try again, but this time with a
directories.user
path that only contains ASCII characters:🙂 When
directories.user
was changed to a path that only contains ASCII characters, the library compilation caching system worked as expected.Expected behavior
Expected behaviour: not to recompile files which were not modified
Arduino CLI version
c86ca3012
Operating system
Windows
Operating system version
Additional context
Originally reported at https://forum.arduino.cc/t/ide-2-3-2-very-slow-compiling/1281480
Additional reports
Issue checklist