-
-
Notifications
You must be signed in to change notification settings - Fork 398
Using --library
flag does not compile sketches
#2240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here is an example of the output. Terminal output
|
--library
flag does not compile sketches--library
flag does not compile sketches
Hello @aliphys, I was not able to reproduce your issue. Here are the commands I ran.
Output
Once I installed the required library
The same happened using the latest CLI version. |
@MatteoPologruto This issue is resolved when reverting back to 2661f5d (0.32.2). Terminal Output for Arduino-cli 0.32.2PS D:\Github\Arduino\nicla-sense-me-fw> arduino-cli compile --fqbn arduino:mbed_nicla:nicla_sense --library "D:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2" "D:\GitHub\Arduino\nicla-sense-me-fw\Arduino_BHY2\examples\Standalone\Standalone.ino" --verbose FQBN: arduino:mbed_nicla:nicla_sense Using board 'nicla_sense' from platform in folder: C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.0.4 Using core 'arduino' from platform in folder: C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_nicla\4.0.4loading library from D:\Users\user\Documents\Arduino\libraries__MACOSX: invalid library: no header files found Used library Version Path Used platform Version Path |
--library
flag does not compile sketches--library
flag does not compile sketches
Describe the problem
I cannot compile a sketch when providing a custom library location with the
--library
flag.To reproduce
arduino-cli compile --fqbn arduino:mbed_nicla:nicla_sense --library "C:\Users\USERNAME\Documents\GitHub\nicla-sense-me-fw\Arduino_BHY2" "C:\Users\USERNAME\Documents\GitHub\nicla-sense-me-fw\Arduino_BHY2\examples\Standalone\Standalone.ino" --verbose
Expected behavior
I can compile the sketch with a custom library without any problems. Or, if there is any a helpful message is shown.
Arduino CLI version
0,33,1
Operating system
Windows
Operating system version
Windows 11
Additional context
--verbose
nothing is printed to the terminal console.Issue checklist
The text was updated successfully, but these errors were encountered: