James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.56k stars 524 forks source link

Doesn't refresh PDF #135

Closed christianmalek closed 7 years ago

christianmalek commented 7 years ago

Hi,

LaTeX-Workshops doesn't refresh the PDF because of an so-called error in the build toolchain. If I look at the log there are no errors, just warnings and infos:

image

I just tried to compile it with TeXstudio. This works without problems. Do you have any ideas? The funny part is: The compilations works. But because it thinks that it errored I have to close the PDF view and open it again to refresh it and see the changes.

James-Yu commented 7 years ago

Can you please provide your log?

christianmalek commented 7 years ago

Of course. (I had to rename it to upload it.) master.txt

James-Yu commented 7 years ago

In fact, I mean LaTeX Workshop log. You can access it in the bottom panel.

christianmalek commented 7 years ago

maybe this? latexws.txt

James-Yu commented 7 years ago

Here is a screenshot: image You can click the problem status bar item to access this panel.

christianmalek commented 7 years ago

Thanks! Here you go: log.txt

James-Yu commented 7 years ago

hmm it's strange. The extension reports error when your latexmk returns with non-zero exit code, but the latex log shows that everything works fine. Can you please provide the same log after the following change? That might help a bit.

This will also log the exit code of latexmk.

christianmalek commented 7 years ago

Toolchain returns with error: 12.

James-Yu commented 7 years ago

Following are the exit code comments of latexmk:

## Explicit exit codes: 
##             10 = bad command line arguments
##             11 = file specified on command line not found
##                  or other file not found
##             12 = failure in some part of making files
##             13 = error in initialization file
##             20 = probable bug
##             or retcode from called program.

So it seems that there are problems in the latexmk toolchain, although I cannot find it. I would suppose this is a latexmk problem. However, I cannot modify the codebase to allow retcode=12, since I have no idea if it is an individual false alarm, or a common problem. Sorry cannot help.

christianmalek commented 7 years ago

Thanks anyways. Your extension is awesome!