Author Topic: Failure to restore workspace  (Read 731 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1861
  • Hero Points: 179
  • Text
Failure to restore workspace
« 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.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4963
  • Hero Points: 409
Re: Failure to restore workspace
« Reply #1 on: August 21, 2018, 06:28:22 pm »
Odd. It's like only part of the restore worked. Keep an eye on it.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4963
  • Hero Points: 409
Re: Failure to restore workspace
« Reply #2 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.

jporkkahtc

  • Senior Community Member
  • Posts: 1861
  • Hero Points: 179
  • Text
Re: Failure to restore workspace
« Reply #3 on: August 24, 2018, 05:22:30 pm »
Happened 2 days in a row.

Anything I can do to debug it?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4963
  • Hero Points: 409
Re: Failure to restore workspace
« Reply #4 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.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4963
  • Hero Points: 409
Re: Failure to restore workspace
« Reply #5 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.

jporkkahtc

  • Senior Community Member
  • Posts: 1861
  • Hero Points: 179
  • Text
Re: Failure to restore workspace
« Reply #6 on: August 24, 2018, 06:24:03 pm »
I verified that function is not being called.

jporkkahtc

  • Senior Community Member
  • Posts: 1861
  • Hero Points: 179
  • Text
Re: Failure to restore workspace
« Reply #7 on: August 24, 2018, 06:34:15 pm »
I uploaded my vrestore file to support.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4963
  • Hero Points: 409
Re: Failure to restore workspace
« Reply #8 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.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4963
  • Hero Points: 409
Re: Failure to restore workspace
« Reply #9 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.