-
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
Individual subfile compilation in wrong directory #1967
Comments
I meant to be typing 8.7.2 and 8.7.1, I think I'm a little tired from trying to debug this and I typed 18 in some places. My appologies. |
Short answer: you need to pass the This was added by default in 8.7.1 but removed in 8.7.2 because of #1932 (basically a bug in Also for some strange reason, |
Sorry Jerome, my bad then. I read through the faq, but I missed that, I think the sentence that preceded it tripped me up but it's my fault. I didn't find 1895, only 1890. Just for the record: reading 1995 I can't say that I'm really happy with the argument/solution in 1895. It's asking the extension to fix something for the tool latexmk. But that won't work if you set up a project that doesn't always use the extension, like the one that I passed you has build scripts as well. It also suffices for latexmk, but not other tools. Most tools just assume they are working in the current directory, no? I would argue that the correct solution would have been for the extension to let the tools run as they are and to adjust path, which I do in that template with a variable that is set at the correct level the build is happening at. But, I'm not going to try to fight about it if -cd will fix it :) Thanks for your help, and much more for doing a bang-up job on the extension! |
Could you comment on that? I have spent a lot of time working on different use cases and tried to come up with almost ready to work solution. Yet, I would be happy discuss other approaches. I must say that playing with FYI, the |
I would be happy too. Would you like my notes on this issue, or on #1895 where the discussion originally was? |
It may be easier to follow up on #1895. |
Preliminary questions [Required]
Disable all the other extensions except for LaTeX Workshop, and check that you still see this issue. [Required]
You still see this issue?: Yes
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/No
Describe the bug [Required]
In 18.7.1 a subfile compilation takes place in the subfile folder if there is a sub-folder. In 18.7.2 the compilation is taking place in the root document folder, even if I select the subfile folder when latexmk is executed. The .latex-temp (my compilation output) is never created in the subfolder, and the subfile compilation appears in .latex-temp in the root folder. The compilation fails, because the compiler is looking for the root document in the folder above the root folder.
Compiling the root document works fine, all the subfiles compile in as expected.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the subfile compilation to take place in the folder the subfile is in. I don't expect it to take place in the root folder. This is especially bad if multiple folders use the same subfile names, as in this project, because they step on each other in the root file .latex-temp.
I can revert to 18.7.1 for the time being to continue to work, but it would be nice if you could fix this for 18.7.3 :)
If I am doing something wrong, my bad. But all my projects fail, I've pointed you to the template for my projects which demonstrates the problem. I really think that you're just launching in the wrong directory :)
Logs [Required]
Please paste the whole log messages here, not parts of ones. It is very important to identify problems.
LaTeX Workshop Output [Required]
Developer Tools Console [Required]
Screenshots
Note .latex-temp never made in 01_Rename_Me:
Desktop [Required]
Additional questions
Are you using LaTeX Workshop with VS Code Remote?
No
If the answer is Yes, please write which one you are using. Write the versions of the remote extension.
Additional context
N/A
The text was updated successfully, but these errors were encountered: