Hi list,
I have a question related to TM2 and the mate command line. I have upgraded to TM2 (most recent version on OS 10.6.8) and removed/installed the command line tool through the preferences dialogue. This has put an executable called 'mate' into /usr/local/bin. So far all good.
In the old TM (v1.x), 'mate' is a symlink in /Applications/TextMate.app/Contents/Resources/ pointing to /Applications/TextMate.app/Contents/SharedSupport/Support/bin/mate
If I now try to run 'mate' after my upgrade to TM2 and 'mate' installation I get:
/usr/local/bin/mate: line 2: /bin/find_app: No such file or directory /usr/local/bin/mate: line 2: /Contents/Resources/mate: No such file or directory
Looking at 'mate' this is a shell script:
#!/bin/sh "$("$TM_SUPPORT_PATH/bin/find_app" com.macromates.TextMate.preview)/Contents/Resources/mate" "$@"
pointing to $TM_SUPPORT_PATH (ie for TM2 this should be "/Applications/TextMate\ 2.app/Contents/SharedSupport/Support" I believe, going by the TM1 setup).
In the new TM2 alpha, however, /Applications/TextMate\ 2.app/Contents/Resources does not contain a 'mate' executable, neither does the folder /Applications/TextMate\ 2.app/Contents/SharedSupport/Support/ exist. In fact, I could not find the 'mate' executable at all in the application bundle.
So my question is: where is 'mate' in TM2 located and how do I fix the sync with Skim?
Thanks, Chris
On Sep 11, 2012, at 3:28 AM, chlists chlists@me.com wrote:
[…] In the new TM2 alpha, however, /Applications/TextMate\ 2.app/Contents/Resources does not contain a 'mate' executable, neither does the folder /Applications/TextMate\ 2.app/Contents/SharedSupport/Support/ exist. In fact, I could not find the 'mate' executable at all in the application bundle.
So my question is: where is 'mate' in TM2 located and how do I fix the sync with Skim?
Basically your version of TextMate relied on ‘mate’ being in one of the bundles, but this is now just the wrapper shell script for the real mate, so you got this wrapper script installed, but as your TextMate is too old, there is no real mate included.
You may want to try this version: https://github.com/nanoant/textmate/downloads
Then re-install ‘mate’.
Hi Allan,
In the new TM2 alpha, however, /Applications/TextMate\ 2.app/Contents/Resources does not contain a 'mate' executable, neither does the folder /Applications/TextMate\ 2.app/Contents/SharedSupport/Support/ exist. In fact, I could not find the 'mate' executable at all in the application bundle.
So my question is: where is 'mate' in TM2 located and how do I fix the sync with Skim?
Basically your version of TextMate relied on ‘mate’ being in one of the bundles, but this is now just the wrapper shell script for the real mate, so you got this wrapper script installed, but as your TextMate is too old, there is no real mate included.
You may want to try this version: https://github.com/nanoant/textmate/downloads
Then re-install ‘mate’.
Thanks - that worked. Had to manually go in and fix the tmpref.py in the Latex.tmbundle folder as I could not set the PDF viewer through the Bundle preferences (see attached screenshot for popup warning). After that was done all works again.
Cheers, Chris