Author Topic: Multiple instances: and cmdline invocation  (Read 461 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2158
  • Hero Points: 191
  • Text
Multiple instances: and cmdline invocation
« on: September 28, 2020, 07:05:52 pm »
How is cmd line invocation supposed to work now?

It used to be that
1st invocation of vs.exe from cmd.exe would not exit
2nd and subsequent invocations of vs.exe would activate the existing slick and maybe open new files.
To get a new instance you have to use "+new" cmdline option.

Now
1st invocation of vs.exe from cmd.exe would not exit
2nd invocation of vs.exe starts a 2nd instance
well, sometimes anyways - I've not figured out what is happening yet.
Sometimes when I do "vs anotherFile.txt", another instance of Slickedit is started, and sometimes it activates the existing instance of slickedit.

It appears to matter if slick already has the file open?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5702
  • Hero Points: 457
Re: Multiple instances: and cmdline invocation
« Reply #1 on: September 29, 2020, 01:57:58 am »
v25 handles multiple instances differently than v24. The config directory you specify matters.
The following will start two instances of SlickEdit in v25 but not in v24.
Code: [Select]
vs -sc c:\config1
vs -sc c:\config2

The following will start only one instance:
Code: [Select]
vs -sc c:\config1
vs -sc c:\config1

jporkkahtc

  • Senior Community Member
  • Posts: 2158
  • Hero Points: 191
  • Text
Re: Multiple instances: and cmdline invocation
« Reply #2 on: September 29, 2020, 05:28:08 pm »
OK, it definitely doesn't work reliably.

starting with VS.exe not running.
From cmd.exe, I run 'vs file1.txt'
SLick starts and loads file1.txt.
From a 2nd cmd.exe, I run 'vs file2.txt'
A 2nd instance of Slick starts and loads file2.txt


This doesn't happen everytime, but often enough that it is pretty easy to repro.

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2543
  • Hero Points: 141
Re: Multiple instances: and cmdline invocation
« Reply #3 on: September 29, 2020, 06:01:58 pm »
Reproduced.  We will be looking into this.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5702
  • Hero Points: 457
Re: Multiple instances: and cmdline invocation
« Reply #4 on: September 29, 2020, 08:57:55 pm »
Fixed for next build