Thanks for the very helpful advice!<div>I just commented out the lines in /etc/profile that call path_helper.</div><div>Then, I put paths directly in my .bashrc file. </div><div>This fixed the problem with 'mate' from the terminal, now it launches without hanging.</div>
<div>By the way, the path_helper was also apparently the problem with the extremely slow</div><div>launch of another app I used to use, aquamacs.</div><div><br></div><div>Cheers,</div><div>Steve</div><div><br></div><div><br>
<br><div class="gmail_quote">On Mon, May 19, 2008 at 6:04 PM, Allan Odgaard <<a href="mailto:throw-away-2@macromates.com">throw-away-2@macromates.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">On 19 May 2008, at 21:53, Steven Martin wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="Ih2E3d">
OK, After I run 'mate' from Apple Terminal application (ver 2.0.1), and the<br>
application hangs, here is the log of output using 'sample TextMate 10':<br>
Analysis of sampling TextMate (pid 88957) every 1 millisecond<br></div>
[...]<br>
</blockquote>
<br>
I fear what you see is a performance bug with Leopard's /etc/profile.<br>
<br>
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).<br>
<br>
Unfortunately /etc/profile has a call to /usr/libexec/path_helper which is exponential in the length of the PATH variable.<br>
<br>
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.<br>
<br>
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©ö.<br>
<br>
<br>
©ö 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).<div>
<div></div><div class="Wj3C7c"><br>
<br>
<br>
______________________________________________________________________<br>
For new threads USE THIS: <a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
(threading gets destroyed and the universe will collapse if you don't)<br>
<a href="http://lists.macromates.com/mailman/listinfo/textmate" target="_blank">http://lists.macromates.com/mailman/listinfo/textmate</a><br>
</div></div></blockquote></div><br></div>