Skip to content

Example files - ask to save even if no changes were made to them.  #1026

Closed
@KurtE

Description

@KurtE

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:

  1. Show sketch folder shows the folder within the temp directory, which feels wrong.

  2. Still looks like the examples don't show up in recent sketch list

  3. 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:
    image
    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

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

conclusion: duplicateHas already been submittedtopic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions