Skip to content

Uninstalling platform causes IDE to stop working #1540

Open
@AlbyIanna

Description

@AlbyIanna

Describe the problem

Sometimes, if you have a selected board that belongs to a platform and you try to uninstall that platform, the IDE will stop to work. No useful feedback is given, the platform will appear to be installed and any action you perform that uses the backend (like compiling a sketch, creating a new file or updating a library) will fail. Quitting the IDE and reopening it will show that the platform has actually been uninstalled.

error-uninstalling-libraries.mov

To reproduce

I wasn't able to reproduce it consistently because sometimes it works just fine, but repeating the steps a few times would always lead to the reported error.

  1. Open the Boards Manager from Tools > Board > Boards Manager...
  2. Search and install the Arduino MBED OS Nano Boards platform (only if you don't have it already installed)
  3. Select the Arduino Nano RP2040 Connect from Tools > Board > Arduino MBED OS Nano Boards > Arduino Nano RP2040 Connect
  4. From the Boards Manager, UNINSTALL the Arduino MBED OS Nano Boards
  5. 😢 Output in the console says boards are uninstalled, but the Arduino MBED OS Nano Boards in the Boards Manager still looks installed and the menu item Arduino MBED OS Nano Boards is still present in the Tools > Board menu. Also major IDE features will stop working.

Expected behavior

  1. Open the Boards Manager from Tools > Board > Boards Manager...
  2. Search and install the Arduino MBED OS Nano Boards platform (only if you don't have it already installed)
  3. Select the Arduino Nano RP2040 Connect from Tools > Board > Arduino MBED OS Nano Boards > Arduino Nano RP2040 Connect
  4. From the Boards Manager, UNINSTALL the Arduino MBED OS Nano Boards
  5. 😸 Output in the console says boards are uninstalled, and the IDE won't stop working

Arduino IDE version

2.0.1-nightly-20221006

Operating system

macOS

Operating system version

12.3.1 (21E258)

Additional context

This bug never happened to me when I had a selected board from a different platform.

Also, I want to make clear that this bug didn't happen consistently to me, sometimes I met the expected behaviour, sometime I didn't.

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