Bug 1193 : not saving sketch when exiting and one confirmes that the sketch should be saved
Last modified: 2009-10-18 10:48



Assigned To:

Attachment Type Created Size Actions
patch to save immediately if there's only one editor open patch 2009-09-06 18:28 454 bytes

Description:   Opened: 2009-03-06 10:00
In a Windows LAN setup:

When done editing a sketch and exiting processing by ALT+F4 or clicking the
red cross, it then asks you if you want to save the file. If the file is
located on a network drive, it will NOT be saved even if you click "Yes".
Additional Comment #1 From fry 2009-03-09 11:33
hm, not good.. that sounds like somehow the exit() is being executed before
the files can write (and the latency of the server is making it show up).
Additional Comment #2 From mellis 2009-09-05 20:37
I see this with: a local drive, Windows Vista, and Processing 1.0.7. It also happens if
you select File > Close.

We've had a few people report it in Arduino 0017 (based on Processing 1.0.3):
http://code.google.com/p/arduino/issues/detail?id=105 and
Additional Comment #3 From fry 2009-09-06 05:44
that mean you're gonna give me a hand fixing it? :)
Additional Comment #4 From mellis 2009-09-06 18:28
patch to save immediately if there's only one editor open

Handling the save immediately if there's only editor open seems to fix the
problem. This may not be the ideal patch, but you get the idea.
Additional Comment #5 From fry 2009-09-07 14:27
thanks.. it's supposed to force-save when quitting already, but i think
there's a (bigger) problem with the sketch list and synchronization that's
causing it to sometimes think that more or less sketches are open at one
time or another, so it doesn't realize it's quitting in time. that problem
is being tracked elsewhere but i'll apply this for 1.0.8 to fix the
immediate problem.
Additional Comment #6 From fry 2009-10-18 10:48
ah, now i see what it was doing. added the patch for 1.0.8.