Closed
Description
Describe the problem
Sketch files can be deleted by selecting "Delete" from editor toolbar context menu.
🐛 The "Delete" menu option is enabled when the primary tab is selected, and a confirmation dialog indicates it will delete the sketch, but nothing happens.
To reproduce
- Select File > New from the Arduino IDE menus.
- Save the sketch to somewhere convenient.
- Select the leftmost tab of the sketch.
- Click the ●●● icon on the right side of the editor toolbar.
- Select "Delete" from the menu.
A "Do you want to delete the current sketch?" dialog will appear. - Click the OK button.
🐛 The sketch remains open in Arduino IDE.
🐛 If you check the location of the sketch on your drive, you will see that it is still present.
Expected behavior
If sketch deletion is offered, it should work.
Arduino IDE version
Original report
2.0.0-rc1-snapshot.f0d9894
Last verified with
Operating system
- Windows
- macOS
Operating system version
- Windows 10
- Windows 11
- macOS 12.5.1
Additional context
Arduino IDE 1.x has the same behavior of deleting the sketch when the primary tab is deleted via the tab management menu, except it works in Arduino IDE 1.x.