Sublime Forum

Command line parameter causes two windows to open

#1

Using Windows (7) Sublime Text 2 (2.0/2210) - portable version

When opening sublime from the command line, with a project file:

sublime_text.exe --project myproject.sublime-project

…2 windows will open. The first one (underneath) shows the project correctly, the second one (on top) is a blank window (no files in editor).

This also occurs without the --project option, just run sublime from the command line with ‘.’ or any other folder…
The first time it opens a single window, but each time after it opens the second blank window.

I tried this with a fresh install, with no configuration changes.
This did not happen with the 2181 build.

Thanks!
p.s. Great editor!

0 Likes

"$ subl ." opens 2 instances
#2

Yeah I’m experiencing this too. This has been a problem in various shapes and forms for months, as evidenced by the many threads about it:

sublimetext.com/forum/viewt … f=2&t=6671
sublimetext.com/forum/viewtopic.php?f=4&t=7112


etc

For me, it only became a problem after upgrading to the official 2 release.

0 Likes

#3

i’m having the same problem, note it ONLY occurs when you didn’t close the project in the previous session.

Steps:
Open Sublime
Open a Project
Close Sublime
Open sublime with “sublime --project path/to/project/file”

you’ll get 2 windows

alternate steps
Open Sublime
Open a Project
Close Project
Close Sublime
Open sublime with “sublime --project path/to/project/file”

you’ll get only 1 window…

This is all over the forum as a bug, can we get this squashed!?

0 Likes

#4

I get the same thing using Sublime Text 3 on Windows. It’s extremely frustrating and none of the workarounds I’ve found work acceptably.

0 Likes

#5

goto : Preferences->Settings->User

add or change the folowing settings…

{
“hot_exit”: false,
“remember_open_files”: false
}

ET VOILÁ…

1 Like

#6

Thanks! It worked for me.

0 Likes