-
Notifications
You must be signed in to change notification settings - Fork 535
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
latexmk -output-directory=fullpath -cd causes makeindex to fail #1932
Comments
FYI, we also use the
Also, your command line
seems incomplete. The file to compile I cannot reproduce the issue, please provide a MWE. |
It is related to
Consider the following \documentclass{article}
\usepackage{makeidx}
\usepackage{hyperref}
\makeindex
\begin{document}
\section{Polynomial}
Polynomial\index{polynomial}
\section{Resultant}
Resultant\index{resultant}
%GCD\index{GCD}
\printindex
\end{document} Compiling with Compiling with
|
latexmk -cd …
causes build to fail
Great! So why not just omit the
Yes, perhaps the
Yes! This was my first reaction as well. But it's what LaTeX-Workshop is doing. If you look in the linked gist you will find this line near the top:
Turns out: it does not matter whether you add Between the two command lines I have cleaned all auxiliary files using the extension. This is crucial, because otherwise |
Your analysis of the
the last argument Here are some more tests
Maybe, we could get in touch with the
which should work |
See #1895 (comment) |
Indeed, my bad! Seems as if I have mistaken the
That is probably a good idea. This contact info appears to be up to date:
I see, thanks! Now knowing that |
FWIW: While I was wrong to assume that LaTeX-Workshop was also omitting the filename, I was correct in that the command does work despite missing the name of the tex file to compile. Invoking the command eventually results in this output:
This is after having cleaned all auxiliary files. |
I wrote an email to the author of |
The author of |
Thanks for the follow up! |
Sorry, I read the docs regarding how to edit the default recipes but I can't understand where I've to remove the |
For some strange reason, the Edit on settings.json does not work. You have to copy the setting as JSON using the wheel on the left to I agree that it is a little too complicated and we should think of an other solution. |
Rethinking of a ll this, it is wise to remove |
Preliminary questions
Disable all the other extensions except for LaTeX Workshop, and check that you still see this issue.
As far as I can see this is completely unrelated to other extensions.
Make sure to visit the wiki FAQ before filling an issue.
You visited the wiki? Yes
If your issue is with compiling a document (not having to do with finding the root file of a project), check first that you can compile manually.
You can compile a TeX document manually? Yes
Describe the bug
I can compile a TeX document manually using this command line:
Clean auxiliary files and add
-cd
(which is what LaTeX-Workshop does) and it no longer builds:In both cases I invoked this from the directory where
.tex
file resides and which is also theoutdir
.Unfortunately LaTeX-Workshop uses the
-cd
argument oflatexmk
.Expected behavior
I expect LaTeX-Workshop to not use the
-cd
argument, but to invokelatexmk
with the correct working directory set.child_process.spawn
of node.js allows to specify thecwd
.Logs
LaTeX Workshop Output
https://gist.github.com/phdoerfler/e38fa3bb2a5fe189e31351317dd15a77
Developer Tools Console
I don't see anything suspicious there, but here you go:
Desktop
Additional questions
Are you using LaTeX Workshop with VS Code Remote?
No
The text was updated successfully, but these errors were encountered: