Pages: [1]   Go Down
Author Topic: Autosave  (Read 797 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Today i lost some 4 hours of programming as the Arduino.exe froze after compiling my project, and i had forgotten to save before compiling.
There SHOULD be a choice in the Preference, where you could instruct Arduino to autosave before compiling!
best regards svein..
Logged

Norway@Oslo
Offline Offline
Edison Member
*
Karma: 12
Posts: 2033
loveArduino(true);
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hei Svein! (From your name I guess you're Norwegian?)

I completely agree! Autosave is a feature that for the most part makes life easier. I must say that some applications clear the undo queue on save, and that can make the autosave a pain in the ass.

I think Arduino should support autosave without clearing the undo queue.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, im from the land of snow and ice, and we are getting more and more of it.....
But right now, the frustration of reconstructing a days work, keep me warm....
Im new to Arduino, but the love is growing!
Logged

Norway@Oslo
Offline Offline
Edison Member
*
Karma: 12
Posts: 2033
loveArduino(true);
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Take comfort in the fact that you're not the first to lose work this way, and that you most likely will write it faster and better this time smiley
Greetings from Oslo!
Logged

Chile
Offline Offline
Edison Member
*
Karma: 32
Posts: 1233
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Your code is still in your machine, if you checked it (compiling) there are a build<number>.tmp folder in your %temp% with a .cpp file inside.

You can rebuild your .pde file easily from that .cpp file.
Logged

My website: http://ried.cl

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 331
Posts: 16517
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have mixed feelings about an auto save feature. Many times I'm just fooling around with an existing sketch trying things and wouldn't want those changes saved automatically unless it also saved a pre-changes sketch. Making it an option might be OK. It's hard to protect against a locked up PC for all possible situations I would think?

Lefty
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks eried!
I will check it.
Logged

Chile
Offline Offline
Edison Member
*
Karma: 32
Posts: 1233
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@retrolefty

yes, I think the same.

Autosave must be well implemented, it's not just a matter of emulating a click over the "save" button with a timer.
Logged

My website: http://ried.cl

0
Offline Offline
Newbie
*
Karma: 0
Posts: 11
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Autosave is perhaps not the best term. What i meant was an option "Save before compile"
Im a lifetime Visual Basic programmer, and this option in VB, have saved me MANY hours. I always have this option checked, and have never experienced any negative results.
Logged

Holland
Offline Offline
Sr. Member
****
Karma: 0
Posts: 439
Arduino likes cookies too
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A good autosave saves a seperate entity. Know those prompts 'there is a more recent autosave, load this instead?'?
Thats how it should be done  smiley
Autosaves saved independently from the source file, but linked to (ie: an autosave of one file won't overwrite that of another project).
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 170
Posts: 12451
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Many times I'm just fooling around with an existing sketch trying things and wouldn't want those changes saved automatically
just make a fiddling copy of the sketch on beforehand?
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Pages: [1]   Go Up
Jump to: