SlickEdit Community

Archived Read Only Forums => SlickEdit 2015 v20 Beta Discussion => Topic started by: jporkkahtc on October 08, 2015, 05:04:46 pm

Title: B2: Invalid auto-save warning
Post by: jporkkahtc 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   
---------------------------
Title: Re: B2: Invalid auto-save warning
Post by: Clark 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.
Title: Re: B2: Invalid auto-save warning
Post by: jporkkahtc 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.
Title: Re: B2: Invalid auto-save warning
Post by: jporkkahtc 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.
Title: Re: B2: Invalid auto-save warning
Post by: Clark 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.
Title: Re: B2: Invalid auto-save warning
Post by: Clark 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.
Title: Re: B2: Invalid auto-save warning
Post by: jporkkahtc 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
Title: Re: B2: Invalid auto-save warning
Post by: jporkkahtc 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.
Title: Re: B2: Invalid auto-save warning
Post by: Clark 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.
Title: Re: B2: Invalid auto-save warning
Post by: Clark 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.
Title: Re: B2: Invalid auto-save warning
Post by: Clark on October 09, 2015, 01:52:15 pm
Fixed for next beta