lib list --fqbn
does not shown platform bundled lib when lib of same name installed globally
#1566
Closed
3 tasks done
Labels
criticality: medium
Of moderate impact
priority: low
Resolution is a low priority
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Milestone
Describe the problem
It is a common practice for boards platforms to contain platform bundled libraries that are a variant of a common library distributed via Library Manager, modified to be compatible with the architecture of the boards platform (example).
🐛
arduino-cli lib list
does not list the platform bundled library when the library of the same name is installed globally (e.g. indirectories.user
).To reproduce
🙂 Output is as expected
🙂 Output is as expected
🙂 Output is as expected
🐛 The library is not listed even it is installed.
Because the LIBRARY_LOCATION_USER installed version of "USBHost" is specified for
sam
architecture, it is reasonable that it not be shown inarduino-cli lib list --fqbn arduino:samd:mkrzero
output (because that board issamd
architecture), but the version of the library bundled with thearduino:samd
platform should be shown.Expected behavior
arduino-cli lib list --all --fqbn
should always list all installed libraries matching the search query.Arduino CLI version
nightly-20211112 Commit: bf4a784
Operating system
Windows
Operating system version
10
Additional context
The compilation process correctly discovers the platform bundled library even though it was not shown in the
lib-list --fqnb
output:Even though it results in the example above exhibiting the most dramatic form of the bug's manifestation, the bug is not dependent on an architecture mismatch of the Library Manager lib, as the demonstration below shows.
In the following demonstration, the globally installed library is shown in the
lib list
output because it is compatible with the board'smbed_portenta
architecture, but the platform bundled library is incorrectly not shown in the output, just as in the previous demonstration.arduino-cli lib list --all --fqbn
could be a very useful tool for investigating library dependency resolution outcomes, which are regularly a source of confusion for platform and library developers and users when a different library from the one they expected is selected. But, with this bug, it would end up only contributing more confusion since the library that will be selected by the build system is not even shown in thelib list
output.Issue checklist
The text was updated successfully, but these errors were encountered: