Skip to content

Dependent menus not updated after .zip library install #659

Closed
@per1234

Description

@per1234

Describe the bug

🐛 After installing a library via Sketch > Include Library > Add .ZIP Library...", the library does not appear in the "File > Examples" and "Sketch > Include Library" menus until after the IDE is restarted.

To Reproduce

  1. Obtain an library in suitable .zip format which is not already installed on your computer: https://github.com/arduino-libraries/ArduinoMDNS/archive/refs/heads/master.zip
  2. Select Sketch > Include Library > Add .ZIP Library... from the Arduino IDE menus.
  3. Select the library .zip (ArduinoMDNS-master.zip).
  4. Click the Open button.
  5. Select File > Examples from the Arduino IDE menus.
    🐛 Note that the expected "ArduinoMDNS" submenu item is not present.
  6. Select Sketch > Include Library from the Arduino IDE menus.
    🐛 Note that the expected "ArduinoMDNS" submenu item is not present.
  7. Select File > Quit from the Arduino IDE menus.
  8. Start the Arduino IDE.
  9. Select File > Examples from the Arduino IDE menus.
    🙂 Note that the expected "ArduinoMDNS" submenu item is now present.
  10. Select Sketch > Include Library from the Arduino IDE menus.
    🙂 Note that the expected "ArduinoMDNS" submenu item is now present.

Expected behavior

Dependent menus are refreshed after .zip library install

Desktop

  • OS: Windows 10
  • Version: 2.0.0-rc1-snapshot.f0d9894
    Date: 2021-11-30T16:25:41.414Z
    CLI Version: 0.20.1 [abb21449]

Additional context

These menus are updated after .zip library installation in the classic Arduino IDE.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions