Spurious "No such file or directory" error when library's path contains post-ASCII characters #1239
Open
3 tasks done
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
If a library is installed under a path that contains Cyrillic characters, Arduino CLI is unable to discover it.
Compilation of sketches with an
#include
directive for a header file of a valid library fails with a "No such file or directory
" error.To reproduce
Expected behavior
Any path supported by the file system is also supported by the library discovery system
Arduino CLI version
Original report
Arduino IDE 1.8.10
Last verified with
a527c7c
Operating system
Windows
Operating system version
Additional context
The issue is not specific to Cyrillic. For example, it also occurs with a folder named
文
orΚώστας
.The fault only occurs on Windows. I am not able to reproduce it on Ubuntu 22.04 or macOS Ventura machines.
After changing system's locale from English to Bulgarian (win1251) + restart, the compilation succeeded. Unfortunately this is not viable solution, because we have many computers (>150) and changing system locale requires admin privileges.
My suggestion is that the IDE is not using the unicode version of the API when searching for libraries?
This is more likely to occur for those using Microsoft Onedrive because the default location of the sketchbook is:
The
<localized "Documents">
in the path above is a placeholder the word "Documents" localized for the user's locale (e.g.,文档
orДокументы
)Additional reports
Workaround
Arduino CLI
directories.user
location that does not contain any non-ASCII characters in its path:https://arduino.github.io/arduino-cli/latest/configuration/
directories.user
location to the new location.Arduino IDE
The "Preferences" dialog will open.
The "Preferences" dialog will close.
Issue checklist
The text was updated successfully, but these errors were encountered: