Arduino-cli: Libraries installation/uninstallation name inconcistency

Created on 27 Aug 2019  路  8Comments  路  Source: arduino/arduino-cli

Bug Report

The name to use when installing or uninstalling libraries is inconsistent

Current behavior

Installing libraries work as intented. ie:

PS C:\Users\gaspa\Downloads> .\arduino-cli.exe lib install "LiquidCrystal I2C"
Downloading LiquidCrystal [email protected]...
LiquidCrystal [email protected] already downloaded
Installing LiquidCrystal [email protected]...
Installed LiquidCrystal [email protected]

But trying to remove the library using the name used when installing, does not always remove the library.

PS C:\Users\gaspa\Downloads> .\arduino-cli.exe lib uninstall "LiquidCrystal I2C"
Library LiquidCrystal I2C is not installed

In this case I had to replace the space with a _

PS C:\Users\gaspa\Downloads> .\arduino-cli.exe lib uninstall "LiquidCrystal_I2C"
Uninstalling [email protected]...

Expected behavior

The libraries should be installed and uninstalled using the same name

Environment

CLI version

PS C:\Users\gaspa\Downloads> .\arduino-cli.exe version
arduino-cli.exe Version: 0.4.0 Commit: =98b7be9

OS/Platform

Windows 10 Pro build 1903

bug

All 8 comments

If possible, could I try this one?

@HowJMay all yours! :smile:
Thanks!

My pleasure

@masci May I ask that whether all the library with the following link can be downloaded with arduino-cli ?
https://www.arduinolibraries.info/

@HowJMay http://downloads.arduino.cc/libraries/library_index.json contains all the libraries that can be installed out of the box with the CLI, then users can add any number of additional json indexes listing their own "unofficial" libraries.

Thanks

May I ask that whether all the library with the following link can be downloaded with arduino-cli ?
https://www.arduinolibraries.info/

AFAIK this website takes the list from our library_index.json so: yes.

Thank you !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

martsalz picture martsalz  路  7Comments

toogooda picture toogooda  路  3Comments

nkieffer picture nkieffer  路  7Comments

gdsports picture gdsports  路  3Comments

manasIU picture manasIU  路  7Comments