-
-
Notifications
You must be signed in to change notification settings - Fork 398
lib examples
does not respect bundled versus installed libraries priority
#1656
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
I transferred this issue to the Arduino CLI repository because it seems the bug is in this code base:
But this is not the library that is used when compiling for that board:
The esp8266 platform bundled library is "architecture optimized" for the https://github.com/esp8266/Arduino/blob/3.0.2/libraries/ArduinoOTA/library.properties#L9
This causes it to be given priority by the library dependency resolution system over the sketchbook installed "ArduinoOTA" library, which is only "architecture compatible": https://github.com/jandrassy/ArduinoOTA/blob/1.0.7/library.properties#L9
As mentioned by jandrassy, Arduino IDE 2.x incorrectly shows the sketchbook installed "ArduinoOTA" library examples in the File > Examples menu, while Arduino IDE 1.8.19 and older correctly show the examples associated with the library that has architecture priority for the currently selected board: |
lib examples
does not respect bundled versus installed libraries priority
…ow platform bundled lib when lib of same name is installed globally (#2113) * Added test * Factored function to determine library compatibility * Made ComputePriority function public * fix: use the libraries resolution algorithm to determine library priority * Slightly refactored 'lib list' command call * Updated UPGRADING.md * Added test for a similar bug in `lib examples` See #1656
Describe the problem
In Examples menu a multi-platform library examples are shown instated of bundled library with the same name.
My ArduinoOTA library examples are in Examples menu even when ESP8266 board is selected. The ESP8266 platform has a bundled ArduinoOTA library.
Operating system
Linux Mint
Additional context
Examples respect library priority in Arduino IDE 1.x.
Additional reports:
Issue checklist
The text was updated successfully, but these errors were encountered: