Skip to content
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

Workshop does not parse document structure with included filenames containing quotation marks #4481

Closed
4 tasks done
TexLayer opened this issue Dec 6, 2024 · 1 comment · Fixed by #4482
Closed
4 tasks done

Comments

@TexLayer
Copy link

TexLayer commented Dec 6, 2024

Pre-checks*

Please change the following [ ] to [x] for confirmation.

  • The issue has not been reported in this repository.
  • The issue remains after disabling all other extensions and restarting Visual Studio Code.
  • The FAQ cannot address the issue.
  • 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.

This subimport test can serve as an MWE for this issue: https://drive.google.com/drive/folders/1N0C0eQNc6vfp3t1eAYYyTxfv61Fv6Uif?usp=drive_link

Reproduction Steps

  1. 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}
  2. Test that the structure of the document is parsed and the section 'My Section' is visible.
  3. Add Quotation marks around the included file: \include{"subfile.tex"}
  4. 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.

Logs

LaTeX Workshop Output (structure parsed successfully)*

[20:55:28.086][Logger] New log placeholder %WS1% registered for d:\Temp\subImport_test .
[20:55:28.086][Extension] Initializing LaTeX Workshop.
[20:55:28.285][Build][Recipe] Set $LATEXWORKSHOP_DOCKER_LATEX: ""
[20:55:28.286][Build][Recipe] Set $LATEXWORKSHOP_DOCKER_PATH: "docker"
[20:55:28.368][Server] Creating LaTeX Workshop http and websocket server.
[20:55:28.475][Format][Bib] Bibtex format config: {"tab":"  ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[20:55:28.553][Server] Server successfully started: {"address":"127.0.0.1","family":"IPv4","port":52113} .
[20:55:28.563][Extension] Extension root: c:\Users\UserNameReplaced\.vscode\extensions\james-yu.latex-workshop-10.7.0
[20:55:28.564][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;
[20:55:28.564][Extension] $SHELL: undefined
[20:55:28.564][Extension] $LANG: undefined
[20:55:28.564][Extension] $LC_ALL: undefined
[20:55:28.564][Extension] process.platform: win32
[20:55:28.564][Extension] process.arch: x64
[20:55:28.564][Extension] vscode.env.appName: Visual Studio Code
[20:55:28.564][Extension] vscode.env.remoteName: undefined
[20:55:28.565][Extension] vscode.env.uiKind: 1
[20:55:28.567][Config] latex-workshop.latex.recipe.default: "latexmk" .
[20:55:28.569][Config] latex-workshop.latex.autoBuild.run: "never" .
[20:55:28.570][Config] latex-workshop.latex.autoBuild.cleanAndRetry.enabled: false .
[20:55:28.570][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"] .
[20:55:28.573][Config] latex-workshop.linting.lacheck.enabled: true .
[20:55:28.573][Config] latex-workshop.linting.run: "onType" .
[20:55:28.574][Config] latex-workshop.linting.chktex.exec.path: "C:\\Users\\UserNameReplaced\\AppData\\Local\\Programs\\MiKTeX\\miktex\\bin\\x64\\chktex" .
[20:55:28.574][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"] .
[20:55:28.574][Config] latex-workshop.linting.chktex.convertOutput.column.chktexrcTabSize: 4 .
[20:55:28.575][Config] latex-workshop.intellisense.update.aggressive.enabled: true .
[20:55:28.575][Config] latex-workshop.intellisense.update.delay: 500 .
[20:55:28.581][Config] latex-workshop.formatting.latex: "latexindent" .
[20:55:28.590][Extension] Trigger characters for intellisense of LaTeX documents: ["\\",",","{","}"]
[20:55:28.592][Root] Current workspace folders: ["file:///d:/Temp/subImport_test"]
[20:55:28.592][Root] Try finding root from magic comment.
[20:55:28.593][Extension] LaTeX Workshop initialized.
[20:55:28.593][Root] The active document cannot be used as the root file: output:tasks
[20:55:28.593][Root] Try finding root from current workspaceRootDir: file:///d:/Temp/subImport_test .
[20:55:28.596][Server] validOrigin is http://127.0.0.1:52113
[20:55:28.810][Root] Found files that might be root, choose the first one: %WS1%\main.tex .
[20:55:28.810][Root] Root file changed: from %WS1%\main.tex to %WS1%\main.tex, langID latex . Refresh dependencies
[20:55:28.810][Event] ROOT_FILE_CHANGED: "d:\\Temp\\subImport_test\\main.tex"
[20:55:28.810][Cacher][Watcher] Reset.
[20:55:28.811][Cacher][Watcher] Reset.
[20:55:28.814][Cacher] Adding %WS1%\main.tex .
[20:55:28.815][Cacher][Watcher] Watched file:///d:/Temp/subImport_test/main.tex with a new .* watcher on %WS1% .
[20:55:28.815][Event] FILE_WATCHED: "file:///d:/Temp/subImport_test/main.tex"
[20:55:28.816][Cacher] Caching %WS1%\main.tex .
[20:55:28.816][Event] ROOT_FILE_SEARCHED
[20:55:28.817][Linter] LaCheck lints root %WS1%\main.tex .
[20:55:28.817][Linter][LaCheck] Linter for LaCheck command The command is lacheck:["d:\\Temp\\subImport_test\\main.tex"].
[20:55:28.831][Cacher] Input %WS1%\subdir\subfile.tex from %WS1%\main.tex .
[20:55:28.832][Cacher] Adding %WS1%\subdir\subfile.tex .
[20:55:28.832][Cacher][Watcher] Watched file:///d:/Temp/subImport_test/subdir/subfile.tex with a new .* watcher on %WS1%\subdir .
[20:55:28.832][Event] FILE_WATCHED: "file:///d:/Temp/subImport_test/subdir/subfile.tex"
[20:55:28.833][Cacher] Caching %WS1%\subdir\subfile.tex .
[20:55:28.835][Cacher] Input %WS1%\subdir\subsubdir\subsubfile.tex from %WS1%\subdir\subfile.tex .
[20:55:28.835][Cacher] Adding %WS1%\subdir\subsubdir\subsubfile.tex .
[20:55:28.836][Cacher][Watcher] Watched file:///d:/Temp/subImport_test/subdir/subsubdir/subsubfile.tex with a new .* watcher on %WS1%\subdir\subsubdir .
[20:55:28.836][Event] FILE_WATCHED: "file:///d:/Temp/subImport_test/subdir/subsubdir/subsubfile.tex"
[20:55:28.836][Cacher] Caching %WS1%\subdir\subsubdir\subsubfile.tex .
[20:55:28.837][Cacher] Updated inputs of %WS1%\subdir\subfile.tex .
[20:55:28.837][Cacher] Parse LaTeX AST: %WS1%\subdir\subfile.tex .
[20:55:28.838][Cacher] Updated inputs of %WS1%\subdir\subsubdir\subsubfile.tex .
[20:55:28.838][Cacher] Parse LaTeX AST: %WS1%\subdir\subsubdir\subsubfile.tex .
[20:55:28.839][Cacher] Updated inputs of %WS1%\main.tex .
[20:55:28.839][Cacher] Parse LaTeX AST: %WS1%\main.tex .
[20:55:28.845][Cacher] Parsed LaTeX AST in 8.18 ms: %WS1%\subdir\subfile.tex .
[20:55:28.847][Cacher] Updated elements in 1.34 ms: %WS1%\subdir\subfile.tex .
[20:55:28.848][Event] FILE_PARSED: "d:\\Temp\\subImport_test\\subdir\\subfile.tex"
[20:55:28.849][Cacher] Parsed LaTeX AST in 10.27 ms: %WS1%\subdir\subsubdir\subsubfile.tex .
[20:55:28.849][Cacher] Updated elements in 0.35 ms: %WS1%\subdir\subsubdir\subsubfile.tex .
[20:55:28.850][Event] FILE_PARSED: "d:\\Temp\\subImport_test\\subdir\\subsubdir\\subsubfile.tex"
[20:55:28.854][Cacher] Parsed LaTeX AST in 14.25 ms: %WS1%\main.tex .
[20:55:28.854][File] Calling kpsewhich to resolve article.cls .
[20:55:29.270][File] kpsewhich returned with 'C:/Users/UserNameReplaced/AppData/Local/Programs/MiKTeX/tex/latex/base/article.cls'.
[20:55:29.272][Cacher] Updated elements in 417.70 ms: %WS1%\main.tex .
[20:55:29.272][Event] FILE_PARSED: "d:\\Temp\\subImport_test\\main.tex"
[20:55:29.274][Linter] Linter for root successfully finished in 0s 448ms
[20:55:29.275][Linter][LaCheck] Logged 1 messages.
[20:55:29.283][Cacher] Parsing .fls %WS1%\main.fls .
[20:55:29.291][Cacher] Adding %WS1%\subdir\sample.png .
[20:55:29.292][Cacher][Watcher] Watched file:///d:/Temp/subImport_test/subdir/sample.png by the .* watcher.
[20:55:29.292][Event] FILE_WATCHED: "file:///d:/Temp/subImport_test/subdir/sample.png"
[20:55:29.295][Cacher] Adding %WS1%\subdir\subsubdir\images\image1.png .
[20:55:29.296][Cacher][Watcher] Watched file:///d:/Temp/subImport_test/subdir/subsubdir/images/image1.png with a new .* watcher on %WS1%\subdir\subsubdir\images .
[20:55:29.296][Event] FILE_WATCHED: "file:///d:/Temp/subImport_test/subdir/subsubdir/images/image1.png"
[20:55:29.298][Cacher] Adding %WS1%\parallel.tex .
[20:55:29.298][Cacher][Watcher] Watched file:///d:/Temp/subImport_test/parallel.tex by the .* watcher.
[20:55:29.298][Event] FILE_WATCHED: "file:///d:/Temp/subImport_test/parallel.tex"
[20:55:29.298][Cacher] Found %WS1%\parallel.tex from .fls %WS1%\main.fls , caching.
[20:55:29.299][Cacher] Caching %WS1%\parallel.tex .
[20:55:29.307][Cacher] Found .aux %WS1%\main.aux from .fls %WS1%\main.fls , parsing.
[20:55:29.309][Cacher] Updated inputs of %WS1%\parallel.tex .
[20:55:29.309][Cacher] Parse LaTeX AST: %WS1%\parallel.tex .
[20:55:29.311][Cacher] Parsed .aux %WS1%\main.aux .
[20:55:29.312][Cacher] Parsed LaTeX AST in 2.11 ms: %WS1%\parallel.tex .
[20:55:29.312][Cacher] Updated elements in 0.07 ms: %WS1%\parallel.tex .
[20:55:29.312][Event] FILE_PARSED: "d:\\Temp\\subImport_test\\parallel.tex"
[20:55:29.313][Cacher] Found .aux %WS1%\parallel.aux from .fls %WS1%\main.fls , parsing.
[20:55:29.316][Structure] Structure force updated with 0 root sections for %WS1%\main.tex .
[20:55:29.316][Event] STRUCTURE_UPDATED
[20:55:29.316][Cacher] Parsed .aux %WS1%\parallel.aux .
[20:55:29.317][Cacher] Parsed .fls %WS1%\main.fls .
[20:55:29.321][Structure] Structure force updated with 2 root sections for %WS1%\main.tex .
[20:55:29.322][Event] STRUCTURE_UPDATED
[20:55:32.951][Root] Current workspace folders: ["file:///d:/Temp/subImport_test"]
[20:55:32.952][Root] Try finding root from magic comment.
[20:55:32.953][Root] Try finding root from active editor.
[20:55:32.953][Root] Found root file from active editor: %WS1%\main.tex
[20:55:32.954][Root] Keep using the same root file: %WS1%\main.tex
[20:55:32.954][Event] ROOT_FILE_SEARCHED
[20:55:32.955][Event] STRUCTURE_UPDATED
[20:55:32.956][Linter] LaCheck lints root %WS1%\main.tex .
[20:55:32.956][Linter][LaCheck] Linter for LaCheck command The command is lacheck:["d:\\Temp\\subImport_test\\main.tex"].
[20:55:32.965][Event] STRUCTURE_UPDATED
[20:55:33.240][Linter] Linter for root successfully finished in 0s 276ms
[20:55:33.241][Linter][LaCheck] Logged 1 messages.

LaTeX Workshop Output (structure parsed UNSUCCESSFULLY)*

[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.

@TexLayer
Copy link
Author

TexLayer commented Dec 7, 2024

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! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant