-
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
Knitr problem with latex-workshop.latex.autoBuild.run #2050
Comments
Thanks for your report as it makes me realise that I forgot to write the corresponding documentation in the wiki! It seems that your logs are truncated as there is no reference to Currently, autobuild for I will investigate all this. |
|
This is now explained in the wiki https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#building-a-rnw-file This new mechanism was introduced in |
Preliminary questions [Required]
Knitr problem with latex-workshop.latex.autoBuild.run, manual Recipe work well!
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]
My configure as following
latex-workshop.latex.recipes
{ "name": "Knitr", "tools": [ "knitr","latexmk" ] }
and
latex-workshop.latex.tools
`{
"name": "knitr",
"command": "Rscript",
"args": [
"-e",
"knitr::knit('%DOCFILE_EXT%')"
],
"env": {}
}
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-file-line-error",
"-pdf",
"-outdir=%OUTDIR%",
"%DOC%.tex"
],
"env": {}
}`
Manual Recipe -> it works well!! However, I used the option
**"latex-workshop.latex.autoBuild.run":"onFileChange",
"latex-workshop.latex.recipe.default":"lastUsed"
**
then it comes with error "Failed to resolve build recipe: undefined"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
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
Manual recipe, it works well!
**save file -> auto recipe **
Desktop [Required]
Additional questions
Are you using LaTeX Workshop with VS Code Remote?
No
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: