Closed incubus-ank closed 3 months ago
Thanks for reporting. Unfortunately, your issue is not related to the extension. You may want to search for the error message by latexmk on Google or other places for resolution.
Also, generally latexmk does not require the source file extension to present. I’m not sure if you were copying config values from random online posts. For your usage, the default config should work perfectly.
This issue caused by the new behavior of option -outdir
introduced in latexmk
version 4.84.
If you want output directory to be same as the root file directory, just remove -outdir=%OUTDIR%
option in default recipe configs.
I don't see any changes to -outdir
in latexmk v. 4.84.
From v. 4.83 to 4.84
Update example_rcfiles/bib2gls_latexmkrc to deal with situation where
.glstex file has basename of .bib file rather than that of main .tex
file.
Update example_rcfiles/asymptote_latexmkrc.
Update example_rcfiles/splitindex_latexmkrc.
Add example_rcfiles/memoize_latexmkrc.
Improve detection of need to run makeindex (solves non-detection when
imakeidx package is used with splitindex option).
Implement final-output directory, with option -out2dir, variables
$out2_dir, @out2_exts.
Document hook mechanism.
Document $allow_subdir_creation variable.
Thanks for the help. Of course, I looked for mentions of this error on the Internet, but I didn’t find anything similar. I assumed that the error occurs due to inappropriate settings, for example the need to use a backslash. I experimented with the settings, but this did not lead to a solution to the problem. I removed the extension. I cleared the settings and installed again, the error repeated.
However, the solution that helped was removing the outdir
parameter. I am attaching a working config of the tool latexmk for me.
"latex-workshop.latex.tools": [
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-pdf",
"%DOC%"
],
"env": {}
},
I do confirm an issue with latexmk
4.84 when using the -outdir
option. Running latemk -outdir=/tmp/poo myfile.tex
fails with the error
'/tmp/poo/myfile.pdf' and '/tmp/poo/myfile.pdf' are identical (not copied) at /Library/TeX/texbin/latexmk line 5562.
That failed, with message 'No such file or directory'
It seems to be a bug of latexmk
. I have just sent a message to John Collins who is the current maintainer of latexmk.
The -outdir
arg was added in #1079 . It seems that the arg can be safely remove for now?
Here's the reply of John Collins
The problem is associated with a new feature of v. 4.84 where there's a new kind of output directory, the final-output directory (e.g., set by the option -out2dir). The bug you encountered was triggered by the use of an absolute instead of a relative pathname poo for the output directory.
I'll get a fix out as soon as I can, and meanwhile, I'm reverting the version on CTAN to 4.83.
I hope few users have installed this buggy version.
Pre-checks*
Environment*
The Issue*
An error appears when building a tex document project. The compiler used is latexmk. In the terminal, compilation occurs successfully.
Reproduction Steps
Sorry, but I don't know how to reproduce the error on another machine. I just installed the basic version of tex live and latexmk. And I tried to compile the document. An error occurs during compilation. However, the PDF is created correctly. Given the auto assembly, the error appears every time you edit. The most interesting thing is that compilation in the terminal is successful and without errors.
Expected Behavior
I expect to see a compiled document with no error messages.
Logs
LaTeX Workshop Output*
Latex Compiler