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

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • 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: 6826
  • Hero Points: 526
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: 2620
  • Hero Points: 210
  • 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: 2620
  • Hero Points: 210
  • 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: 6826
  • Hero Points: 526
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: 6826
  • Hero Points: 526
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: 2620
  • Hero Points: 210
  • 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: 2620
  • Hero Points: 210
  • 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: 6826
  • Hero Points: 526
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: 6826
  • Hero Points: 526
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: 6826
  • Hero Points: 526
Re: B2: Invalid auto-save warning
« Reply #10 on: October 09, 2015, 01:52:15 PM »
Fixed for next beta