Author Topic: Vsdiff state file  (Read 240 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1861
  • Hero Points: 179
  • 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: 2388
  • Hero Points: 133
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: 1861
  • Hero Points: 179
  • 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: 2379
  • Hero Points: 314
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: 2388
  • Hero Points: 133
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: 1861
  • Hero Points: 179
  • 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: 2388
  • Hero Points: 133
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: 1861
  • Hero Points: 179
  • Text
Re: Vsdiff state file
« Reply #7 on: November 21, 2019, 07:35:43 pm »
right.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2388
  • Hero Points: 133
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: 1861
  • Hero Points: 179
  • 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: 2388
  • Hero Points: 133
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: 2379
  • Hero Points: 314
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.