Author Topic: B2: Invalid auto-save warning  (Read 2620 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1784
  • Hero Points: 174
  • Text
B2: Invalid auto-save warning
« on: October 08, 2015, 05:04:46 pm »
I had a modified file open for awhile.
Then I closed slick, and clicked "Save-none" on the dialog asking what to do with modified buffers.
When I start Slick again, I get this warning about the file I chose not to save:
---------------------------
SlickEdit Pro
---------------------------
WARNING: Modified AutoSave file 'C:\Users\joe\Documents\JavaProjects\WinDU\WinDU.java' could not be restored
---------------------------
OK   
---------------------------

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4794
  • Hero Points: 388
Re: B2: Invalid auto-save warning
« Reply #1 on: October 08, 2015, 08:37:21 pm »
Can you easily reproduce this? I tried but no luck.

This message is only supposed to occur if you abnormally exit SlickEdit (crash,"fexit") and a particular file could not be auto-restored.

jporkkahtc

  • Senior Community Member
  • Posts: 1784
  • Hero Points: 174
  • Text
Re: B2: Invalid auto-save warning
« Reply #2 on: October 08, 2015, 08:58:54 pm »
Seems to be auto-save.
Set your auto-save timeout short.
Modify a buffer.
Allow auto-save to happen.
Exit
Save-none.
Start Slick and it complains.

jporkkahtc

  • Senior Community Member
  • Posts: 1784
  • Hero Points: 174
  • Text
Re: B2: Invalid auto-save warning
« Reply #3 on: October 08, 2015, 09:03:05 pm »
Worse, after you repro this then the buffer is shown as modified.
If you undo, the contents of the buffer are cleared -- empty buffer, and shows as unmodified.

The problem continues to repro (apparently) over several exit/restarts - until I save the buffer.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4794
  • Hero Points: 388
Re: B2: Invalid auto-save warning
« Reply #4 on: October 08, 2015, 09:20:41 pm »
Seems to be auto-save.
Set your auto-save timeout short.
Modify a buffer.
Allow auto-save to happen.
Exit
Save-none.
Start Slick and it complains.
That's what I tried. I must be missing a something.
« Last Edit: October 08, 2015, 10:33:01 pm by Clark »

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4794
  • Hero Points: 388
Re: B2: Invalid auto-save warning
« Reply #5 on: October 08, 2015, 11:03:07 pm »
The undo issue will be fixed in the next beta.

Hmm...I got the WARNING issue once but not from the same steps as you (don't know what I did) and sadly it vanished due to the next 10 second AutoSave exit. I'll keep trying.

jporkkahtc

  • Senior Community Member
  • Posts: 1784
  • Hero Points: 174
  • Text
Re: B2: Invalid auto-save warning
« Reply #6 on: October 09, 2015, 01:29:38 am »
Do you have "save to a different directory" set?
When I choose either of the other two options this doesn't repro.
I have AutoSave On, Inactivity: 10, Exit: Off, Save after: 60, SaveTo: Different directory, AutoSaveDir: <blank>, Largest: 500

jporkkahtc

  • Senior Community Member
  • Posts: 1784
  • Hero Points: 174
  • Text
Re: B2: Invalid auto-save warning
« Reply #7 on: October 09, 2015, 01:37:54 am »
I also just noticed ... after getting this warning on "foo.cpp", foo.cpp mode has been changed from C++ to PlainText.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4794
  • Hero Points: 388
Re: B2: Invalid auto-save warning
« Reply #8 on: October 09, 2015, 02:30:10 am »
I also just noticed ... after getting this warning on "foo.cpp", foo.cpp mode has been changed from C++ to PlainText.

The one time it failed for me, it did that too. Seems to be part of the same problem.

Thanks for the additional setting tips.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4794
  • Hero Points: 388
Re: B2: Invalid auto-save warning
« Reply #9 on: October 09, 2015, 11:23:23 am »
Reproduced! Looks like auto-restore is saving some auto-save info that it shouldn't be for this normal exit condition.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4794
  • Hero Points: 388
Re: B2: Invalid auto-save warning
« Reply #10 on: October 09, 2015, 01:52:15 pm »
Fixed for next beta