cannot close an unsaved sketch window after edit. second attempt to close crashes the IDE
- Dominant language
- Java
- Stars
- 14.6k
- Forks
- 7k
- PR merge metrics
- No merged PRs in 30d
Description
Arduino 1.8.5 on Mac OS X 10.13.3 (High Sierra)
How to reproduce:
- launch the IDE
- open a new sketch --> window N°1
- open a second sketch --> window N°2
- type any text in the second window N°2 so that the sketch is marked as modified
- press cmd-w to close the second window
--> you get a modal dialog panel stating "Do you want to save changes to this sketch before closing"
- answer "don't save"
--> RESULT: the alert panel get discarded but the window N°2 is still opened
- press cmd-w again to close the second window
--> RESULT: the IDE crashes
Contributor guide
Research direction
Start by reproducing the close flow in Arduino IDE 1.8.5 on macOS High Sierra using the listed two-window steps. Trace the unsaved-sketch discard and window-close handling; done means choosing “don't save” closes window N°2 and a subsequent cmd-w does not crash the IDE.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, macos
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100