Disable all the other extensions except for LaTeX Workshop, restart VS Code, and check that you still see this issue.
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]
If compilation fails due to an error, the PDF viewer closes completely, forcing me to manually reopen it every time.
To Reproduce
Make any LaTeX file fail to compile due to an error.
Expected behavior
The previous behavior was more efficient, as the viewer simply waited until the PDF file was correctly generated to display it again.
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]
[11:39:40][Config] Configuration for workspace: undefined .
[11:39:40][Config] editor.acceptSuggestionOnEnter: "on" .
[11:39:40][Config] latex-workshop.bind.enter.key: true .
[11:39:40][Config] latex-workshop.docker.enabled: false .
[11:39:40][Config] latex-workshop.docker.image.latex: "" .
[11:39:40][Config] latex-workshop.hover.preview.mathjax.extensions: [] .
[11:39:40][Config] latex-workshop.intellisense.package.enabled: true .
[11:39:40][Config] latex-workshop.intellisense.update.aggressive.enabled: false .
[11:39:40][Config] latex-workshop.intellisense.update.delay: 1000 .
[11:39:40][Config] latex-workshop.latex.autoBuild.run: "never" .
[11:39:40][Config] latex-workshop.latex.build.forceRecipeUsage: false .
[11:39:40][Config] latex-workshop.latex.outDir: "%DIR%" .
[11:39:40][Config] latex-workshop.latex.recipes: [
{
"name": "latexmk (lualatex)",
"tools": [
"lualatexmk"
]
},
{
"name": "latexmk 🔃",
"tools": [
"latexmk"
]
},
{
"name": "latexmk (latexmkrc)",
"tools": [
"latexmk_rconly"
]
},
{
"name": "latexmk (xelatex)",
"tools": [
"xelatexmk"
]
},
{
"name": "pdflatex ➞ bibtex ➞ pdflatex × 2",
"tools": [
"pdflatex",
"bibtex",
"pdflatex",
"pdflatex"
]
},
{
"name": "Compile Rnw files",
"tools": [
"rnw2tex",
"latexmk"
]
},
{
"name": "Compile Jnw files",
"tools": [
"jnw2tex",
"latexmk"
]
},
{
"name": "tectonic",
"tools": [
"tectonic"
]
}
] .
[11:39:40][Config] latex-workshop.latex.tools: [
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-halt-on-error",
"-file-line-error",
"-pdf",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
{
"name": "lualatexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-halt-on-error",
"-file-line-error",
"-lualatex",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
{
"name": "xelatexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-halt-on-error",
"-file-line-error",
"-xelatex",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
{
"name": "latexmk_rconly",
"command": "latexmk",
"args": [
"%DOC%"
],
"env": {}
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-halt-on-error",
"-file-line-error",
"%DOC%"
],
"env": {}
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
],
"env": {}
},
{
"name": "rnw2tex",
"command": "Rscript",
"args": [
"-e",
"knitr::opts_knit$set(concordance = TRUE); knitr::knit('%DOCFILE_EXT%')"
],
"env": {}
},
{
"name": "jnw2tex",
"command": "julia",
"args": [
"-e",
"using Weave; weave(\"%DOC_EXT%\", doctype=\"tex\")"
],
"env": {}
},
{
"name": "jnw2texmintex",
"command": "julia",
"args": [
"-e",
"using Weave; weave(\"%DOC_EXT%\", doctype=\"texminted\")"
],
"env": {}
},
{
"name": "tectonic",
"command": "tectonic",
"args": [
"--synctex",
"--keep-logs",
"%DOC%.tex"
],
"env": {}
}
] .
[11:39:40][Config] latex-workshop.viewer.pdf.internal.keyboardEvent: "auto" .
[11:39:40][Manager] Set $LATEXWORKSHOP_DOCKER_LATEX: ""
[11:39:40][Server] Creating LaTeX Workshop http and websocket server.
[11:39:40][Server] Server successfully started: {"address":"127.0.0.1","family":"IPv4","port":55353}
[11:39:40][Server] valdOrigin is http://127.0.0.1:55353
[11:39:40][Extension] Initializing LaTeX Workshop.
[11:39:40][Extension] Extension root: /Users/titi/.vscode/extensions/james-yu.latex-workshop-9.4.5
[11:39:40][Extension] $PATH: /Users/Shared/anaconda3/bin:/Users/Shared/anaconda3/condabin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Applications/Little Snitch.app/Contents/Components:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands
[11:39:40][Extension] $SHELL: /bin/zsh
[11:39:40][Extension] $LANG: undefined
[11:39:40][Extension] $LC_ALL: undefined
[11:39:40][Extension] process.platform: darwin
[11:39:40][Extension] process.arch: x64
[11:39:40][Extension] vscode.env.appName: Visual Studio Code
[11:39:40][Extension] vscode.env.remoteName: undefined
[11:39:40][Extension] vscode.env.uiKind: 1
[11:39:40][Extension] LaTeX Workshop initialized.
[11:39:40][Format][Bib] Bibtex format config: {"tab":" ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[11:39:40][] Trigger characters for intellisense of LaTeX documents: ["\\",",","{"]
[11:39:40][Manager] Current workspace folders: undefined
[11:39:40][Manager] Found root file from active editor: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex
[11:39:40][Manager] Root file changed: from undefined to /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex
[11:39:40][Manager] Start to find all dependencies.
[11:39:40][Manager] Root file languageId: latex
[11:39:40][Cacher][Watcher] Reset.
[11:39:40][Cacher] Adding /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:40][Cacher] Caching /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:40][Cacher] Updated inputs of /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:40][Cacher][Watcher] Watched /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:41][DupLabel] Checking for duplicate labels: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:41][Cacher] Updated elements of /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:41][Cacher] Updated bibs of /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:41][Cacher] Cached /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:41][Cacher][Path] Non-existent .fls for /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:45][] onDidSaveTextDocument triggered: file:///Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex
[11:39:45][Cacher] Caching /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:45][Cacher] Updated inputs of /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:45][Cacher][Watcher] Changed /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:45][DupLabel] Checking for duplicate labels: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:45][Cacher] Updated elements of /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:45][Cacher] Updated bibs of /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:45][Cacher] Cached /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex .
[11:39:46][Commander] BUILD command invoked.
[11:39:46][Commander] The document of the active editor: file:///Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex
[11:39:46][Commander] The languageId of the document: latex
[11:39:46][Manager] Current workspace folders: undefined
[11:39:46][Manager] Found root file from active editor: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex
[11:39:46][Manager] Keep using the same root file: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex
[11:39:46][Commander] Building root file: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex
[11:39:46][Builder] Build root file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex
[11:39:46][Builder] outDir: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage .
[11:39:46][Builder] Preparing to run recipe: latexmk (lualatex).
[11:39:46][Builder] Recipe step 1 The command is latexmk:["-synctex=1","-interaction=nonstopmode","-halt-on-error","-file-line-error","-lualatex","-outdir=/Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage","/Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage"].
[11:39:46][Builder] env: {}
[11:39:46][Builder] root: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex
[11:39:46][Builder] cwd: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage
[11:39:46][Builder] LaTeX build process spawned with PID 62367.
[11:39:51][Parser][TexLog] Logged 8 messages.
[11:39:51][Builder] Recipe returns with error code 12/null on PID 62367.
[11:39:51][Builder] Does the executable exist? $PATH: /Users/Shared/anaconda3/bin:/Users/Shared/anaconda3/condabin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Applications/Little Snitch.app/Contents/Components:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands, $Path: undefined, $SHELL: /bin/zsh
[11:39:51][Builder] Latexmk: If appropriate, the -f option can be used to get latexmk
to try to force complete processing.
[11:39:51][Builder] Cleaning auxiliary files and retrying build after toolchain error.
[11:39:51][Cleaner] Clean glob matched files {"globs":["*.aux","*.bbl","*.blg","*.idx","*.ind","*.lof","*.lot","*.out","*.toc","*.acn","*.acr","*.alg","*.glg","*.glo","*.gls","*.fls","*.log","*.fdb_latexmk","*.snm","*.synctex(busy)","*.synctex.gz(busy)","*.nav","*.vrb","*.synctex.gz","*.mtc??","*.mtc?","*.mtc","*.maf","*.records","solutions/*.tex"],"outdir":"/Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage"} .
[11:39:51][Cleaner] Ignore folder glob patterns with globstar: .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.synctex.gz .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.records .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.out .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.log .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.fls .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.fdb_latexmk .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.aux .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/solutions/TP07_apprentissage-exercice-9.tex .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/solutions/TP07_apprentissage-exercice-7.tex .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/solutions/TP07_apprentissage-exercice-6.tex .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/solutions/TP07_apprentissage-exercice-5.tex .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/solutions/TP07_apprentissage-exercice-4.tex .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/solutions/TP07_apprentissage-exercice-3.tex .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/solutions/TP07_apprentissage-exercice-2.tex .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/solutions/TP07_apprentissage-exercice-10.tex .
[11:39:51][Cleaner] Cleaning file /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/solutions/TP07_apprentissage-exercice-1.tex .
[11:39:51][Builder] Recipe step 1 The command is latexmk:["-synctex=1","-interaction=nonstopmode","-halt-on-error","-file-line-error","-lualatex","-outdir=/Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage","/Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage"].
[11:39:51][Builder] env: {}
[11:39:51][Builder] root: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex
[11:39:51][Builder] cwd: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage
[11:39:51][Builder] LaTeX build process spawned with PID 62377.
[11:39:57][Parser][TexLog] Logged 8 messages.
[11:39:57][Builder] Recipe returns with error code 12/null on PID 62377.
[11:39:57][Builder] Does the executable exist? $PATH: /Users/Shared/anaconda3/bin:/Users/Shared/anaconda3/condabin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Applications/Little Snitch.app/Contents/Components:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands, $Path: undefined, $SHELL: /bin/zsh
[11:39:57][Builder] Latexmk: If appropriate, the -f option can be used to get latexmk
to try to force complete processing.
[11:40:04][Manager] Current workspace folders: undefined
[11:40:04][Manager] Found root file from active editor: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex
[11:40:04][Manager] Keep using the same root file: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex
[11:40:47][Manager] Current workspace folders: undefined
[11:40:47][Manager] Found root file from active editor: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex
[11:40:47][Manager] Keep using the same root file: /Users/titi/Documents/enseignement/informatique/cours ITC2/TP07_apprentissage/TP07_apprentissage.tex
[11:40:52][Commander] SHOWLOG command invoked: default
Developer Tools Console [Required]
Recipe terminated with error.
c @ notificationsAlerts.ts:42
DevTools failed to load source map: Could not load content for https://file+.vscode-resource.vscode-cdn.net/Users/titi/.vscode/extensions/james-yu.latex-workshop-9.4.5/node_modules/pdfjs-dist/build/pdf.js.map: Connection error: net::ERR_NAME_NOT_RESOLVED
DevTools failed to load source map: Could not parse content for vscode-webview://13irvvsiejterc541sukcr1kr6mbc34r5ndkrbnnu78jjqj00ee4/pdf.worker.js.map: Unexpected end of JSON input
Desktop [Required]
OS: macOS Ventura 13.1 (Intel)
VS Code version: 1.74.3
Extension version: 9.4.5
TeX distribution version: TeX Live 2022
Additional questions
Are you using VSCodium?
No
Are you using the Snap or Flatpack versions of VS Code?
Preliminary questions [Required]
Disable all the other extensions except for LaTeX Workshop, restart VS Code, and check that you still see this issue.
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]
If compilation fails due to an error, the PDF viewer closes completely, forcing me to manually reopen it every time.
To Reproduce
Make any LaTeX file fail to compile due to an error.
Expected behavior
The previous behavior was more efficient, as the viewer simply waited until the PDF file was correctly generated to display it again.
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]
Desktop [Required]
Additional questions
Are you using VSCodium?
No
Are you using the Snap or Flatpack versions of VS Code?
No
Are you using LaTeX Workshop with VS Code Remote?
No