Skip to content

Library is not resolved #279

@sslupsky

Description

@sslupsky

Bug Report

Current behavior

'arduino-cli lib list' does not list the Adafruit ADS1X15 library. I can see this library with the IDE and it shows as "installed". The library directory exists and it is located withthe other arduino libraries in the libraries directory.

Name                                                    	Installed	Available	Location  
HDC2010                                                 	1.0.0    	         	sketchbook
RTCZero                                                 	1.5.3    	         	sketchbook
SparkFun_9DoF_IMU_Breakout_-_ICM_20948_-_Arduino_Library	1.0.2    	         	sketchbook
witap_watchdog                                          	0.0.1    	         	sketchbook
Adafruit_Circuit_Playground                             	1.8.3    	         	sketchbook
Arduino-Scheduler                                       	1.2.7    	         	sketchbook
ClosedCube_I2C_Arduino                                  	1.2.1    	         	sketchbook
CayenneLPP                                              	1.0.1    	         	sketchbook
Sodaq_wdt                                               	1.0.2    	         	sketchbook
FlashStorage                                            	0.7.1    	         	sketchbook
Adafruit_SHT31_Library                                  	1.1.0    	         	sketchbook
Arduino-Log                                             	1.0.3    	         	sketchbook
Arduino_Low_Power                                       	1.2.1    	         	sketchbook
ClosedCube_TMP116_Arduino                               	1.0.2    	         	sketchbook
JLed                                                    	4.0.0-rc1	         	sketchbook
ZeroRegs                                                	0.2.2    	         	sketchbook

I can compile a sketch using the VS Code Arduino plugin. However, the arduino-cli compile fails as follows:

ResolveLibrary(Adafruit_ADS1015.h)
  -> candidates: []
In file included from /Users/stevenslupsky/Library/Mobile Documents/com~apple~CloudDocs/source/witap_mkrdock/witap_mkrdock.ino:1:0:
/Users/stevenslupsky/Library/Mobile Documents/com~apple~CloudDocs/source/witap_mkrdock/build/sketch/witap_mkrdock.h:35:10: fatal error: Adafruit_ADS1015.h: No such file or directory
 #include <Adafruit_ADS1015.h>

Expected behavior

Compile should complete.

Environment

  • CLI version (output of arduino-cli version):
    0.37

  • OS version:
    macOS 10.14.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions