-
Notifications
You must be signed in to change notification settings - Fork 527
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
knitr .Rnw errors result in infinite loop of compilation #2487
Comments
Please add See https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#latex-workshoplatexwatchfilesignore |
Thanks, that was the source of the issue. I would suggest this be added as a default ignored file, then. |
I cannot reproduce the issue and I am a bit puzzled by the file |
See
If the option |
In ~/.Rprofile I had:
based on https://support.rstudio.com/hc/en-us/articles/200486298-Working-with-Multiple-Rnw-Files However, after removing that, I can then trigger another infinite loop when I save this document with an error (misplaced ampersand)
(saved as example.Rnw) where it continually re-runs compilation, seemingly
I'm afraid I cannot get the rest of the output as it goes past too quickly with removal of the extra R code from the ~/.Rprofile file |
Now, it makes sense. This issue is actually related to #2237. What are your settings for |
I haven’t changed those settings so they are left as whatever is the default — I can check tomorrow when back at my computer (just logged off and in mobile).
Not sure about the non-knitr.sty issue in my follow up comment unless it’s something similar with one of the other intermediate files. However that only seems to impact me when I turn off the .Rprofile lines which is not in my use case. So I effectively have a workaround by leaving those lines in .Rprofile and adding knitr.sty to the watch ignore list :)
On 20 Jan 2021, at 18:56, Jerome Lelong <notifications@github.com> wrote:
Now, it makes sense. This issue is actually related to #2237<#2237>.
The whole problem comes from the file knitr.sty not being listed as an OUTPUT file in main.fls but only as an INPUT file. Whereas there are tricks to add a file as INPUT (see #2479<#2479>), adding a file as OUTPUT is far more complicated as LaTeX provides no direct way to open a file in append mode.
What are your settings for latex-workshop.latex.autoBuild.run and latex-workshop.latex.autoBuild.cleanAndRetry.enabled?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#2487 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAROU3XZUQU77GQ4UTD4KLLS22EBRANCNFSM4WJ44QCQ>.
|
Regarding #2487 (comment) the infinite loop comes from To solve the |
Thanks for the suggestions. From my perspective I would like to be able to use the default options regardless of type of document (.tex, .Rnw single file, or master/child(ren) .Rnw with that useful knitr opt set). From that perspective, adding knitr.sty to the ignore files seems like a sensible proposition to solve that trigger of a loop, however I understand the other trigger (.tex not being the original source file but rather one transpiled from the original .Rnw source) may be more difficult. In the mean time I'm still pretty happy, so thanks for the advice. |
@tamuratak Adding |
It looks we have already considered to stop watching We probably meant |
Preliminary questions [Required]
Disable all the other extensions except for LaTeX Workshop, restart VS Code, 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?:
I can compile from Rnw > tex.
The second step of latexmk on the tex produces an expected error.
Describe the bug [Required]
A clear and concise description of what the bug is.
To Reproduce
Expected behaviour
I would expect the error to be logged, and not for LaTeX Workshop to go into an infinite loop of recompilation.
Logs [Required]
(starts to repeat after that point due to bug)
LaTeX Workshop Output [Required]
Cannot access due to bug.
Developer Tools Console [Required]
Keeps repeating this:
Screenshots
Screen.Recording.2021-01-20.at.12.30.30.pm.mp4
Desktop [Required]
Additional questions
Are you using VSCodium?
No
Are you using LaTeX Workshop with VS Code Remote?
No
Additional context
The text was updated successfully, but these errors were encountered: