textmate / latex.tmbundle

TextMate support for LaTeX
97 stars 64 forks source link

cmd-R only views the existing PDF, doesn't compile it #188

Open charwick opened 3 years ago

charwick commented 3 years ago

~1.5 years ago, I had MacTex installed on my old computer so TextMate would compile a PDF when I pressed command-R. I'm trying to do the same on my new computer with BasicTex (since Apple decided a 256gb SSD is an upgrade from a 1TB HDD 🙄), but TextMate won't recompile the .tex file now: it just opens the existing PDF file. And when the PDF file isn't there, it says:

File does not exist: /Users/charwick/Desktop/untitled 3.pdf
Command latexmk -pdf -f -r /tmp/latexmkrc -r '/Users/charwick/Library/Application Support/TextMate/Managed/Bundles/LaTeX.tmbundle/Support/config/latexmkrc' 'untitled 3.tex' exited with status 127

This is also true when trying to compile the minimal example in #179 on a freshly installed LaTeX bundle.

I've looked at the Typeset & View script in the LaTeX bundle, and I've looked at texmate.py inside the bundle which that script calls, and it looks like the relevant piece is in the if-block at line 1003, but I confess the mix of Python and shell scripting is hard for me to make heads or tails of, beyond the fact that I'm pretty sure it's not running into any errors compiling; it's simply not compiling.

What should I change to get this working?