| Author |
Message |
|
Ford Prefect
Senior Roboticist
Joined: Sat Mar 01, 2008 12:52 pm Posts: 936 Location: a small planet in the vicinity of Beteigeuze
|
 since 1.30 beta: no back up files any more?
hi,
since I updated from 1.10 to 1.30 beta (->2 ->4) there are no back up files generated any more.
This is poor, because if a file has been changed by a couple of faulty commands during developing and/or some lines have been deleted, and then F5 or F7 have been pressed, the correct old version is overwritten and can't be restored...
where can the backup feature be reinstalled?
_________________ Ford Prefect
Never purchase release 1.x ! (ancient programmer's wisdom) "Don't argue with idiots. They'll drag you down to their level and then beat you with experience."
|
| Mon Jun 02, 2008 5:32 pm |
|
 |
|
Dick Swan
Creator
Joined: Fri Feb 09, 2007 9:21 am Posts: 613
|
1.30 and above has a different scheme for storing backups.
There is a boolean flag in the preferences to indicate when rewriting a file, whether it should be really deleted or whether it should be stored in the trash / recycle bin.
So you can recover your file by pulling it out of the trash. If you've done multiple saves, you will find multiple copies of the file in the trash.
|
| Wed Jun 04, 2008 4:17 am |
|
 |
|
Ford Prefect
Senior Roboticist
Joined: Sat Mar 01, 2008 12:52 pm Posts: 936 Location: a small planet in the vicinity of Beteigeuze
|
hi,
thx, but what is the recycle bin? The Windows trash basket?
Anyway, it would be great if the back up files had been physically stored in the current directory (e.g. the best way was, if the file name was myfile.c, then the backups would get the extensions myfile~1.c, myfile~2.c, myfile~3.c and so on...)
And it would be even greater if there was a file... submenu with an option "delete old stuff"... 
_________________ Ford Prefect
Never purchase release 1.x ! (ancient programmer's wisdom) "Don't argue with idiots. They'll drag you down to their level and then beat you with experience."
|
| Wed Jun 04, 2008 4:37 am |
|
 |
|
Dick Swan
Creator
Joined: Fri Feb 09, 2007 9:21 am Posts: 613
|
The "best" solution is to allow "undo" even for the saved files. Currently, "undo" information is lost every time file is save and the file is saved every time there's a compile.
Your suggestion is also good. I'd probably delete them when ROBOTC is closed to prevent cluttering up your directory with lots of copies of the file. And I would also probably limit to "N" (N being a small number) the number of versions that are saved.
PS. Regarding your struct bugts. Some are fixed in 1.36/1.37. If I had your email address I'd of sent you a message. You can contact me at dickswan@sbcglobal.net.
|
| Wed Jun 04, 2008 4:46 am |
|
 |
|
Ford Prefect
Senior Roboticist
Joined: Sat Mar 01, 2008 12:52 pm Posts: 936 Location: a small planet in the vicinity of Beteigeuze
|
that would be fine.
the files maybe could be renamed circle-wise (?) (I want to say, if a new one is generated and exceeds the limt of the maxCount, it gets the maxCount as an extension, and each of the former ones get a decreased number - the oldest (lowest) would be deleted.)
_________________ Ford Prefect
Never purchase release 1.x ! (ancient programmer's wisdom) "Don't argue with idiots. They'll drag you down to their level and then beat you with experience."
Last edited by Ford Prefect on Wed Jun 04, 2008 5:16 am, edited 1 time in total.
|
| Wed Jun 04, 2008 5:06 am |
|
 |
|
Dick Swan
Creator
Joined: Fri Feb 09, 2007 9:21 am Posts: 613
|
I already have code somewhere that appends a numeric to a filename and auto-increments the numeric. And I have some code that matches the number of files in this format. So rather than a circular buffer, "NNN" would probably simply increment from existing number (if it exists). This way it is easy to tell vintage by simply looking at file name. And "NNN" gets reset to "000" if the temporary files are erased when ROBOTC exits.
|
| Wed Jun 04, 2008 5:14 am |
|
 |
|
Ford Prefect
Senior Roboticist
Joined: Sat Mar 01, 2008 12:52 pm Posts: 936 Location: a small planet in the vicinity of Beteigeuze
|
ok, perfect ! 
_________________ Ford Prefect
Never purchase release 1.x ! (ancient programmer's wisdom) "Don't argue with idiots. They'll drag you down to their level and then beat you with experience."
|
| Wed Jun 04, 2008 5:16 am |
|
 |
|
Ford Prefect
Senior Roboticist
Joined: Sat Mar 01, 2008 12:52 pm Posts: 936 Location: a small planet in the vicinity of Beteigeuze
|
in 1.38 there are still no backup files at all - are they?
_________________ Ford Prefect
Never purchase release 1.x ! (ancient programmer's wisdom) "Don't argue with idiots. They'll drag you down to their level and then beat you with experience."
|
| Sun Jun 15, 2008 4:34 am |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2858 Location: Rotterdam, The Netherlands
|
Ford,
You're just going to have to stop making mistakes. It's the only real solution!
Regards,
Xander
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Sun Jun 15, 2008 9:29 am |
|
 |
|
Ford Prefect
Senior Roboticist
Joined: Sat Mar 01, 2008 12:52 pm Posts: 936 Location: a small planet in the vicinity of Beteigeuze
|
Huuh-huuh -
anyone out there?
_________________ Ford Prefect
Never purchase release 1.x ! (ancient programmer's wisdom) "Don't argue with idiots. They'll drag you down to their level and then beat you with experience."
|
| Wed Jun 18, 2008 2:54 pm |
|
 |
|
Ford Prefect
Senior Roboticist
Joined: Sat Mar 01, 2008 12:52 pm Posts: 936 Location: a small planet in the vicinity of Beteigeuze
|
@dick swan, @tfriez,
could you plz give a statement to these problems?
how is this with the 1.40?
thx in advance!
_________________ Ford Prefect
Never purchase release 1.x ! (ancient programmer's wisdom) "Don't argue with idiots. They'll drag you down to their level and then beat you with experience."
|
| Tue Jul 08, 2008 2:43 am |
|
 |
|
tfriez
Site Admin
Joined: Wed Jan 24, 2007 10:42 am Posts: 537
|
In 1.40, the files are moved to the Windows Recycling bin every time the program is compiled or saved. We are still working on adding the increment addition to the file name.
_________________Timothy Friez ROBOTC Developer - SW Engineer tfriez@robotc.net
|
| Wed Jul 09, 2008 10:50 am |
|
|