Author Topic: Bringing VS to front always opens a file...  (Read 86 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2186
  • Hero Points: 192
  • Text
Bringing VS to front always opens a file...
« on: June 11, 2021, 04:43:28 pm »
This is a new thing - it first happened to me a few days ago, but today it is happening again, but with a different file.

Slickedit is running.
From a separate CMD window, I type "vs"
Normally this just brings Slickedit to front.

Now, it also opens a specific file (C:\src\file.bat).

From the cmd prompt, if I do
Code: [Select]
vs OtherFile.txt
Slick behaves as expected, but then
Code: [Select]
vs
slick again opens (or makes active) C:\src\file.bat


Earlier I did have a 2nd instance of Slickedit open (via vs +new), but currently I have only the original instance open.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5772
  • Hero Points: 461
Re: Bringing VS to front always opens a file...
« Reply #1 on: June 12, 2021, 06:14:30 pm »
Did you set the "VSLICK" environment variable? This is used to add arguments to every invocation.

jporkkahtc

  • Senior Community Member
  • Posts: 2186
  • Hero Points: 192
  • Text
Re: Bringing VS to front always opens a file...
« Reply #2 on: June 13, 2021, 01:25:44 am »
No, and restarting Slickedit fixes the problem.
Seems like slick is somehow hanging on to some state it shouldn't.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5772
  • Hero Points: 461
Re: Bringing VS to front always opens a file...
« Reply #3 on: June 13, 2021, 01:51:30 am »
Tricky issue. Make sure there isn’t an extra SlickEdit process running. Long shot guess.