-
Notifications
You must be signed in to change notification settings - Fork 66
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
Can't use Latexmk #134
Comments
By adding this line to my
Sorry about that... |
No problem! |
I have this too, but don't want to use Vim Server, so Aziz' solution does not work. Do you have any idea? |
First: What version of vim are you using? |
|
Ok. Next step: Does the file compile at all? If so, what is the path of the log file? As you see from the error message, vim does not find the log file, so the bug might simply be that the path is incorrect. |
It does not compile at all, no log or pdf files are generated. If I run pdflatex on the file manually in the terminal it works fine and the pdf output is good. |
Ok. I am unfortunately not able to reproduce your problem, which makes it difficult to debug. I can try to assist in finding a solution, though. I think the error may be related to line 290 in the file echo 'Compiling to ' . g:LatexBox_output_type . ' ... (async off!)'
call system(cmd)
call LatexBox_LatexErrors(v:shell_error) to echo 'Compiling to ' . g:LatexBox_output_type . ' ... (async off!)'
echom cmd
call system(cmd)
echom v:shell_error
call LatexBox_LatexErrors(v:shell_error) And report the output here. One possible solution is to change the echo 'Compiling to ' . g:LatexBox_output_type . ' ... (async off!)'
execute cmd
call LatexBox_LatexErrors(v:shell_error) |
I changed the file as you described, here is the output:
It seems like the command is never properly executed and then latex-box fails upon trying to open the non-existing log file. Your possible solution does not fix it, generates exact same error as before. Running: Produces: |
Strange. Could you try to comment out line 190 (remove Oh, I forgot: When you change from let cmd = '!' . cmd before If this doesn't work, you can also try to run the command yourself directly. Copy the command to you commandline, remember to prepend with |
Ah, that gave the output that latexmk is not found. I downloaded the BasicTex package from MacTex to save harddrive space (128GB SSD fills up quickly) and apparently that doesn't come with latexmk. Manually installing it from here: http://users.phys.psu.edu/~collins/software/latexmk-jcc/ solved it :) Thanks for your help! Maybe you could implement a more helpful error message in this case. |
No problem, happy to help. Yes, you are right, we should have a better error message for this case. I would be happy to do so, but I don't have time right now. Could you open a new issue for this (I don't want to reopen this particular issue)? |
When I use
:Latexmk
I get the following error:The text was updated successfully, but these errors were encountered: