Closed
Description
Describe the problem
The save dialog comes up when closing the app even when there are no changes in the sketch.
To reproduce
Open the app, then close immediately without any changes to the sketches.
Expected behavior
The save dialog on closing app should only appear when sketch are edited.
Arduino IDE version
Version: 2.0.0-rc9-nightly-20220802 Date: 2022-08-02T03:47:07.580Z CLI Version: 0.25.1 [436f0bb9] Copyright © 2022 Arduino SA
Operating system
macOS
Operating system version
12.5
Additional context
No response
Issue checklist
- I searched for previous reports inI verified the problem still occurs when using the latestMy report contains all necessary details
Activity
kittaakos commentedon Aug 2, 2022
Related: #1016
Breaking change: 5b486b1#diff-d75767495b70f0c6a10456f6a08ea71728c0b74709a2b697e88b9b50f6890177L65.
The current logic does not check if the document was ever touched.
per1234 commentedon Aug 2, 2022
Thanks for your report @sstaub. Please confirm whether this issue is specific to new sketches, or whether you also experience it when the unchanged sketch is saved in a normal location on disk.
I can only reproduce the issue with new sketches.
Please note that Arduino IDE 2.x opens example sketches as a sketch, so the issue also occurs with those sketches (as was previously reported at #1026).
sstaub commentedon Aug 2, 2022
I can confirm that this issue is specific to new sketches. On other saved sketches it works as expected.
InstantMuffin commentedon Aug 5, 2022
Maybe in a way related to #1294?