New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yosemite / 10.10 and calls to popen seem to not have a proper environment. #45

flipphillips opened this Issue Jul 21, 2014 · 1 comment


None yet
2 participants

flipphillips commented Jul 21, 2014

(I posted this on the Sublime 3 issues list as well... pardon some of the explanatory prose, it is there for those who don't quite know what LaTeXing is)


This is a little bit of a way-out-there issue that may or may not be 'real', so I am reporting it 'as noted' in case there is further pathology discovered. There are, of course, ever changing targets in a OS beta release, and this may be something that magically 'fixes itself' as updates happen.


I use LaTeXing and/or LaTeXTools.

Both use os.popen to launch the LateX build command latexmk

In turn, latexmk makes various calls out to the main LaTeX programs, like xelatex, pdflatex, bibtex, biber, et al.

Unfortunately, under 10.10/Yosemite, even though the plugin can find latexmk, the launched program cannot be found:

popen ['latexmk', '-f', '-quiet', '-pdf', '-synctex=1', '-jobname=drop', '-outdir=/Users/flip/Dropbox/Magic', '/Users/flip/Dropbox/Magic/drop.tex']

which succeeds in properly launching latexmk, but latexmk can't find its helpers-

Latexmk: Run number 1 of rule 'pdflatex'
sh: pdflatex: command not found
Failure to make '/Users/flip/Dropbox/Magic/drop.pdf'

It seems like there might be an issue with popen getting a proper environment (esp the PATH) for it to launch in. As part of the ever-enhanced security in Mac OS I wonder if there are sandboxing / other limitations on things as basic as sh/bash and friends.

Also note that, the TeX distribution lives in its own place w/ symbolic links thrown around to make it convenient/useable. Everything runs out of /usr/texbin (which is a symbolic link into the actual distribution) which contains routines for finding canonical locations of TeX programs/styles/fonts/etc. So I wonder if there are constraints on traversing links in 10.10 that weren't previously there.


This comment has been minimized.

Show comment
Hide comment

csch0 Aug 19, 2014


fixed in 1.2.3


csch0 commented Aug 19, 2014

fixed in 1.2.3

@csch0 csch0 closed this Aug 19, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment