Library Manager version menu selection changes if user closes dependencies installation dialog #1707
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 problem
An Arduino library can specify dependencies on other libraries via its metadata. When the user installs a library with defined dependencies via Library Manager, Arduino IDE shows a dialog that offers to install these dependencies along with the library.
If the user closes that dialog, the selection in the version menu changes:
🐛 The user will likely not notice this unexpected change. If they trigger an install operation on the library once more, they will install a different version than they intended.
If the version the IDE attempts to switch the menu to is currently installed, the current selection is retained, but an install operation will attempt to install the version it attempted to switch the menu to.
🐛 The user will be confused when the installation operation fails due to attempting to install a different version than was already selected.
To reproduce
🐛 The selection in the version menu changed.
🙂 The version menu selection changes to the latest version of the library.
🙂 The latest version of the library is still selected in the version menu.
🐛 The version of the library selected from the version menu is not installed. The Output view shows that the install operation attempted to install the previous version:
Expected behavior
Version menu selection only changes after a successful installation.
Arduino IDE version
2.0.2
Operating system
Windows
Operating system version
10
Issue checklist
The text was updated successfully, but these errors were encountered: