arduino / arduino/Arduino

cannot close an unsaved sketch window after edit. second attempt to close crashes the IDE

Open
#7,208 11 comments 0 reactions 0 assignees View on GitHub
Component: IDE IDE 1.9.x Beta OS: OSX Type: Bug
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.