Pages: [1]   Go Down
Author Topic: AUTOSAVE  (Read 6429 times)
0 Members and 1 Guest are viewing this topic.
jersey
Offline Offline
Newbie
*
Karma: 0
Posts: 46
hack freely my friends
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

greetings fellow arduinoers
i wanted to make a suggestion to the next release of the arduino software is some function that you can check when you start up the software where it will automatically save changes every predefined time, like every 5 minutes or so , recently wrote about about a paragraph of comment explaining my complex code and explaining functions and interrupts and arrays and other BS (to non coders) and then the power goes out from the storm and all my stuff was lost and i must type it all in again so it doesent seem like much to ask for a simple sutosave script or something, it would make many people very happy  smiley
thank you
~Katzmatt
Logged

Phoenix, Arizona USA
Offline Offline
Faraday Member
**
Karma: 36
Posts: 5519
Where's the beer?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hmm - something like this would be useful, but I think I would want it to save to a "special" file and not the main .pde you are working on, so that it doesn't overwrite. On next load, you could check the timestamps, and if the autosave file is newer than the main .pde, ask if you want to load the autosave file instead, perhaps?
Logged

I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.

jersey
Offline Offline
Newbie
*
Karma: 0
Posts: 46
hack freely my friends
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

YES exactly and good thinking of the alt file, like just something in the temp folder under <filename>AUTOSAVE<timestamp>.pde
this doesent sound too complex to implement either, i hope this gets into the next release
Logged

CT, USA
Offline Offline
Sr. Member
****
Karma: 2
Posts: 446
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It would also be helpful if the Arduino IDE could automatically save the file before compiling/uploading... I found out this the hard way the other day, when I was exiting the IDE, it prompt me whether I wanted to save changes, I thought since I had compiled/uploaded many times before I chose no. And it turned out that nothing was saved.

Anyway, saving on compiling is kind of standard in other development environment so I think it should be made standard in Arduino as well.
Logged

0
Offline Offline
Sr. Member
****
Karma: 0
Posts: 388
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I could support this suggestion if it were made an option, controlled in a config file, and defaulted to the current way of doing things.

If the compile resulted in a huge number of errors, I would want the original version available to revert back to. For example, in the past I had a large block of code accidentally deleted. (It was selected and I bumped the [Enter] key, but didn't realize it until the next compile reported lots of errors.) An implicit save before compile would not have been a good thing for me.

Compile is compile, and Save is save, IMHO. Standard autosave on a timer would have saved (most of) your work, unrelated to compile/upload considerations, right?
« Last Edit: April 26, 2010, 07:27:13 pm by TBAr » Logged

Fife, Scotland
Offline Offline
Newbie
*
Karma: 0
Posts: 40
Electronicoid Android Electronics Calculator
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

*Bump*

Please, please, please implement this.

I know I'm ultimately responsible for saving, and should do it more often, but total system crashes are so rare, that I don't. So when it does crash, I'm fair scuppered. >smiley-sad

It's happened to me a few times now, and as sods law would dictate, it's always when I've got loads of code that's been added/changed. D'oh!!! :'(

So, yeah, autosaving to a temp file, like Word does, would be extremly helpful and give the IDE a more polished, professional feel.

As for the autosave on compile? Not such a great idea I think. As long as you know that the IDE doesn't save the code on compile, then you know that when you close it and it asks if you want to save it, you click 'OK'.

Forgive me if I'm wrong AlphaZeta, but I'm guessing you won't be making that mistake again. ;D
Suppose it could be an extended option like TBAr suggests, but I for one would have it turned off.

Regards peeps,
The Cageybee
Logged

Washington
Offline Offline
God Member
*****
Karma: 30
Posts: 780
Firefox & Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

+1 for autosave.
Java crashed twice loosing several programs loaded.
Logged

Avoid throwing electronics out as you or someone else might need them for parts or use.
Solid state rectifiers are the only REAL rectifiers.
Resistors for LEDS!

Pages: [1]   Go Up
Jump to: