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.<div>
<br><div><br></div><div>Starting bash, then doing a "login admin" and then attempting to edit produces this error:</div><div><br></div><div><div>mate test.txt</div></div><div><div>Tue Sep 8 03:09:15 Mothra-2.local mate[17070] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.</div>
<div>_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.</div><div><br></div><div>the console is hung at this point until you hit Control-Z </div><div>
<br>
</div><div><br></div></div><div><br></div><div>Trying again with sudo changes the error to this:<br><div><br></div><div><div>sudo mate test.txt</div><div>2009-09-08 03:00:06.946 mate[17053:e07] An uncaught exception was raised</div>
<div>2009-09-08 03:00:06.949 mate[17053:e07] *** -[NSArray objectAtIndex:]: index (-1 (or possibly larger)) beyond bounds (0)</div><div>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)'</div>
<div>*** Call stack at first throw:</div><div>(</div><div><span style="white-space:pre"> </span>0 CoreFoundation 0x926b258a __raiseError + 410</div><div><span style="white-space:pre"> </span>1 libobjc.A.dylib 0x965a6f49 objc_exception_throw + 56</div>
<div><span style="white-space:pre"> </span>2 CoreFoundation 0x926f63f1 -[__NSArray0 objectAtIndex:] + 209</div><div><span style="white-space:pre"> </span>3 mate 0x000026e3 0x0 + 9955</div>
<div><span style="white-space:pre"> </span>4 mate 0x000037af 0x0 + 14255</div><div><span style="white-space:pre"> </span>5 mate 0x0000261a 0x0 + 9754</div>
<div><span style="white-space:pre"> </span>6 mate 0x00002535 0x0 + 9525</div><div>)</div><div>Trace/BPT trap</div><div><br></div><div>the console is not hung after this error message</div>
<div><br></div><div><br></div><div>Any help would be greatly appreciated. </div><div><br></div><div>thanks</div><div><br></div><div>Nick</div></div><div><br></div><div><br></div></div></div>