[TxMt] Error using mate

Nirias nirias999 at gmail.com
Tue Sep 8 23:14:46 UTC 2009


I am getting errors when running "mate" only while logged in as admin.
 Things work fine when logged in as a regular user.  This involves textmate
1.5.9 on OSX 10.6 and I am seeing the issue with both of my macs (mid-2007
imac and feb 2008 mbp).  I did not encounter this prior to the Snow Leopard
and textmate 1.5.9 upgrades.

Starting bash, then doing a "login admin" and then attempting to edit
produces this error:

mate test.txt
Tue Sep  8 03:09:15 Mothra-2.local mate[17070] <Error>: kCGErrorFailure: Set
a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
_RegisterApplication(), FAILED TO establish the default connection to the
WindowServer, _CGSDefaultConnection() is NULL.

the console is hung at this point until you hit Control-Z



Trying again with sudo changes the error to this:

sudo mate test.txt
2009-09-08 03:00:06.946 mate[17053:e07] An uncaught exception was raised
2009-09-08 03:00:06.949 mate[17053:e07] *** -[NSArray objectAtIndex:]: index
(-1 (or possibly larger)) beyond bounds (0)
2009-09-08 03:00:06.950 mate[17053:e07] *** Terminating app due to uncaught
exception 'NSRangeException', reason: '*** -[NSArray objectAtIndex:]: index
(-1 (or possibly larger)) beyond bounds (0)'
*** Call stack at first throw:
(
0   CoreFoundation                      0x926b258a __raiseError + 410
1   libobjc.A.dylib                     0x965a6f49 objc_exception_throw + 56
 2   CoreFoundation                      0x926f63f1 -[__NSArray0
objectAtIndex:] + 209
3   mate                                0x000026e3 0x0 + 9955
 4   mate                                0x000037af 0x0 + 14255
5   mate                                0x0000261a 0x0 + 9754
 6   mate                                0x00002535 0x0 + 9525
)
Trace/BPT trap

the console is not hung after this error message


Any help would be greatly appreciated.

thanks

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20090908/5b49563f/attachment.html>


More information about the textmate mailing list