Hello, I'm relatively new to TextMate. When I try and launch textmate from the terminal (via 'mate'), textmate hangs. Interestingly, if textmate is already open, this doesn't occur. Eventually I have to force quite textmate. I am running Leopard (10.5.2) on an Intel Core 2 Due iMac.
Anyone else have this problem?
Thanks. Steve
Steven Martin wrote:
Hello,
I'm relatively new to TextMate. When I try and launch textmate from the terminal (via 'mate'), textmate hangs. Interestingly, if textmate is already open, this doesn't occur. Eventually I have to force quite textmate. I am running Leopard (10.5.2) on an Intel Core 2 Due iMac.
Exactly what are you typing when you launch it, and how do you know it hangs?
Is it possible you are just typing 'mate' (without the quotes)? In which case TM opens but doesn't do anything. Maybe you need to type 'mate .' to open the current folder, or 'mate myfile.txt' to open a file?
Ed
On 16 May 2008, at 11:40, Ed Singleton wrote:
Steven Martin wrote:
Hello,
I'm relatively new to TextMate. When I try and launch textmate from the terminal (via 'mate'), textmate hangs. Interestingly, if textmate is already open, this doesn't occur. Eventually I have to force quite textmate. I am running Leopard (10.5.2) on an Intel Core 2 Due iMac.
Exactly what are you typing when you launch it, and how do you know it hangs?
Is it possible you are just typing 'mate' (without the quotes)? In which case TM opens but doesn't do anything. Maybe you need to type 'mate .' to open the current folder, or 'mate myfile.txt' to open a file?
hmm.
I just tried mate . and whilst TM started it then went into application not responding, a force quit returned this to the terminal:
2008-05-16 11:44:06.624 mate[883:10b] Exception raised during posting of notification. Ignored. exception: 'connection went invalid while waiting for a reply' invoked observer method: '*** -[OakLaunchHelper didLaunchTextMate:]' observer: 0x1218a0 notification name: 'NSWorkspaceDidLaunchApplicationNotification'
I'm using Version 1.5.7 (1464)
on
System Version: Mac OS X 10.5.2 (9C7010) Kernel Version: Darwin 9.2.2
mate myfile.txt opens a new file, just fine.
hth someone
Whether I launch textmate as: mate or mate file.txt Textmate eventually hangs and I have to do a force quite. I am running the same version of TM and Leopard as Tony.
The only time TextMate doesn't hang from the terminal launch is if it is already open in the Dock.
Steve
On Fri, May 16, 2008 at 6:49 AM, Tony Crockford tonyc@boldfish.co.uk wrote:
On 16 May 2008, at 11:40, Ed Singleton wrote:
Steven Martin wrote:
Hello,
I'm relatively new to TextMate. When I try and launch textmate from the terminal (via 'mate'), textmate hangs. Interestingly, if textmate is already open, this doesn't occur. Eventually I have to force quite textmate. I am running Leopard (10.5.2) on an Intel Core 2 Due iMac.
Exactly what are you typing when you launch it, and how do you know it hangs?
Is it possible you are just typing 'mate' (without the quotes)? In which case TM opens but doesn't do anything. Maybe you need to type 'mate .' to open the current folder, or 'mate myfile.txt' to open a file?
hmm.
I just tried mate . and whilst TM started it then went into application not responding, a force quit returned this to the terminal:
2008-05-16 11:44:06.624 mate[883:10b] Exception raised during posting of notification. Ignored. exception: 'connection went invalid while waiting for a reply' invoked observer method: '*** -[OakLaunchHelper didLaunchTextMate:]' observer: 0x1218a0 notification name: 'NSWorkspaceDidLaunchApplicationNotification'
I'm using Version 1.5.7 (1464)
on
System Version: Mac OS X 10.5.2 (9C7010) Kernel Version: Darwin 9.2.2
mate myfile.txt opens a new file, just fine.
hth someone
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 15 May 2008, at 20:49, Steven Martin wrote:
When I try and launch textmate from the terminal (via 'mate'), textmate hangs. Interestingly, if textmate is already open, this doesn't occur. Eventually I have to force quite textmate. I am running Leopard (10.5.2) on an Intel Core 2 Due iMac.
So TextMate.app does launch, but stalls?
And you call mate without arguments?
You can try sample TextMate.app, see http://wiki.macromates.com/Troubleshooting/101
Also be sure it is not that you have two versions of TextMate installed, one being “broken” (e.g. migrated from a previous PPC system or similar).
OK, After I run 'mate' from Apple Terminal application (ver 2.0.1), and the application hangs, here is the log of output using 'sample TextMate 10': Analysis of sampling TextMate (pid 88957) every 1 millisecond Call graph: 8715 Thread_2903 8715 start 8715 _start 8715 NSApplicationMain 8715 -[NSApplication run] 8715 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] 8715 _DPSNextEvent 8715 AEProcessAppleEvent 8715 aeProcessAppleEvent 8715 dispatchEventAndSendReply(AEDesc const*, AEDesc*) 8715 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned char*) 8715 _NSAppleEventManagerGenericHandler 8715 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] 8715 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] 8715 -[NSApplication(NSAppleEventHandling) _handleAEOpen:] 8715 -[NSApplication _sendFinishLaunchingNotification] 8715 -[NSApplication _postDidFinishNotification] 8715 -[NSNotificationCenter postNotificationName:object:] 8715 -[NSNotificationCenter postNotificationName:object:userInfo:] 8715 _CFXNotificationPostNotification 8715 __CFXNotificationPost 8715 _nsnote_callback 8715 -[AppDelegate applicationDidFinishLaunching:] 8715 +[OakCreateSymbolicLinkWizard sharedInstance] 8715 -[OakCreateSymbolicLinkWizard init] 8715 -[OakCreateSymbolicLinkWizard setupDestinationPaths] 8715 fgets 8715 __srefill 8715 read 8715 read 8715 Thread_2a03 8715 thread_start 8715 _pthread_start 8715 text::view::tokenize_filter::worker(void*) 8715 text::view::tokenize_filter::actual_worker() 8715 pthread_cond_wait 8715 _pthread_cond_wait 8715 semaphore_wait_signal_trap 8715 semaphore_wait_signal_trap
Total number in stack (recursive counted multiple, when >=5):
Sort by top of stack, same collapsed (when >= 5): read 8715 semaphore_wait_signal_trap 8715
Steve
P.S. I only have installed the latest version of TextMate (1.5.7 [1436])
On Fri, May 16, 2008 at 6:52 PM, Allan Odgaard throw-away-2@macromates.com wrote:
On 15 May 2008, at 20:49, Steven Martin wrote:
When I try and launch textmate from the terminal (via 'mate'), textmate
hangs. Interestingly, if textmate is already open, this doesn't occur. Eventually I have to force quite textmate. I am running Leopard (10.5.2) on an Intel Core 2 Due iMac.
So TextMate.app does launch, but stalls?
And you call mate without arguments?
You can try sample TextMate.app, see http://wiki.macromates.com/Troubleshooting/101
Also be sure it is not that you have two versions of TextMate installed, one being "broken" (e.g. migrated from a previous PPC system or similar).
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 19 May 2008, at 21:53, Steven Martin wrote:
OK, After I run 'mate' from Apple Terminal application (ver 2.0.1), and the application hangs, here is the log of output using 'sample TextMate 10': Analysis of sampling TextMate (pid 88957) every 1 millisecond [...]
I fear what you see is a performance bug with Leopard’s /etc/profile.
When you launch TM, it will ask you if you want to install the ‘mate’ shell command. To get suggested installation locations it runs a shell script that sources amongst others /etc/profile (to get your normal PATH to use as hint).
Unfortunately /etc/profile has a call to /usr/libexec/path_helper which is exponential in the length of the PATH variable.
So you get the problem when launching TM from the shell presumably because the PATH there are significantly longer than launching e.g. from Finder.
I think if you update to cutting edge, the problem may have been avoided by only calling the shell script when necessary otherwise you will need to either disable the call to path_helper in /etc/profile or try pick Help → Terminal Usage… and re-install mate, so that TM records in the preferences, that this helper is already installed¹.
¹ The process might be something like, TM not seeing in preferences that you installed the mate shell command, then collecting install paths, checking these to see if ‘mate’ is already there, and if so, bypass the dialog. So not seeing the dialog on startup is not necessarily indicative of TM having recorded in the preferences, that the tool is already installed (but given this Leopard problem, it probably should record it, when it finds ‘mate’ in one of the suggested installlocations).
Thanks for the very helpful advice!I just commented out the lines in /etc/profile that call path_helper. Then, I put paths directly in my .bashrc file. This fixed the problem with 'mate' from the terminal, now it launches without hanging. By the way, the path_helper was also apparently the problem with the extremely slow launch of another app I used to use, aquamacs.
Cheers, Steve
On Mon, May 19, 2008 at 6:04 PM, Allan Odgaard throw-away-2@macromates.com wrote:
On 19 May 2008, at 21:53, Steven Martin wrote:
OK, After I run 'mate' from Apple Terminal application (ver 2.0.1), and
the application hangs, here is the log of output using 'sample TextMate 10': Analysis of sampling TextMate (pid 88957) every 1 millisecond [...]
I fear what you see is a performance bug with Leopard's /etc/profile.
When you launch TM, it will ask you if you want to install the 'mate' shell command. To get suggested installation locations it runs a shell script that sources amongst others /etc/profile (to get your normal PATH to use as hint).
Unfortunately /etc/profile has a call to /usr/libexec/path_helper which is exponential in the length of the PATH variable.
So you get the problem when launching TM from the shell presumably because the PATH there are significantly longer than launching e.g. from Finder.
I think if you update to cutting edge, the problem may have been avoided by only calling the shell script when necessary otherwise you will need to either disable the call to path_helper in /etc/profile or try pick Help → Terminal Usage… and re-install mate, so that TM records in the preferences, that this helper is already installed¹.
¹ The process might be something like, TM not seeing in preferences that you installed the mate shell command, then collecting install paths, checking these to see if 'mate' is already there, and if so, bypass the dialog. So not seeing the dialog on startup is not necessarily indicative of TM having recorded in the preferences, that the tool is already installed (but given this Leopard problem, it probably should record it, when it finds 'mate' in one of the suggested installlocations).
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate