Has been changed on the file system.x

I have no explanation for this, just got this message while updating a sketch....
I accepted the changes but do not yet know what go changed and by what process!

This message is expected when saving under the following conditions:

  • Auto save is disabled in preferences.
  • You have made a change to the sketch in the IDE since the last save.
  • The file contents have been changed externally to the Arduino IDE (e.g., you opened it in a separate text editor and made a change)

I haven't experienced this message to occur unexpectedly.

Please let us know if it happens again or if you are able to discover any additional information about the problem.

I do have autosave on
I do not understand 2e point.. "made a change to the sketch in the IDE since the last save." is that not what we always do?
I did not have it open in another editor

No. Quite often you will have a sketch open in the Arduino IDE which has not had any changes since the last time it was saved. When you have auto save on, it will almost always be in this state, other than in the 500 ms interval between auto saves.

The behavior of the IDE in regards to external changes is different depending on whether the sketch is in an unsaved (AKA "dirty") or saved state.

When the sketch is in a saved state, external changes are mirrored in the Arduino IDE editor. So if you were to open a sketch file up in a standard text editor and make a change, you would see that change immediately in the Arduino IDE.

When the sketch is in an unsaved state, the contents you have in the Arduino IDE editor do not match the contents that are on the sketch file on the disk. In this case, an external edit can not be mirrored in the IDE due to this out of sync state between the changes on disk and the changes staged in the unsaved sketch. That is when the IDE presents this confirmation dialog on save.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.