Skip to content

Using --library flag does not compile sketches #2240

@aliphys

Description

@aliphys

Describe the problem

I cannot compile a sketch when providing a custom library location with the --library flag.

To reproduce

  1. Clone the nicla-sense-me-fw repo and open a terminal in the top most directory within VS Code
  2. Run the command 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
  3. After over ten minutes, the compilation does not complete.

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

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the nightly build
  • My report contains all necessary details

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions