SlickEdit Community

Archived Read Only Forums => SlickEdit 2018 v23 Beta Discussion => Topic started by: jporkkahtc on August 21, 2018, 05:10:29 pm

Title: Failure to restore workspace
Post by: jporkkahtc on August 21, 2018, 05:10:29 pm
This AM when I ran Slick, it didn't restore my workspace.
All the files, including untitled buffers, have been restored, but not the workspace.

The recent projects list in the Project menu is empty as well.
My workspace is listed under Project->AllWorkspaces though.

I didn't see any error messages or anything to indicate a problem.
Title: Re: Failure to restore workspace
Post by: Clark on August 21, 2018, 06:28:22 pm
Odd. It's like only part of the restore worked. Keep an eye on it.
Title: Re: Failure to restore workspace
Post by: Clark on August 22, 2018, 11:04:03 pm
I just had this happen to me. Seems to be something wrong with vrestore.slk. Haven't had a chance to look into to yet but I will.
Title: Re: Failure to restore workspace
Post by: jporkkahtc on August 24, 2018, 05:22:30 pm
Happened 2 days in a row.

Anything I can do to debug it?
Title: Re: Failure to restore workspace
Post by: Clark on August 24, 2018, 05:34:53 pm
Post your vrestore.slk

You might need to delete your vrestore.slk in order for your workspace to get restored. I saved mine away but had to delete it so SlickEdit would restore my workspace. It's on my todo list.
Title: Re: Failure to restore workspace
Post by: Clark on August 24, 2018, 05:59:46 pm
It turns out that my test case is no good. I thought I was on our main branch but I was running a very old v23 branch when I was checking out code changes.

If the vrestore.slk file gets trashed, it's hard to tell.

If it has a workspace line like this:

WORKSPACE: 2 F:\f\se64\b23-00-00-dev\slickedit\slickedit-win64.vpw F:\f\se64\b23-00-00-dev\slickedit\slickedit-pro.vpj

Then the function _srg_workspace should be getting called. Either it gets called or it doesn't. Knowing that would be very helpful. If it's not getting called, then we know the vrestore.slk file is trashed somehow.
Title: Re: Failure to restore workspace
Post by: jporkkahtc on August 24, 2018, 06:24:03 pm
I verified that function is not being called.
Title: Re: Failure to restore workspace
Post by: jporkkahtc on August 24, 2018, 06:34:15 pm
I uploaded my vrestore file to support.
Title: Re: Failure to restore workspace
Post by: Clark on August 24, 2018, 09:35:04 pm
This is a good test case. This vrestore.slk is very trashed. The first problem that has to be fixed is that when a trashed vrestore.slk is processed, SlickEdit needs to at least recover enough to be able to write a good vrestore.slk. That's not happening.
Title: Re: Failure to restore workspace
Post by: Clark on August 25, 2018, 03:18:06 am
This should fix the issues you are having. There was definitely one bad bug that was messing up the restore file. The workspace won't be restored with the vrestore.slk you uploaded but this should correct the problem with it not being generated correctly (i.e cause of problem fixed).

Try loading this beta 2 restore.e with the fix.