Skip to content

Library installation hangs when multiple libraries are installed simultaneouslyΒ #2760

@DannyV1

Description

@DannyV1

Describe the problem

Arduino IDE periodically checks if newer versions of any of the installed libraries are available via Library Manager. If so, it displays an "Updates are available for some of your libraries" notification.

If the user clicks the "UPDATE ALL" button, all updatable libraries are updated.

πŸ› The multiple libraries update sometimes hangs forever without completing.

To reproduce

  1. Use Library Manager to install outdated versions of multiple libraries.
  2. Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
    A menu will appear on the editor toolbar:
    Command Palette
  3. Select the "Arduino: Check for Arduino Updates" command from the menu.
    The "Updates are available for some of your libraries" notification will appear.
  4. Click the "UPDATE ALL" button in the notification.
    Arduino IDE will now start to install updates of each of the outdated libraries, as indicated by a notification and messages in the "Output" view, e.g.,:
    Downloading Adafruit [email protected]
    Adafruit [email protected]
    Installing Adafruit [email protected]
    Replacing Adafruit [email protected] with Adafruit [email protected]
    Installed Adafruit [email protected]
    Downloading Adafruit [email protected]
    Adafruit [email protected]
    Installing Adafruit [email protected]
    Replacing Adafruit [email protected] with Adafruit [email protected]
    Installed Adafruit [email protected]
    Downloading Adafruit [email protected]
    Adafruit [email protected]
    Installing Adafruit [email protected]
    Replacing Adafruit [email protected] with Adafruit [email protected]
    Installed Adafruit [email protected]
    Downloading Adafruit [email protected]
    Adafruit [email protected]
    Installing Adafruit [email protected]
    Replacing Adafruit [email protected] with Adafruit [email protected]
    Installed Adafruit [email protected]
    

πŸ› The update progress notification may stop showing any progress at some point, remaining forever in the state where it indicates updates are still in progress.

Expected behavior

IDE Hangs on large lib

Arduino IDE version

IDE 2.3.6

Operating system

macOS

Operating system version

Mac OS 13.7.6

Image

Additional context

I am not able to reproduce the fault using Arduino CLI.

Additional reports

Workaround

Update each library individually, in sequence:

  1. When you see the "Updates are available for some of your libraries" notification, click the "INSTALL MANUALLY" button instead of the "UPDATE ALL" button.
    Library Manager will open, with a list of the updatable libraries.
  2. Click the "UPDATE" button on the first of the entries in Library Manager for a library you wish to update.
  3. Wait for the update to finish, as indicated by the appearance of a "Successfully installed library ..." notification.
  4. Repeat steps (2)-(3) until you have updated all the libraries you wish to update.

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions