Author Topic: Vsdiff state file  (Read 4753 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Vsdiff state file
« on: November 19, 2019, 12:42:11 AM »
When running 'vs.exe' you can do
vs -x %SLICKEDITCONFIG%\24.0.0\alternate_vslick.sta

But, for vsdiff "-x" does something else.
Is there a way to run vsdiff with an alternate config file?


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: Vsdiff state file
« Reply #1 on: November 19, 2019, 01:33:42 AM »
You can use -sc and a config directory.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Vsdiff state file
« Reply #2 on: November 19, 2019, 01:39:53 AM »
Yeah, but....
I just discovered 'vs -x alt_config.sta'
This lets me run a 2nd instance of Slick, but have them share the same SLICKEDITCONFIG directory.

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Re: Vsdiff state file
« Reply #3 on: November 19, 2019, 10:17:39 AM »
just wondering - what would be the difference between that and running two instances of vs.exe with the same state file / same config folder.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: Vsdiff state file
« Reply #4 on: November 19, 2019, 10:23:54 AM »
I'll have to see if I can allow -x.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Vsdiff state file
« Reply #5 on: November 20, 2019, 11:55:03 PM »
WRT two instances with the same state file: Slick always complains about the state file being locked and it can't write to it.

Code: [Select]
---------------------------
SlickEdit Pro
---------------------------
Failed to save configuration to 'C:\Users\joe\Documents\Slickedit\24.0.0\vslick.sta'.

Access denied
---------------------------
OK   
---------------------------


---------------------------
SlickEdit Pro
---------------------------
Unable to save the configuration

Do you want to correct the problem and try again?

If you can't correct the problem, your configuration changes will be lost.
---------------------------
&Yes   &No   
---------------------------


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: Vsdiff state file
« Reply #6 on: November 21, 2019, 12:59:17 PM »
This is two copies of vs.exe with -x?

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Vsdiff state file
« Reply #7 on: November 21, 2019, 07:35:43 PM »
right.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: Vsdiff state file
« Reply #8 on: November 21, 2019, 07:45:09 PM »
You can launch one of them with "-st 0", and you will be able to save the config in the other one, but not the one you used that argument with.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Vsdiff state file
« Reply #9 on: November 22, 2019, 07:35:17 PM »
Next trick -- after you have a couple of instances running, how can you tell which is which?

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2896
  • Hero Points: 153
Re: Vsdiff state file
« Reply #10 on: November 22, 2019, 08:36:14 PM »
Do you have color current line on?

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Re: Vsdiff state file
« Reply #11 on: November 22, 2019, 08:54:07 PM »
Maybe when you invoke slick, pass the name of a macro to execute.  Also have a look at the DDE command.