Home Download Buy Blog Forum Support

subl command broken in 2175? (OSX)

subl command broken in 2175? (OSX)

Postby masterjeef on Wed Feb 08, 2012 9:29 pm

I am trying to open some files via the commandline and a new sublime text window shows up but doesn't actually open any of my files. I am getting messages like this on open:

Code: Select all
2/8/12 4:26:00.465 PM Sublime Text 2: *** -[NSMachPort handlePortMessage:]: dropping incoming DO message because the connection is invalid


I'm going to try reverting to 2174 and see what happens.
masterjeef
 
Posts: 2
Joined: Wed Feb 08, 2012 9:23 pm

Re: subl command broken in 2175? (OSX)

Postby masterjeef on Wed Feb 08, 2012 9:41 pm

Actually, it looks like it doesn't work when there are no windowsopen -- if I have an editor window up then everything works fine. Weird!
masterjeef
 
Posts: 2
Joined: Wed Feb 08, 2012 9:23 pm

Re: subl command broken in 2175? (OSX)

Postby handycam on Wed Feb 08, 2012 10:22 pm

Works fine here. With sublime closed, I can type subl .bash_profile and it launches and opens it.
Mac OS 10.9.3
ST 3 (3059)
handycam
 
Posts: 271
Joined: Tue Jan 03, 2012 2:42 pm

Re: subl command broken in 2175? (OSX)

Postby Nate on Fri Feb 24, 2012 7:11 pm

I’m having the exact same problem as masterjeef.

The “dropping incoming DO message” error is logged in the OS X Console and the “subl” command opens an empty window unless I already have an editor window open.

I am using build 2181.
Nate
 
Posts: 4
Joined: Fri Feb 24, 2012 7:07 pm

Re: subl command broken in 2175? (OSX)

Postby handycam on Fri Feb 24, 2012 7:22 pm

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.
Mac OS 10.9.3
ST 3 (3059)
handycam
 
Posts: 271
Joined: Tue Jan 03, 2012 2:42 pm

Re: subl command broken in 2175? (OSX)

Postby Nate on Fri Feb 24, 2012 9:25 pm

handycam wrote: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.


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:
Code: Select all
~$ subl .bash_profile

(Should open my bash profile)
Result: Blank “untitled” window.

Also:
Code: Select all
~$ 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:
Code: Select all
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 <some file>”. Result: blank “untitled” window
  • App is running but no windows are open. Type “subl <some file>”. Result: blank “untitled” window
  • App is running and at least one window is open. Type “subl <some file>”. 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.
Nate
 
Posts: 4
Joined: Fri Feb 24, 2012 7:07 pm

Re: subl command broken in 2175? (OSX)

Postby handycam on Fri Feb 24, 2012 9:32 pm

That really stinks. I have no clue.
Mac OS 10.9.3
ST 3 (3059)
handycam
 
Posts: 271
Joined: Tue Jan 03, 2012 2:42 pm

Re: subl command broken in 2175? (OSX)

Postby kd7swh on Mon Feb 27, 2012 4:14 am

I just created a link:

Code: Select all
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /bin/subl


It works but creating a PATH in bashrc would be the "proper solution".
Mac OS 10.7.3
ST2 2181
kd7swh
 
Posts: 5
Joined: Mon May 09, 2011 1:13 am

Re: subl command broken in 2175? (OSX)

Postby Nate on Tue Feb 28, 2012 11:11 am

kd7swh wrote:I just created a link:

Code: Select all
sudo ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /bin/subl


It works but creating a PATH in bashrc would be the "proper solution".


Yes, that is similar to what I did, as per the documentation.

Please read above for a description of the problem—it’s a bug in 2181, not a mis-understanding on my part or masterjeef of how to create or use the “subl” command.
Nate
 
Posts: 4
Joined: Fri Feb 24, 2012 7:07 pm

Re: subl command broken in 2175? (OSX)

Postby msluyter on Sat Jun 16, 2012 5:57 pm

I'm experiencing the same issue in 2181:

This command:
Code: Select all
subl .

opens ST2 with no folders/files open (blank). However, one workaround that only requires slightly more typing is:

Code: Select all
subl -a .


That works for me.

Edited to add: whoops, spoke too soon. This only works if you have an instance of ST2 already running. If none are running, this also does not work.
msluyter
 
Posts: 3
Joined: Mon Oct 03, 2011 10:55 pm

Next

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 27 guests