I can't make sense of this. I was advised some libraries needed updating. Adafruit Circuit Playground is an example. It was shown as having v 1.11.3 installed. The version below (in the box under 'More info') is 1.11.4. I clicked 'INSTALL' and then 'Install All'. But the version installed is now shown as 1.10.3 - an OLDER, not a newer version!
Same for the few other libraries I tried.
Anyway, why can't v2 just use the 1.8.19 libraries I've regularly updated?
Also just seen post from @UKHeliBob , covering this in more depth.
Crystalises my intention to stay with 1.8.19 for a while.
EDIT: Sorry, meant to post in V 2.0 category
For the benefit of others, I'll share a link to that post:
A fix for the bug has already been made so it should no longer be a problem once the next release of Arduino IDE 2.x comes out:
arduino:master
← cmaglie:multilib-installs
opened 07:27AM - 16 Sep 22 UTC
**Please check if the PR fulfills these requirements**
- [X] The PR has no du… plicates (please search among the [Pull Requests](https://github.com/arduino/arduino-cli/pulls)
before creating one)
- [X] The PR follows
[our contributing guidelines](https://arduino.github.io/arduino-cli/latest/CONTRIBUTING/#pull-requests)
- [X] Tests for the changes have been added (for bug fixes / features)
- [ ] Docs have been added / updated (for bug fixes / features)
- [x] `UPGRADING.md` has been updated with a migration guide (for breaking changes)
* **What kind of change does this PR introduce?**
Fix bugs reported in:
- https://github.com/arduino/arduino-cli/issues/1870
- https://github.com/arduino/arduino-cli/issues/1871
- https://github.com/arduino/arduino-cli/issues/932
- **What is the current behavior?**
1. `lib install` and `lib upgrade` may cause multiple installations of the same library
2. if you use `lib install/upgrade/uninstall` on a library installed multiple times, the command may act only on one of the multiple copies (chosen pseudo-randomly).
3. some commands do not use the real name of the library but the installed directory name, i.e. `lib example "Robot_Control"` instead of `lib example "Robot Control"`.
* **What is the new behavior?**
1. `lib install` and `lib upgrade` will not cause multiple installations anymore
2. if you use `lib install/upgrade/uninstall` on a library installed multiple times, the command will fail, showing the path of every copy of the library and asking to manually fix the multiple installations.
3. all commands now use the real name of the library (i.e. the one written inside the `library.properties` file)
- **Does this PR introduce a breaking change, and is [titled accordingly](https://arduino.github.io/arduino-cli/latest/CONTRIBUTING/#breaking)?**
Yes. The biggest change is the renaming of the fields in the `Library` structure:
* `Name` -> `CanonicalName`
* `RealName` -> `Name`
This change is quite involved in the go-lang codebase but results in a backward compatible change in the user-facing API. It should make the overall API usage more straightforward since it factors out the legacy (IDE <1.5) way to name the libraries as the containing directory.
system
Closed
March 21, 2023, 9:53pm
4
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.