I have used the Latex Bundle of TextMate on a daily basis for ten years. It is my workhorse and I am grateful for the improvements that this wonderful group has put into it, especially René Schwaiger.
Now I need help. Suddenly, for no apparent reason, I am unable to run “Typeset &View (PDF).” Here is the error log:
This command requires ‘kpsewhich’ which wasn’t found on your system. The following locations were searched: • /usr/bin • /bin • /usr/sbin • /sbin • ~/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin If ‘kpsewhich’ is installed elsewhere then you need to set PATH in Preferences → Variables to include the folder in which it can be found.
When I run “which kpsewhich” in terminal, it returns
/Library/TeX/texbin/kpsewhich
In Preferences my Path Variable is
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/Library/TeX/texbin
I tried replacing this with
/Library/TeX/texbin
and got this error log after restarting:
This command requires ‘kpsewhich’ which wasn’t found on your system.
The following locations were searched: • /usr/bin • /bin • /usr/sbin • /sbin • ~/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin
I tried restarting everything several times along the way.
I installed a fresh version of MaxTex.
I installed a fresh version of TextMate 2.
which kpsewhich returns the same response as before:
/Library/TeX/texbin/kpsewhich
I tried both
PATH and $PATH
My .tex files run as they should on TexShop.
I will be grateful for advice. I could find no other tips online, and apologize if the solution to my problem has been posted.
Best wishes,
Jenny Harrison Mathematics Department UC Berkeley
On 6 Oct 2015, at 10:30, Jenny Harrison wrote:
In Preferences my Path Variable is
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/Library/TeX/texbin
I tried replacing this with
/Library/TeX/texbin
and got this error log after restarting:
This command requires ‘kpsewhich’ which wasn’t found on your system.
Based on the second error, I think either you did not check the checkbox in Preferences → Variables to enable the new value of PATH, or you have also set it in ~/.tm_properties.
As for Preferences → Variables, the value you should use is:
PATH = $PATH:/Library/TeX/texbin
After setting it to that, and ensuring the checkbox is checked (it should auto-enable when editing the variable’s value) then you can inspect how TextMate obtains the value of PATH by doing this:
1. Select Bundles → Select Bundle Item… from the main menu. 2. Click the “Settings” label in teh scope bar below the search field. 3. Enter ‘PATH’ in the search field.
If you are unable to make it work, post a screen capture of the above dialog, so that we can see how PATH is setup.
Btw: Ideally we would have the above be unnecessary, but I assume that due to the new security restrictions in 10.11 (rootless) MacTex moved its binaries to /Library/TeX/texbin and we have not yet updated the LaTeX bundle to also check this location for a possible tex install.
Hi Jenny and Allan,
Btw: Ideally we would have the above be unnecessary, but I assume that due to the new security restrictions in 10.11 (rootless) MacTex moved its binaries to /Library/TeX/texbin and we have not yet updated the LaTeX bundle to also check this location for a possible tex install.
“Typeset & View (PDF)” already assumes that `kpsewhich` is located at `/Library/TeX/texbin/kpsewhich`[1]. There is need to extend `PATH` just to use said command. For example, the `PATH` variable on my machine does not include the location of the TeX binaries.
[1]: https://github.com/textmate/latex.tmbundle/blob/master/Commands/Typeset%20An...
A few of the other commands in the LaTeX bundle – e.g. “Open Included Item” – might not work correctly, if you do not extend `PATH` the way Allan described. I plan on fixing the remaining commands in the future. For example: “Open Included Item” already works without extending PATH in the version of the LaTeX bundle on my computer.
Kind regards, René
On 6 Oct 2015, at 15:15, René Schwaiger wrote:
Btw: Ideally we would have the above be unnecessary, but I assume that due to the new security restrictions in 10.11 (rootless) MacTex moved its binaries to /Library/TeX/texbin and we have not yet updated the LaTeX bundle to also check this location for a possible tex install.
“Typeset & View (PDF)” already assumes that `kpsewhich` is located at `/Library/TeX/texbin/kpsewhich`[1].
Of course you are on top of things :) I should have checked first.
That does make Jenny’s issue a little strange.
Most likely reason would be an outdated LaTeX bundle (from before August).
Jenny: Did the command break in relation to updating to 10.11 and/or (re)installing MacTex? Or did it just suddenly break?
Do you have a custom version of the command/LaTeX bundle in ~/Library/Application Support/Avian/Bundles?
If the latter, try remove the custom version of the bundle and see if that fixes the issue.
Also, for PATH, better just remove the variable entirely in Preferences → Variables (or disable it), since it should work without needing to set this variable (and generally best not to set it, unless the user has a good reason to need a custom value for this variable).
On Oct 6, 2015, at 1:42 AM, Allan Odgaard mailinglist@textmate.org wrote:
On 6 Oct 2015, at 15:15, René Schwaiger wrote:
Most likely reason would be an outdated LaTeX bundle (from before August).
Jenny: Did the command break in relation to updating to 10.11 and/or (re)installing MacTex? Or did it just suddenly break?
Do you have a custom version of the command/LaTeX bundle in ~/Library/Application Support/Avian/Bundles?
If the latter, try remove the custom version of the bundle and see if that fixes the issue.
Also, for PATH, better just remove the variable entirely in Preferences → Variables (or disable it), since it should work without needing to set this variable (and generally best not to set it, unless the user has a good reason to need a custom value for this variable).
Hi Alan and René,
It must have been the install of 10.11 that caused the break. (I reinstalled MacTex yesterday, trying to fix this.)
After removing the variable, I got the error
I updated the Latex bundle, but still get the error.
I have Haris Skiadas' Experimental Latex bundle installed. Should I remove this?
Best wishes,
Jenny
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Hi Jenny,
I have Haris Skiadas' Experimental Latex bundle installed. Should I remove this?
Haris (Charilaos) Skiadas was the old maintainer of the LaTeX bundle. I would assume that he merged all useful commands from the „LaTeX experimental bundle” [1] into the main bundle.
[1]: http://lists.macromates.com/textmate/2006-March/009139.html
Since said bundle is quite ancient I would suggest you remove it, although I do not think that it interferes with the main LaTeX bundle.
Best wishes,
Jenny
Kind regards, René
On Oct 6, 2015, at 12:07 AM, Allan Odgaard mailinglist@textmate.org wrote:
As for Preferences → Variables, the value you should use is:
PATH = $PATH:/Library/TeX/texbin
This fixed it! I had
$PATH = /Library/TeX/texbin
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate