Home Download Buy Blog Forum Support

Sudo fails

Sudo fails

Postby marksteve on Thu Mar 03, 2011 2:13 am

Code: Select all
sudo subl /etc/hosts
2011-03-03 10:11:01.977 subl[11362:e07] *** Assertion failure in -[NSWorkspace launchApplicationAtURL:options:configuration:error:], /SourceCache/AppKit/AppKit-1038.35/AppKit.subproj/NSWorkspace.m:1018
2011-03-03 10:11:01.980 subl[11362:e07] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: url != nil'
*** Call stack at first throw:
(
   0   CoreFoundation                      0x995f46ba __raiseError + 410
   1   libobjc.A.dylib                     0x900b8509 objc_exception_throw + 56
   2   CoreFoundation                      0x995f43e8 +[NSException raise:format:arguments:] + 136
   3   Foundation                          0x98062bb3 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116
   4   AppKit                              0x916a164a -[NSWorkspace launchApplicationAtURL:options:configuration:error:] + 152
   5   subl                                0x00003478 main + 840
   6   subl                                0x00003109 start + 53
)
Trace/BPT trap
marksteve
 
Posts: 43
Joined: Thu Sep 30, 2010 6:44 am

Re: Sudo fails

Postby jps on Thu Mar 03, 2011 10:38 pm

This should now just not-work, rather than crash, in 2038.

Running subl with sudo isn't going to work, because all subl does is send the filename off to the real Sublime Text 2 application. This isn't ideal, but there doesn't seem to be an easy way around it.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Sudo fails

Postby msthmnd on Tue Sep 20, 2011 9:25 am

any chance sublime will ask for administrative privileges when editing files, that needs to be sudo'd
msthmnd
 
Posts: 17
Joined: Mon Aug 22, 2011 2:40 am

Re: Sudo fails

Postby buymeasoda on Fri Sep 23, 2011 1:16 am

msthmnd wrote:any chance sublime will ask for administrative privileges when editing files, that needs to be sudo'd


Yeah, this is something that gets me all the time. With TextMate, you could do:

Code: Select all
mate /etc/hosts


Then edit away, then hit save and it would ask you for your password to do the save. It's one of the few remaining occasions where I resort to going back to TextMate, after the obligatory:

Memory lapse -> subl /etc/hosts -> Save -> DOH! -> mate /etc/hosts -> Edit -> Save -> Enter Password -> Done
buymeasoda
 
Posts: 65
Joined: Mon Jul 18, 2011 11:40 pm
Location: Brisbane, Australia

Re: Sudo fails

Postby msthmnd on Sun Oct 02, 2011 7:20 am

do we have a user echo entry for this yet?
msthmnd
 
Posts: 17
Joined: Mon Aug 22, 2011 2:40 am

Re: Sudo fails

Postby stufraser on Fri Oct 14, 2011 12:29 am

+1 for this feature. I also still use textmate for these situations
stufraser
 
Posts: 1
Joined: Fri Oct 14, 2011 12:27 am

Re: Sudo fails

Postby tksb on Tue Oct 25, 2011 7:29 pm

buymeasoda wrote:
msthmnd wrote:any chance sublime will ask for administrative privileges when editing files, that needs to be sudo'd


Yeah, this is something that gets me all the time. With TextMate, you could do:

Code: Select all
mate /etc/hosts


Then edit away, then hit save and it would ask you for your password to do the save. It's one of the few remaining occasions where I resort to going back to TextMate, after the obligatory:

Memory lapse -> subl /etc/hosts -> Save -> DOH! -> mate /etc/hosts -> Edit -> Save -> Enter Password -> Done


This happens at least a half-dozen times a day for me.
tksb
 
Posts: 1
Joined: Tue Oct 25, 2011 7:27 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 22 guests