Author Topic: autosave doesn't work if AutoRestoreFiles is off.  (Read 1561 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1902
  • Hero Points: 184
  • Text
autosave doesn't work if AutoRestoreFiles is off.
« on: July 27, 2016, 06:28:31 pm »
Turn off restore files in Tools > Options > Application Options > Auto Restore
Turn on autosave.


Load and modify a file.
Ignore slickedit for a long period of time - longer than the autosave timeout.


Notice that the modified file never appears in the autosave folder.
The file modifications do not get saved.
If slick is terminated or crashes, you loose your open file changes.


jporkkahtc

  • Senior Community Member
  • Posts: 1902
  • Hero Points: 184
  • Text
Re: autosave doesn't work if AutoRestoreFiles is off.
« Reply #1 on: July 27, 2016, 06:49:18 pm »
Actually, I'm not seeing AutoSave work very reliably at all.
If AutoRestoreFiles is off when you start slick, then you open a file and modify it, it won't autosave.


If you enable AutoRestoreFiles, then open a file and modify it, it won't autosave.


If you restart slick with AutoRestoreFiles enabled, autosave now seems to work.




If ExitOnAutoSave is enabled, and autosave is working, it saves the files to their original location, ignoring the option to autosave to a separate folder.






I started looking at this because I wondered what would happen if AutoRestore is off, yet you have a file which should have been autosaved then slick was terminated. I would expect slick to restart and remember the changes to the file the next time you load the file - but I don't know if that works since autosaving isn't working at all in this case.




I also found that when "Save To" is set to "SameName" or "SameNameDiffExtension", that the AUtoSave Directory is disabled in options, yet this setting is used to autosave untitled files.


Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5177
  • Hero Points: 428
Re: autosave doesn't work if AutoRestoreFiles is off.
« Reply #2 on: July 28, 2016, 01:35:59 am »
This will take some time to work through. Thanks for finding some good issues. We need to detect that there was a crash and ALWAYS auto-restore the files even if auto restore files is off.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5177
  • Hero Points: 428
Re: autosave doesn't work if AutoRestoreFiles is off.
« Reply #3 on: July 28, 2016, 01:43:40 pm »
Fixed for next beta