[quote=“handycam”]How are you using this command?
If ST2 is not running and I type “subl”, ST2 launches and an empty window opens (the normal default launch behavior);
If I type “subl myFile.html” (when in a directory with such a file) it opens for editing.
I assume this is the way its supposed to work.[/quote]
You are correct: that is how it is supposed to work. I wish it still worked for me.
Here is how I am using this command:
~$ subl .bash_profile
(Should open my bash profile)
Result: Blank “untitled” window.
Also:
~$ cd myproject
~/myproject$ subl .
(Should open the current directory as a project in ST2)
Result: Blank “untitled” window.
Each time this happens, a message like the following is logged:
2/24/12 1:12:09.002 PM Sublime Text 2: *** -[NSMachPort handlePortMessage:]: dropping incoming DO message because the connection is invalid
Note that everything works correctly if I already have an ST2 window open. But of course, I would like it to work all the time.
Scenarios:
-
App is not running. Type “subl ”. Result: blank “untitled” window
-
App is running but no windows are open. Type “subl ”. Result: blank “untitled” window
-
App is running and at least one window is open. Type “subl ”. Result: success
Things I have tried:
-
restarting
-
rm’ing and re-creating my “~/bin/subl” symlink.
-
deleting my “~/Library/Application Support/Sublime Text 2” folder (i.e., stock configuration)
I am using Lion 10.7.3 and ST 2 build 2181.