Example files - ask to save even if no changes were made to them. #1026
Labels
conclusion: duplicate
Has already been submitted
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
If I open up an example sketch like blink and simply use it to program the board, and then try to close it without making
any changes, unlike Arduino 1.x it asks me if I wish to save the sketch or not.
This is related to #893,
which I am glad was fixed, but I do think it should only ask if the user made changes to the sketch.
There are other related example sketch issues, but I am pretty sure they have been reported in the past including:
Show sketch folder shows the folder within the temp directory, which feels wrong.
Still looks like the examples don't show up in recent sketch list
If the temporary folder is erased, like you have the blink window open, go away for awhile and Norton Desktop cleans up the temp directory and erases your sketch, you end up with a strange looking windows:

Note: I also saw some message in the window saying something like it can no longer track file changes... As there are too many... or some such thing (sorry should have taken picture then)
To reproduce
Go to examples: file->Examples->01 Basic -> Blink
then after the window opens, click on the close button and you will see the dialog asking if you wish to save.
The strange window issue, happens of Norton does a cleanup... Or you can emulate by opening the folder and delete all of the files out of that folder.
Expected behavior
Expect to only be asked to save a file if the file has been changed.
Arduino IDE version
Nightly build 20220608
Operating system
Windows
Operating system version
Windows 10
Additional context
Sorry if I missed a duplicate.
Also 2nd part not sure what to report... I know with Arduino 1.x when the temp is cleared, a compile will fail but the window still shows the file contents from before.
Issue checklist
The text was updated successfully, but these errors were encountered: