Lost a day of work - IDE did not save at all. Bug?!

I lost a day of work with the new 2.0 IDE.

Not sure how to replicate, but this is what I did:

  • Opened an example
  • started to work on it
  • Save-as... -> overwrite an already existing file (on a mapped network drive)
  • confirmed to be okay
  • continued working
  • save-as hasnt remembered my previous save-as, so had to point to the same file again and confirm overwriting.
  • continued working
  • save-as hasnt remembered my previous save-as, so had to point to the same file again and confirm overwriting.
  • repeated several hours. Considered the sava-as not remembering rather annoying but didnt see a problem this serious with it.

My file was just not overwritten at all. No warnings!

When closing the IDE it asked me to save-as. Again I did the same. Then IDE closed. File was not saved at all.....

edit: just found temp files with my code in it so I could recover. For people with the same problem, check here for temp files: c:\Users{yourusername}\AppData\Local\Temp.arduinoIDE-unsaved{date}-{time}-{randomchars.{randomchars}\
Found it by doig a system wide scan for all .ino files. Filename was examplefilename.ino

Hi @hassem. Thanks for your report.

Are you able to reproduce the bug now by saving a test sketch to the network drive?

If so, does the problem also occur if you save to a normal drive?

Thanks for taking the time to share the recovery technique you discovered. I'm sure the users who experience lost sketch data (which can occur in other ways such as a system crash, or power outage, or simple user error) will be very grateful.

I havent bee able to reproduce the behaviour. I can open an example and save to mapped (local) network drive. I'll let you know when I get similar behavior.

Thanks for the update.

Even though it would be more satisfying to have a conclusive investigation into the problem, I guess we will also be happy enough if it simply never reoccurs.

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