Closed
Description
Bug Report
This is a minor thing, maybe not even an issue but the expected behavior. When I run lib list -b
command without any libraries and any cores installed, I always get a 0
exit code. However, when I have at least one user library installed, but still no cores, I always get a non-zero, 1
exit code. This feels inconsistent.
Current behavior
% rm -rf ~/Library/Arduino15 && rm -rf ~/Documents/Arduino/libraries
% ./arduino-cli version
arduino-cli Version: 0.13.0 Commit: 693a045
% ./arduino-cli core update-index
Downloading missing tool builtin:[email protected]...
builtin:[email protected] downloaded
Installing builtin:[email protected]...
builtin:[email protected] installed
Downloading missing tool builtin:[email protected]...
builtin:[email protected] downloaded
Installing builtin:[email protected]...
builtin:[email protected] installed
Updating index: library_index.json downloaded
Updating index: package_index.json downloaded
Updating index: package_index.json.sig downloaded
Updating index: package_index.json downloaded
Updating index: package_index.json.sig downloaded
% ./arduino-cli core list
% ./arduino-cli lib list -b arduino:samd:mkr1000
No libraries installed.
% echo $?
0
% ./arduino-cli lib install "AllThingsTalk LoRaWAN SDK"
AllThingsTalk LoRaWAN SDK depends on AllThingsTalk LoRaWAN [email protected]
Downloading AllThingsTalk LoRaWAN [email protected]...
AllThingsTalk LoRaWAN [email protected] downloaded
Installing AllThingsTalk LoRaWAN [email protected]...
Installed AllThingsTalk LoRaWAN [email protected]
% ./arduino-cli lib list -b arduino:samd:mkr1000
Error listing Libraries: loading board data: platform arduino:samd is not installed
% echo $?
1
%
Expected behavior
I would expect to have 1
exit code with a similar error message (platform x:y is not installed
) when no user libraries and no cores are installed.
Environment
- CLI version (output of
arduino-cli version
):arduino-cli Version: 0.13.0 Commit: 693a045
- OS and platform: macOS Catalina (
10.15.6 (19G2021)
)
Additional context
If this is the expected behavior, please close the issue with a remark. Thank you!
Metadata
Metadata
Assignees
Labels
No labels