You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is not related to compiling a document, or the document can be successfully compiled in the OS terminal but not in Visual Studio Code with this extension.
Environment*
Windows 11 24H2 (also tested with Windows 10, revision unknown)
Visual Studio Code Version: 1.95.3
LaTeX Workshop Version: 10.7.0
TeX Distribution Version:MiKTeX 24.1 (also tested in win 10 with TeX Live 2023)
The Issue
When tex files are included with path or filename containing spaces and hence quotation marks the Latex Workshop does not parse the document structure for these files. The content of the files is not parsed if quotation marks are added around path/filename which does no contains spaces and therefore the issue primarily seems to be the quotation marks.
Normally pressing F12 (while cursor on top of filename) the related file is opened in editor. This is when the Workshop structure parser shows correct output too. These fail when there are quotations used. Not sure if this is more VSCode related.
This has been tested to behave as described with \input{""} \include{""} \import{""}{""} and \subimport{""}{""}. The Latex compiling process works as intended as there is support for filenames with spaces.
In your latex document main file for example, include another tex file using \include{subfile.tex}. Included file shall contain for example single \section{My Section}
Test that the structure of the document is parsed and the section 'My Section' is visible.
Add Quotation marks around the included file: \include{"subfile.tex"}
The 'My Section' is no visible in the structure view and the F12 does not resolve the file in order to open it for editing.
Expected Behavior
Latex document elements (sections, labels, etc) should be visible in the structure view with filenames including spaces and surrounded by quotation marks.
[14:59:14.771][Logger] New log placeholder %WS1% registered for d:\Temp\subImport_test .
[14:59:14.771][Extension] Initializing LaTeX Workshop.
[14:59:14.974][Build][Recipe] Set $LATEXWORKSHOP_DOCKER_LATEX: ""
[14:59:14.974][Build][Recipe] Set $LATEXWORKSHOP_DOCKER_PATH: "docker"
[14:59:15.054][Server] Creating LaTeX Workshop http and websocket server.
[14:59:15.161][Format][Bib] Bibtex format config: {"tab":" ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[14:59:15.235][Server] Server successfully started: {"address":"127.0.0.1","family":"IPv4","port":57640} .
[14:59:15.255][Extension] Extension root: c:\Users\UserNameReplaced\.vscode\extensions\james-yu.latex-workshop-10.7.0
[14:59:15.255][Extension] $PATH: C:\Program Files (x86)\Common Files\Oracle\Java\java8path;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\ImageMagick-7.1.1-Q16-HDRI;C:\Program Files (x86)\VMware\VMware PUserNameReplaced\bin\;C:\Program Files\Python312\Scripts\;C:\Program Files\Python312\;C:\ProgramData\Oracle\Java\javapath;C:\Users\UserNameReplaced\AppData\Roaming\Python\Python310\Scripts\;C:\Users\UserNameReplaced\AppData\Local\Programs\Python\Python310;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\UserNameReplaced\AppData\Local\Programs\Python\Python310\Scripts;C:\Program Files\MATLAB\R2021b\bin;C:\MinGW\bin;C:\Program Files (x86)\Bitvise SSH Client;C:\Program Files\gs\gs10.03.0\bin;C:\Program Files\Common;C:\Program Files\WireGuard\;C:\Strawberry_Perl\c\bin;C:\Strawberry_Perl\perl\site\bin;C:\Strawberry_Perl\perl\bin;C:\Program Files (x86)\Genelec\AutoCal\Lib\v90\runtime\win32;C:\Program Files (x86)\Genelec\Loudspeaker Manager\DSP Frequency Response Measurement\Lib;C:\Program Files\Git\bin\;C:\Program Files\Pandoc\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;C:\Users\UserNameReplaced\AppData\Local\Microsoft\WindowsApps;C:\Program Files\MPC-HC;C:\Users\UserNameReplaced\AppData\Roaming\Python\Python312\Scripts;C:\Program Files\Notepad++\;C:\Users\UserNameReplaced\AppData\Local\GitHubDesktop\bin;C:\Users\UserNameReplaced\AppData\Local\Programs\MiKTeX\miktex\bin\x64\;C:\Users\UserNameReplaced\AppData\Local\Programs\Microsoft VS Code\bin;
[14:59:15.255][Extension] $SHELL: undefined
[14:59:15.256][Extension] $LANG: undefined
[14:59:15.256][Extension] $LC_ALL: undefined
[14:59:15.256][Extension] process.platform: win32
[14:59:15.256][Extension] process.arch: x64
[14:59:15.256][Extension] vscode.env.appName: Visual Studio Code
[14:59:15.256][Extension] vscode.env.remoteName: undefined
[14:59:15.256][Extension] vscode.env.uiKind: 1
[14:59:15.259][Config] latex-workshop.latex.recipe.default: "latexmk" .
[14:59:15.262][Config] latex-workshop.latex.autoBuild.run: "never" .
[14:59:15.262][Config] latex-workshop.latex.autoBuild.cleanAndRetry.enabled: false .
[14:59:15.262][Config] latex-workshop.latex.clean.fileTypes: ["*.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","*.xdv"] .
[14:59:15.265][Config] latex-workshop.linting.lacheck.enabled: true .
[14:59:15.266][Config] latex-workshop.linting.run: "onType" .
[14:59:15.266][Config] latex-workshop.linting.chktex.exec.path: "C:\\Users\\UserNameReplaced\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64\\chktex" .
[14:59:15.266][Config] latex-workshop.linting.chktex.exec.args: ["-wall","-n1","-n9","-n11","-e16","-n17","-n21","-n22","-n26","-n30","-n35","-n46","-n18","-n8","-n36","-m41","-m12","-m44","-q"] .
[14:59:15.266][Config] latex-workshop.linting.chktex.convertOutput.column.chktexrcTabSize: 4 .
[14:59:15.267][Config] latex-workshop.intellisense.update.aggressive.enabled: true .
[14:59:15.267][Config] latex-workshop.intellisense.update.delay: 500 .
[14:59:15.273][Config] latex-workshop.formatting.latex: "latexindent" .
[14:59:15.282][Extension] Trigger characters for intellisense of LaTeX documents: ["\\",",","{","}"]
[14:59:15.284][Root] Current workspace folders: ["file:///d:/Temp/subImport_test"]
[14:59:15.285][Root] Try finding root from magic comment.
[14:59:15.285][Extension] LaTeX Workshop initialized.
[14:59:15.285][Root] The active document cannot be used as the root file: output:tasks
[14:59:15.286][Root] Try finding root from current workspaceRootDir: file:///d:/Temp/subImport_test .
[14:59:15.288][Server] validOrigin is http://127.0.0.1:57640
[14:59:15.416][Root] Current workspace folders: ["file:///d:/Temp/subImport_test"]
[14:59:15.417][Root] Try finding root from magic comment.
[14:59:15.417][Root] Try finding root from active editor.
[14:59:15.418][Root] Found root file from active editor: %WS1%\main.tex
[14:59:15.418][Root] Root file changed: from %WS1%\main.tex to %WS1%\main.tex, langID latex . Refresh dependencies
[14:59:15.418][Event] ROOT_FILE_CHANGED: "d:\\Temp\\subImport_test\\main.tex"
[14:59:15.418][Cacher][Watcher] Reset.
[14:59:15.419][Cacher][Watcher] Reset.
[14:59:15.422][Cacher] Adding %WS1%\main.tex .
[14:59:15.423][Cacher][Watcher] Watched file:///d:/Temp/subImport_test/main.tex with a new .* watcher on %WS1% .
[14:59:15.423][Event] FILE_WATCHED: "file:///d:/Temp/subImport_test/main.tex"
[14:59:15.424][Cacher] Caching %WS1%\main.tex .
[14:59:15.425][Event] ROOT_FILE_SEARCHED
[14:59:15.425][Linter] LaCheck lints root %WS1%\main.tex .
[14:59:15.426][Linter][LaCheck] Linter for LaCheck command The command is lacheck:["d:\\Temp\\subImport_test\\main.tex"].
[14:59:15.436][Structure][LaTeX] Error loading AST during structuring: %WS1%\main.tex .
[14:59:15.436][Structure] Structure updated with 0 root sections for %WS1%\main.tex .
[14:59:15.437][Event] STRUCTURE_UPDATED
[14:59:15.526][Structure][LaTeX] Error loading AST during structuring: %WS1%\main.tex .
[14:59:15.526][Structure][LaTeX] Error loading AST during structuring: %WS1%\main.tex .
[14:59:15.526][Structure][LaTeX] Error loading AST during structuring: %WS1%\main.tex .
[14:59:15.566][Cacher] Updated inputs of %WS1%\main.tex .
[14:59:15.566][Cacher] Parse LaTeX AST: %WS1%\main.tex .
[14:59:15.567][Root] Found root file from '.fls': %WS1%\main.tex
[14:59:15.567][Root] Keep using the same root file: %WS1%\main.tex
[14:59:15.568][Event] ROOT_FILE_SEARCHED
[14:59:15.568][Event] STRUCTURE_UPDATED
[14:59:15.568][Linter] LaCheck lints root %WS1%\main.tex .
[14:59:15.569][Linter][LaCheck] Linter for LaCheck command The command is lacheck:["d:\\Temp\\subImport_test\\main.tex"].
[14:59:15.578][Cacher] Parsed LaTeX AST in 11.54 ms: %WS1%\main.tex .
[14:59:15.579][File] Calling kpsewhich to resolve article.cls .
[14:59:15.991][File] kpsewhich returned with 'C:/Users/UserNameReplaced/AppData/Local/Programs/MiKTeX/tex/latex/base/article.cls'.
[14:59:15.993][Cacher] Updated elements in 414.49 ms: %WS1%\main.tex .
[14:59:15.993][Event] FILE_PARSED: "d:\\Temp\\subImport_test\\main.tex"
[14:59:15.995][Linter] Linter for root failed with exit code null and error:
[14:59:15.995][Linter][LaCheck] Logged 0 messages.
[14:59:15.997][Linter] Linter for root successfully finished in 0s 420ms
[14:59:15.997][Linter][LaCheck] Logged 0 messages.
[14:59:16.005][Cacher] Parsing .fls %WS1%\main.fls .
[14:59:16.023][Cacher] Adding %WS1%\subdir\subfile.tex .
[14:59:16.023][Cacher][Watcher] Watched file:///d:/Temp/subImport_test/subdir/subfile.tex with a new .* watcher on %WS1%\subdir .
[14:59:16.023][Event] FILE_WATCHED: "file:///d:/Temp/subImport_test/subdir/subfile.tex"
[14:59:16.025][Cacher] Found %WS1%\subdir\subfile.tex from .fls %WS1%\main.fls , caching.
[14:59:16.025][Cacher] Caching %WS1%\subdir\subfile.tex .
[14:59:16.032][Cacher] Adding %WS1%\subdir\sample.png .
[14:59:16.033][Cacher][Watcher] Watched file:///d:/Temp/subImport_test/subdir/sample.png by the .* watcher.
[14:59:16.033][Event] FILE_WATCHED: "file:///d:/Temp/subImport_test/subdir/sample.png"
[14:59:16.039][Cacher] Adding %WS1%\subdir\subsubdir\subsubfile.tex .
[14:59:16.039][Cacher][Watcher] Watched file:///d:/Temp/subImport_test/subdir/subsubdir/subsubfile.tex with a new .* watcher on %WS1%\subdir\subsubdir .
[14:59:16.040][Event] FILE_WATCHED: "file:///d:/Temp/subImport_test/subdir/subsubdir/subsubfile.tex"
[14:59:16.040][Cacher] Found %WS1%\subdir\subsubdir\subsubfile.tex from .fls %WS1%\main.fls , caching.
[14:59:16.040][Cacher] Caching %WS1%\subdir\subsubdir\subsubfile.tex .
[14:59:16.042][Cacher] Updated inputs of %WS1%\subdir\subsubdir\subsubfile.tex .
[14:59:16.042][Cacher] Parse LaTeX AST: %WS1%\subdir\subsubdir\subsubfile.tex .
[14:59:16.043][Cacher] Adding %WS1%\mdfile.tex .
[14:59:16.043][Cacher][Watcher] Watched file:///d:/Temp/subImport_test/mdfile.tex by the .* watcher.
[14:59:16.043][Event] FILE_WATCHED: "file:///d:/Temp/subImport_test/mdfile.tex"
[14:59:16.044][Cacher] Found %WS1%\mdfile.tex from .fls %WS1%\main.fls , caching.
[14:59:16.044][Cacher] Caching %WS1%\mdfile.tex .
[14:59:16.046][Cacher] Parsed LaTeX AST in 3.36 ms: %WS1%\subdir\subsubdir\subsubfile.tex .
[14:59:16.046][Cacher] Updated elements in 0.37 ms: %WS1%\subdir\subsubdir\subsubfile.tex .
[14:59:16.047][Event] FILE_PARSED: "d:\\Temp\\subImport_test\\subdir\\subsubdir\\subsubfile.tex"
[14:59:16.051][Cacher] Found .aux %WS1%\main.aux from .fls %WS1%\main.fls , parsing.
[14:59:16.052][Structure] Structure force updated with 0 root sections for %WS1%\main.tex .
[14:59:16.052][Event] STRUCTURE_UPDATED
[14:59:16.052][Cacher] Updated inputs of %WS1%\mdfile.tex .
[14:59:16.053][Cacher] Parse LaTeX AST: %WS1%\mdfile.tex .
[14:59:16.058][Cacher] Parsed LaTeX AST in 5.55 ms: %WS1%\mdfile.tex .
[14:59:16.059][Cacher] Updated elements in 0.37 ms: %WS1%\mdfile.tex .
[14:59:16.059][Event] FILE_PARSED: "d:\\Temp\\subImport_test\\mdfile.tex"
[14:59:16.060][Cacher] Input %WS1%\subdir\subsubdir\subsubfile.tex from %WS1%\subdir\subfile.tex .
[14:59:16.060][Cacher] Updated inputs of %WS1%\subdir\subfile.tex .
[14:59:16.061][Cacher] Parse LaTeX AST: %WS1%\subdir\subfile.tex .
[14:59:16.061][Cacher] Parsed .aux %WS1%\main.aux .
[14:59:16.062][Cacher] Parsed .fls %WS1%\main.fls .
[14:59:16.062][Cacher] Parsed LaTeX AST in 1.54 ms: %WS1%\subdir\subfile.tex .
[14:59:16.063][Cacher] Updated elements in 0.14 ms: %WS1%\subdir\subfile.tex .
[14:59:16.063][Event] FILE_PARSED: "d:\\Temp\\subImport_test\\subdir\\subfile.tex"
[14:59:16.079][Structure] Structure force updated with 0 root sections for %WS1%\main.tex .
[14:59:16.079][Event] STRUCTURE_UPDATED
[14:59:52.465][Event] STRUCTURE_UPDATED
Developer Tools Console
log.ts:419 INFO Started local extension host with pid 20136.
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.
Old grammar file: file:///c%3A/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/TeX.tmLanguage.json.
New grammar file: file:///c%3A/Users/UserNameReplaced/.vscode/extensions/james-yu.latex-workshop-10.7.0/syntax/TeX.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.latex.
Old grammar file: file:///c%3A/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/LaTeX.tmLanguage.json.
New grammar file: file:///c%3A/Users/UserNameReplaced/.vscode/extensions/james-yu.latex-workshop-10.7.0/syntax/LaTeX.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.bibtex.
Old grammar file: file:///c%3A/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/Bibtex.tmLanguage.json.
New grammar file: file:///c%3A/Users/UserNameReplaced/.vscode/extensions/james-yu.latex-workshop-10.7.0/syntax/Bibtex.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.markdown_latex_combined.
Old grammar file: file:///c%3A/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.
New grammar file: file:///c%3A/Users/UserNameReplaced/.vscode/extensions/james-yu.latex-workshop-10.7.0/syntax/markdown-latex-combined.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope source.cpp.embedded.latex.
Old grammar file: file:///c%3A/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.
New grammar file: file:///c%3A/Users/UserNameReplaced/.vscode/extensions/james-yu.latex-workshop-10.7.0/syntax/cpp-grammar-bailout.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.
Old grammar file: file:///c%3A/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/TeX.tmLanguage.json.
New grammar file: file:///c%3A/Users/UserNameReplaced/.vscode/extensions/james-yu.latex-workshop-10.7.0/syntax/TeX.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.latex.
Old grammar file: file:///c%3A/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/LaTeX.tmLanguage.json.
New grammar file: file:///c%3A/Users/UserNameReplaced/.vscode/extensions/james-yu.latex-workshop-10.7.0/syntax/LaTeX.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.bibtex.
Old grammar file: file:///c%3A/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/Bibtex.tmLanguage.json.
New grammar file: file:///c%3A/Users/UserNameReplaced/.vscode/extensions/james-yu.latex-workshop-10.7.0/syntax/Bibtex.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.markdown_latex_combined.
Old grammar file: file:///c%3A/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.
New grammar file: file:///c%3A/Users/UserNameReplaced/.vscode/extensions/james-yu.latex-workshop-10.7.0/syntax/markdown-latex-combined.tmLanguage.json
register @ TMScopeRegistry.ts:46
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope source.cpp.embedded.latex.
Old grammar file: file:///c%3A/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.
New grammar file: file:///c%3A/Users/UserNameReplaced/.vscode/extensions/james-yu.latex-workshop-10.7.0/syntax/cpp-grammar-bailout.tmLanguage.json
register @ TMScopeRegistry.ts:46
log.ts:419 INFO Settings Sync: Updating due to initialize
log.ts:419 INFO Settings Sync: Updating authentication providers. Authentication Providers from store: Array(2)
log.ts:419 INFO Settings Sync: Authentication providers updated Array(0)
log.ts:419 INFO Settings Sync: Updating authentication providers. Authentication Providers from store: Array(2)
log.ts:419 INFO Settings Sync: Authentication providers updated Array(1)
log.ts:419 INFO Settings Sync: Updating authentication providers. Authentication Providers from store: Array(2)
log.ts:419 INFO Settings Sync: Authentication providers updated Array(1)
log.ts:419 INFO Settings Sync: Updating authentication providers. Authentication Providers from store: Array(2)
log.ts:419 INFO Settings Sync: Authentication providers updated Array(2)
log.ts:419 INFO Settings Sync: Updating authentication providers. Authentication Providers from store: Array(2)
log.ts:419 INFO Settings Sync: Authentication providers updated Array(2)
log.ts:419 INFO Settings Sync: Updating due to declared authentication providers changed
log.ts:419 INFO Settings Sync: Updating authentication providers. Authentication Providers from store: Array(2)
log.ts:419 INFO Settings Sync: Authentication providers updated Array(2)
log.ts:419 INFO Settings Sync: Updating due to declared authentication providers changed
log.ts:419 INFO Settings Sync: Updating authentication providers. Authentication Providers from store: Array(2)
log.ts:419 INFO Settings Sync: Authentication providers updated Array(2)
log.ts:419 INFO [perf] Render performance baseline is 24ms
webWorkerExtensionHostIframe.html:1 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
log.ts:419 INFO Started local extension host with pid 14724.
log.ts:439 ERR TreeError [DebugRepl] Tree input not set: Error: TreeError [DebugRepl] Tree input not set
at Yd.C (vscode-file://vscode-app/c:/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:416:30917)
at Yd.updateChildren (vscode-file://vscode-app/c:/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:416:30824)
at vZ.value (vscode-file://vscode-app/c:/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2054:35241)
at x.B (vscode-file://vscode-app/c:/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:30:747)
at x.C (vscode-file://vscode-app/c:/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:30:817)
at x.fire (vscode-file://vscode-app/c:/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:30:1034)
at Fme.setVisible (vscode-file://vscode-app/c:/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:532:2801)
at vscode-file://vscode-app/c:/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:648:11845
at Array.map (<anonymous>)
at sh.setVisible (vscode-file://vscode-app/c:/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:648:11836)
vscode-file://vscode-app/c:/Users/UserNameReplaced/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/services/extensions/worker/webWorkerExtensionHostIframe.html?&vscodeWebWorkerExtHostId=2bce4010-bc3c-435c-8336-f1d089b90263:1 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
log.ts:419 INFO Started local extension host with pid 18300.
Anything Else?
Seems LaCheck as well does not recognize the included file in quotes so behaves same as workshop, but that is less important as typically I'm interested only the file (and hence only the part of the document) I'm editing at that moment.
The text was updated successfully, but these errors were encountered:
Incredibly fast, Thank you!
I have to add I have been using many dedicated latex editors over the years and still the "general purpose" VSCode with latex workshop (and latex utilities) along with its integral git support is by far the best weapon the purpose! 👍
Pre-checks*
Environment*
Windows 11 24H2 (also tested with Windows 10, revision unknown)
Visual Studio Code Version: 1.95.3
LaTeX Workshop Version: 10.7.0
TeX Distribution Version:MiKTeX 24.1 (also tested in win 10 with TeX Live 2023)
The Issue
When tex files are included with path or filename containing spaces and hence quotation marks the Latex Workshop does not parse the document structure for these files. The content of the files is not parsed if quotation marks are added around path/filename which does no contains spaces and therefore the issue primarily seems to be the quotation marks.
Normally pressing F12 (while cursor on top of filename) the related file is opened in editor. This is when the Workshop structure parser shows correct output too. These fail when there are quotations used. Not sure if this is more VSCode related.
This has been tested to behave as described with \input{""} \include{""} \import{""}{""} and \subimport{""}{""}. The Latex compiling process works as intended as there is support for filenames with spaces.
This subimport test can serve as an MWE for this issue: https://drive.google.com/drive/folders/1N0C0eQNc6vfp3t1eAYYyTxfv61Fv6Uif?usp=drive_link
Reproduction Steps
Expected Behavior
Latex document elements (sections, labels, etc) should be visible in the structure view with filenames including spaces and surrounded by quotation marks.
Logs
LaTeX Workshop Output (structure parsed successfully)*
LaTeX Workshop Output (structure parsed UNSUCCESSFULLY)*
Developer Tools Console
Anything Else?
Seems LaCheck as well does not recognize the included file in quotes so behaves same as workshop, but that is less important as typically I'm interested only the file (and hence only the part of the document) I'm editing at that moment.
The text was updated successfully, but these errors were encountered: