-
-
Notifications
You must be signed in to change notification settings - Fork 398
name
vs real_name
inconsistency when executing lib commands
#932
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
name
vs real_name
when executing a lib commandsname
vs real_name
inconsistency when executing lib commands
I ended up taking a close look at this situation while reviewing #1725. Here is a report on my findings: RecommendationsAlways use canonical library nameThe library name is used as the sole unique identifier by the Arduino Library Manager system. This name must be used whenever referring to the library in Arduino CLI output. This name must be used whenever referring to the library in arguments to Record the canonical name when loading librariesData on each installed library is gathered during initialization. Since there is some logic involved in determining the canonical name, it must be recorded at this time to avoid the need for code duplication by each consumer of the data:
Redesign
|
Fixed by #1878 |
Bug Report
name
of a library is the name of the folder in which the lib is contained:{directories.user}/Arduino/${name}
real_name
of a library is the human-readable name of the lib. It comes from thelibrary.properties
.This might be the desired behavior but it's strange. When I do a
lib search
orlib install
thereal_name
is required, when I run alib list
, thename
is required.Current behavior
lib search
works withreal_name
, not withname
:lib install
works withreal_name
but does not work withname
:lib list
works withname
, but does not work withreal_name
:I think this is a bug.
Expected behavior
All lib commands work either with both
name
andreal_name
or all require either thename
orreal_name
.Environment
arduino-cli version
):arduino-cli Version: 0.13.0-rc1 Commit: ef57e49
10.15.6 (19G2021)
)Additional context
The text was updated successfully, but these errors were encountered: