You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It says it can't find a header file inside \tool\libs directory (with #include "header.h") .
Expected behavior
It should find the file like it does when the \libs\ folder is inside the same directory as the sketch (#include "libs/header.h")
Environment
CLI version (output of arduino-cli version):
OS and platform:
Additional context
Looking at the source code it seems like the values passed to --libraries are added to a list but aren't referenced ever again. Maybe this is the cause of the issue.
The text was updated successfully, but these errors were encountered:
it seems that the --libraries flag is causing some issues, we had another report #973 with a different behaviour caused by the same flag and I'm having this investigated.
--libraries strings List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
The path specified via the --libraries flag is to a libraries folder. Like the libraries subfolder of directories.user (AKA "the sketchbook folder"), this is a folder containing libraries, like this:
Bug Report
Current behavior
cmd.exe /r "C:\Users\pc\Documents\tool\arduino-cli.exe" compile "C:\Users\pc\Documents\tool\sketch\sketch.ino" -b arduino:avr:diecimila --libraries "C:\Users\pc\Documents\tool\libs" --output-dir "C:\Users\pc\Documents\tool\sketch\out" --verbose
It says it can't find a header file inside \tool\libs directory (with #include "header.h") .
Expected behavior
It should find the file like it does when the \libs\ folder is inside the same directory as the sketch (#include "libs/header.h")
Environment
arduino-cli version
):Additional context
Looking at the source code it seems like the values passed to --libraries are added to a list but aren't referenced ever again. Maybe this is the cause of the issue.
The text was updated successfully, but these errors were encountered: