-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
Library/Boards Manager offers already installed release when it is the only one #781
Closed
Tracked by
#1927
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Comments
per1234
added
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
labels
Jan 27, 2022
12 tasks
kittaakos
pushed a commit
that referenced
this issue
Mar 3, 2023
kittaakos
pushed a commit
that referenced
this issue
Mar 3, 2023
kittaakos
pushed a commit
that referenced
this issue
Mar 7, 2023
kittaakos
pushed a commit
that referenced
this issue
Mar 7, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
conclusion: resolved
Issue was resolved
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the bug
When multiple releases of a library or boards platform are available, Library and Boards Manager offer only the available versions other than the currently installed one.
🐛 When there is only one available release of a library or boards platform, the user is still offered an INSTALL button. If they click it, the IDE attempts to install the version that is already installed.
To Reproduce
Arduino Uno WiFi Dev Ed Library
🐛 Notice that the library listing still has an INSTALL button for the already installed 0.0.3 release:
🐛 Notice that the version shown in the notifications is identified as
undefined
(It turns into an UNINSTALL button)
littleBits
🐛 Notice that the platform listing still has an INSTALL button for the already installed 1.0.0 release:
Expected behavior
Remove or disable the INSTALL button when there is nothing available to install.
This is how it has always worked in Arduino IDE 1.x:
Desktop
Date: 2022-01-24T16:22:30.529Z
CLI Version: 0.20.2 [13783819]
Additional context
In addition to libraries and boards platforms that only had one release, such as the ones used in the demo above, this condition will be present for all installed boards platforms without a package index. Because the "Additional Boards Manager URLs" preference that provides these package indexes is not imported from the Arduino IDE 1.x preferences, that will be the case for all 3rd party boards platforms present on the system of a user who has just updated to Arduino IDE 2.x, even in the session during which they have manually updated that preference (#637). So it is not a rare condition.
I did not experience the same problem with the uninstall not being recognized after the double install in Boards Manager as I did in Library Manager.
I missed a previous report of the same bug at #157. The discussion there might provide additional information if the problem is not clear from what I wrote above.
The text was updated successfully, but these errors were encountered: