-
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
Wrong path formatting in Windows leads to build error #1897
Comments
To help us identify where this is happening, can you post the logs of the extension? |
Sure! That's the complete log when I try to build through the recipe latexmk (lualatex).
As far as I understand latexmk and the logfile it invokes the command:
When I change the last option of the command from \ to / everything works:
A short research indicates that Lua has a problem with \ because it is used as a escape sequence. Maybe that's the explanation why pdflatex does not care. |
Yes. That's the issue for sure. I will look into it. As you can see, the |
You pasted the logs of the compiler. I would rather need the logs of the extension and the values of |
I did not change the defaults of the extension, but I got them anyway. Here you go:
And I think you need
Unfortunately I don't know how to get the logs of the extension. |
To get the logs of the extension, from the TeX panel (on the left)
|
Thanks!
|
Actually, the paths passed to
and then
The issue seems to be related to
from the command line produces the same error? I cannot see anything we can do from the extension side to fix this. |
Yeah, you are right! Totally forgot to check that. |
Maybe you can send a mail to the maintainer jcc8@psu.edu |
Short workaround by John Collins: Add the line Maybe there will be a command-line option for that or even a change to the default. EDIT: |
I'd like to reopen this issue: Since version 8.6.0 the path separator used to call the |
Since e372e2b, the paths have been normalised to always use If you still find issues, please post the logs (extension and compiler). |
Hey,
I'm using version 8.5.0 with VS Code 1.41 on Windows 10. When building my project with pdflatex everything works fine, but when using
luatexmk
the build fails with an error "Undefined control sequence". I tried several solutions an it seems the bug is in the path formatting on windows. luatex expects the%DOC%
to be formatted according to the format used on Linux (/
), but the placeholder%DOC%
returns the path formatted like on Windows (\
). pdflatex does not seem to mind.Greetings
funnym0nk3y
The text was updated successfully, but these errors were encountered: