Fix an aux_dir bug and support newer versions of latexmk #1079
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First, 80d4334 is an independent fix for the fact
latexmk
outputs the log file to the$aux_dir
, instead of the$out_dir
. This would causetexlab
to not report build errors in some projects, so it's probably related to #836 (this is how I came to it).Next, since1
latexmk
v4.84 the current parsing mechanism oftexlab
for extracting the aux and out dirs stopped working, because the dirs are printed in a new line. I took the opportunity to use the new-dir-report-only
option oflatexmk
and remove the code that was marked as a 'hack'. As v4.85 also uses a new out2dir option for a final output directory, I also included code to support it in the last commit 7bd2b11, but the man page describes it as "experimental" so I'm not sure if it's desired.Footnotes
https://www.cantab.net/users/johncollins/latexmk/versions.html ↩