-
Notifications
You must be signed in to change notification settings - Fork 536
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
LaTeX document gets built twice when embedded Asymptote code is modified #2237
Comments
This is the cause:
I am not sure where Please paste |
@tamuratak Sorry, I forgot to mention that the document is saved in a file named |
A workaround is to adding |
This is because
I would have expected it to be listed as output too because it is generated during compilation but unfortunately such is not the case. I cannot see how we can handle automatically. |
We can exclude
for this case. The suffix, |
@tamuratak yes we can but it looks like a hack to me. |
This is still under discussion in vectorgraphics/asymptote#173. From a more general point of view, I suggest to drop all the |
The change on LaTeX-Workshop/src/components/manager.ts Lines 766 to 770 in ca36145
I cannot see the difference between |
I was referring to
|
Thank you. I see. I don't like making building processes more complicated. It is enough complicated. |
I tend to agree with this. Yet, there does not seem to be any easy solution to fix this issue. Since There are two workarounds to this issue
|
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
Describe the bug [Required]
When I edit some Asymptote code inside a LaTeX document and build it, Latexmk is run twice even when
latex-workshop.latex.autoBuild.cleanAndRetry.enabled
is set tofalse
.To Reproduce
Steps to reproduce the behavior:
foo.tex
file with the following contents:latexmkrc
file in the same directory with the following contents:Expected behavior
The document should only be build once, since Latexmk already handles reruns.
Logs [Required]
Please paste the whole log messages here, not parts of ones. The log should start with
Initializing LaTeX Workshop
. It is very important to identify problems.LaTeX Workshop Output [Required]
Developer Tools Console [Required]
This is the only thing I see in the console:
Screenshots
This is after I modified the Asymptote code and built the document. Notice that it says its up-to-date in the output pane because it's been run a second time.
Desktop [Required]
Additional questions
Are you using VSCodium?
No
Are you using LaTeX Workshop with VS Code Remote?
No
Additional context
I'm using the default recipe and tools, with automatic retry on build failure disabled. The build only gets run twice when the Asymptote code is modified. If I modify some other part of the document the build only gets run once and I can see the full output.
Here's the contents of
foo.aux
:And here's
foo.fls
:The text was updated successfully, but these errors were encountered: