Skip to content
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
per1234 opened this issue Jan 27, 2022 · 0 comments · Fixed by #1927
Closed
Tracked by #1927

Library/Boards Manager offers already installed release when it is the only one #781

per1234 opened this issue Jan 27, 2022 · 0 comments · Fixed by #1927
Assignees
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
Copy link
Contributor

per1234 commented Jan 27, 2022

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

  1. Open the Arduino IDE Library Manager.
  2. Search for Arduino Uno WiFi Dev Ed Library
  3. Install "Arduino Uno WiFi Dev Ed Library by Arduino".
    🐛 Notice that the library listing still has an INSTALL button for the already installed 0.0.3 release:
    image
  4. Click the INSTALL button.
    🐛 Notice that the version shown in the notifications is identified as undefined
    Processing Arduino Uno WiFi Dev Ed Library:undefined: Already installed Arduino Uno WiFi Dev Ed Library@0.0.3
    
    Successfully installed library Arduino Uno WiFi Dev Ed Library:undefined
    
    image
  5. Hover the mouse pointer over the "INSTALLED" label on the "Arduino Uno WiFi Dev Ed Library by Arduino" library listing.
    (It turns into an UNINSTALL button)
  6. Click the UNINSTALL button.
    • 🐛 Notice that the "Arduino Uno WiFi Dev Ed Library by Arduino" library listing still has an "INSTALLED" label, even though the library was really uninstalled.
    • 🐛 Notice that the Sketch > Include Library menu still contains "Arduino_Uno_WiFi_Dev_Ed_Library".
  7. Open the Arduino IDE Boards Manager.
  8. Search for littleBits
  9. Install "littleBits Arduino AVR Modules by littleBits Electronics".
    🐛 Notice that the platform listing still has an INSTALL button for the already installed 1.0.0 release:
    image

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:

image

image

Desktop

  • OS: Windows 10
  • Version: 2.0.0-rc3-snapshot.1d88263
    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.

@per1234 per1234 added topic: code Related to content of the project itself type: imperfection Perceived defect in any part of project labels Jan 27, 2022
@kittaakos kittaakos assigned kittaakos and unassigned AlbyIanna Mar 1, 2023
kittaakos pushed a commit that referenced this issue Mar 3, 2023
Closes #19
Closes #781
Closes #1591
Closes #1607
Closes #1924

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Mar 3, 2023
Closes #19
Closes #781
Closes #1591
Closes #1607
Closes #1924

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Mar 7, 2023
Closes #19
Closes #781
Closes #1591
Closes #1607
Closes #1924

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Mar 7, 2023
Closes #19
Closes #781
Closes #1591
Closes #1607
Closes #1924

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Mar 7, 2023
Closes #19
Closes #781
Closes #1591
Closes #1607
Closes #1697
Closes #1707
Closes #1924

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Mar 7, 2023
Closes #19
Closes #781
Closes #1591
Closes #1607
Closes #1697
Closes #1707
Closes #1924
Closes #1941

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Mar 9, 2023
Closes #19
Closes #781
Closes #1591
Closes #1607
Closes #1697
Closes #1707
Closes #1924
Closes #1941

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Mar 9, 2023
Closes #19
Closes #781
Closes #1591
Closes #1607
Closes #1697
Closes #1707
Closes #1924
Closes #1941

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Mar 9, 2023
Closes #19
Closes #781
Closes #1591
Closes #1607
Closes #1697
Closes #1707
Closes #1924
Closes #1941

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Mar 13, 2023
Closes #19
Closes #781
Closes #1591
Closes #1607
Closes #1697
Closes #1707
Closes #1924
Closes #1941

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
kittaakos pushed a commit that referenced this issue Mar 15, 2023
Closes #19
Closes #781
Closes #1591
Closes #1607
Closes #1697
Closes #1707
Closes #1924
Closes #1941

Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
@kittaakos kittaakos added the conclusion: resolved Issue was resolved label Mar 15, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants