[x] 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*
Please write exact version numbers instead of descriptors such as latest.
Operating System: [macOS 13.4]
Visual Studio Code Version: [1.80.1]
LaTeX Workshop Version: [9.13.1]
TeX Distribution Version: [TeX Live 2023 (mactex)]
Please list the environment and version number if you are using VSCodium, Snap or Flatpack versions of Visual Studio Code, and/or Visual Studio Code Remote Containers/SSH/WSL.
I am using XXX whose version is YY.ZZ
The Issue*
Please briefly describe the issue you come across.
structure pane doesn't update content after switching to a bibliography file
when launching vs code and navigating to the .tex file i see chapters in structure pane
when navigating to the .bib file i see my literature entries in structure pane
when navigating back to .tex file i still see literature entries
when reloading window or restarting vs code it loads the chapters again
Reproduction Steps
Please list out the steps to reproduce your bug. Include relevant environmental variables or any other configuration.
(i started vs code with code --extensions-dir /tmp/ext . and installed only latex workshop to have a clean env)
open vs code and navigate to a .tex file, look at structure pane
navigate to a .bib file, look at structure pane
navigate back to .tex file, look at structure pane
Expected Behavior
What were you expecting to see? Include any relevant examples or documentation links.
structure should always represent the stuff of the currently opened file
shouldnt get stuck on bib
Logs
LaTeX Workshop Output*
Please paste the whole log messages below, not parts of ones. The log should start with New log placeholder %WS1% registered.
[14:18:05.414][Logger] New log placeholder %WS1% registered for /Users/A113927731/projects/bsc-informatics/6-bachelor-thesis/bachelor-thesis/latex .
[14:18:05.414][Config] latex-workshop.latex.recipes: [{"name":"build (lualatex)","tools":["lualatexmk"]},{"name":"clean (lualatex)","tools":["lualatexmk-clean"]}] .
[14:18:05.422][Config] latex-workshop.latex.tools: [{"name":"lualatexmk","command":"latexmk","args":["-file-line-error","-interaction=nonstopmode","-synctex=1","-lualatex","-output-directory=%OUTDIR%","%DOC%"],"env":{}},{"name":"lualatexmk-clean","command":"latexmk","args":["-C","-file-line-error","-interaction=nonstopmode","-synctex=1","-lualatex","-output-directory=%OUTDIR%","%DOC%"],"env":{}}] .
[14:18:05.423][Config] latex-workshop.latex.outDir: "build" .
[14:18:05.425][Config] latex-workshop.latex.autoBuild.run: "onSave" .
[14:18:05.427][Config] latex-workshop.latex.autoClean.run: "onBuilt" .
[14:18:05.441][Manager] Set $LATEXWORKSHOP_DOCKER_LATEX: ""
[14:18:05.457][Server] Creating LaTeX Workshop http and websocket server.
[14:18:05.517][Server] Server successfully started: {"address":"127.0.0.1","family":"IPv4","port":65412} .
[14:18:05.527][Extension] Initializing LaTeX Workshop.
[14:18:05.527][Extension] Extension root: /private/tmp/ext/james-yu.latex-workshop-9.13.1
[14:18:05.528][Extension] $PATH: /Users/A113927731/.cargo/bin:/Users/A113927731/.local/bin:/opt/homebrew/opt/python@3/libexec/bin:/opt/homebrew/opt/grep/libexec/gnubin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/gnu-which/libexec/gnubin:/opt/homebrew/opt/gnu-units/libexec/gnubin:/opt/homebrew/opt/gnu-time/libexec/gnubin:/opt/homebrew/opt/gnu-tar/libexec/gnubin:/opt/homebrew/opt/gnu-sed/libexec/gnubin:/opt/homebrew/opt/findutils/libexec/gnubin:/opt/homebrew/opt/coreutils/libexec/gnubin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
[14:18:05.528][Extension] $SHELL: /bin/zsh
[14:18:05.528][Extension] $LANG: en_US.UTF-8
[14:18:05.528][Extension] $LC_ALL: undefined
[14:18:05.528][Extension] process.platform: darwin
[14:18:05.528][Extension] process.arch: arm64
[14:18:05.528][Extension] vscode.env.appName: Visual Studio Code
[14:18:05.528][Extension] vscode.env.remoteName: undefined
[14:18:05.529][Extension] vscode.env.uiKind: 1
[14:18:05.529][Extension] LaTeX Workshop initialized.
[14:18:05.532][Format][Bib] Bibtex format config: {"tab":" ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[14:18:05.539][Extension] Trigger characters for intellisense of LaTeX documents: ["\\",",","{"]
[14:18:05.540][Manager] Current workspace folders: ["file://%WS1%"]
[14:18:05.541][Manager] Current workspaceRootDir: file://%WS1%
[14:18:05.542][Server] valdOrigin is http://127.0.0.1:65412
[14:18:05.595][Cacher][Path] Non-existent .fls for %WS1%/titlepage.tex .
[14:18:05.597][Cacher] Cache not finished on %WS1%/main.tex when getting its children.
[14:18:05.600][Cacher] Caching %WS1%/main.tex .
[14:18:05.600][Cacher] Input %WS1%/titlepage.tex from %WS1%/main.tex .
[14:18:05.602][Cacher] Adding %WS1%/titlepage.tex .
[14:18:05.602][Cacher][Watcher] Watched %WS1%/titlepage.tex with a new watcher on %WS1% .
[14:18:05.603][Event] FILE_WATCHED: "%WS1%/titlepage.tex"
[14:18:05.603][Cacher] Caching %WS1%/titlepage.tex .
[14:18:05.603][Cacher] Updated inputs of %WS1%/titlepage.tex .
[14:18:05.603][Cacher] Parse LaTeX AST: %WS1%/titlepage.tex .
[14:18:05.603][Cacher] Updated inputs of %WS1%/main.tex .
[14:18:05.603][Cacher] Parse LaTeX AST: %WS1%/main.tex .
[14:18:05.610][Cacher] Parsed LaTeX AST: %WS1%/titlepage.tex .
[14:18:05.612][Cacher] Updated elements in 1.60 ms: %WS1%/titlepage.tex .
[14:18:05.613][Event] FILE_PARSED: "%WS1%/titlepage.tex"
[14:18:05.662][Cacher] Parsed LaTeX AST: %WS1%/main.tex .
[14:18:05.663][Cacher][Path] Calling kpsewhich to resolve scrbook.cls .
[14:18:05.788][Cacher] Bib %WS1%/bibliography.bib from %WS1%/main.tex .
[14:18:05.789][Intelli][Citation] Parsing .bib entries from %WS1%/bibliography.bib
[14:18:05.790][Intelli][Citation] Parse BibTeX AST from %WS1%/bibliography.bib .
[14:18:05.790][Cacher][Watcher] Watched %WS1%/bibliography.bib with a new watcher on %WS1% .
[14:18:05.790][Event] FILE_WATCHED: "%WS1%/bibliography.bib"
[14:18:05.790][Cacher] Updated elements in 127.60 ms: %WS1%/main.tex .
[14:18:05.790][Event] FILE_PARSED: "%WS1%/main.tex"
[14:18:05.790][Structure] Structure cleared on undefined root.
[14:18:05.791][Event] STRUCTURE_UPDATED
[14:18:05.791][Manager] Found files that might be root, choose the first one: %WS1%/main.tex .
[14:18:05.791][Manager] Root file changed: from undefined to %WS1%/main.tex
[14:18:05.791][Manager] Start to find all dependencies.
[14:18:05.791][Manager] Root file languageId: latex
[14:18:05.792][Event] ROOT_FILE_CHANGED: "%WS1%/main.tex"
[14:18:05.792][Cacher][Watcher] Reset.
[14:18:05.792][Cacher] Adding %WS1%/main.tex .
[14:18:05.792][Cacher][Watcher] Watched %WS1%/main.tex with a new watcher on %WS1% .
[14:18:05.792][Event] FILE_WATCHED: "%WS1%/main.tex"
[14:18:05.793][Cacher] Caching %WS1%/main.tex .
[14:18:05.793][Cacher] Input %WS1%/titlepage.tex from %WS1%/main.tex .
[14:18:05.793][Cacher] Adding %WS1%/titlepage.tex .
[14:18:05.793][Cacher][Watcher] Watched %WS1%/titlepage.tex .
[14:18:05.794][Event] FILE_WATCHED: "%WS1%/titlepage.tex"
[14:18:05.794][Cacher] Caching %WS1%/titlepage.tex .
[14:18:05.794][Cacher] Updated inputs of %WS1%/titlepage.tex .
[14:18:05.794][Cacher] Parse LaTeX AST: %WS1%/titlepage.tex .
[14:18:05.794][Cacher] Updated inputs of %WS1%/main.tex .
[14:18:05.797][Cacher] Parse LaTeX AST: %WS1%/main.tex .
[14:18:05.797][Event] ROOT_FILE_SEARCHED
[14:18:05.798][Intelli][Citation] Parsed 39 bib entries from %WS1%/bibliography.bib .
[14:18:05.799][Event] FILE_PARSED: "%WS1%/bibliography.bib"
[14:18:05.800][Cacher] Parsed LaTeX AST: %WS1%/titlepage.tex .
[14:18:05.800][Cacher] Updated elements in 0.24 ms: %WS1%/titlepage.tex .
[14:18:05.800][Event] FILE_PARSED: "%WS1%/titlepage.tex"
[14:18:05.835][Cacher] Parsed LaTeX AST: %WS1%/main.tex .
[14:18:05.835][Cacher][Path] Calling kpsewhich to resolve scrbook.cls .
[14:18:05.954][Cacher] Bib %WS1%/bibliography.bib from %WS1%/main.tex .
[14:18:05.954][Cacher] Updated elements in 119.60 ms: %WS1%/main.tex .
[14:18:05.955][Event] FILE_PARSED: "%WS1%/main.tex"
[14:18:05.955][Cacher] Parsing .fls %WS1%/build/main.fls .
[14:18:05.967][Cacher] Adding %WS1%/assets/steckbrief-studienarbeit.pdf .
[14:18:05.967][Cacher][Watcher] Watched %WS1%/assets/steckbrief-studienarbeit.pdf with a new watcher on %WS1%/assets .
[14:18:05.967][Event] FILE_WATCHED: "%WS1%/assets/steckbrief-studienarbeit.pdf"
[14:18:05.968][Cacher] Adding %WS1%/assets/provadis-hochschule.png .
[14:18:05.968][Cacher][Watcher] Watched %WS1%/assets/provadis-hochschule.png .
[14:18:05.968][Event] FILE_WATCHED: "%WS1%/assets/provadis-hochschule.png"
[14:18:05.969][Cacher] Found .aux %WS1%/main.tex from .fls %WS1%/build/main.fls , parsing.
[14:18:05.970][Cacher] Parsed .aux %WS1%/main.tex .
[14:18:05.971][Cacher] Found .aux %WS1%/main.tex from .fls %WS1%/build/main.fls , parsing.
[14:18:05.972][Cacher] Parsed .aux %WS1%/main.tex .
[14:18:05.972][Cacher] Parsed .fls %WS1%/build/main.fls .
[14:18:05.975][Structure] Structure force updated with 7 root sections for %WS1%/main.tex .
[14:18:05.975][Event] STRUCTURE_UPDATED
[14:18:05.975][Structure] Structure force updated with 7 root sections for %WS1%/main.tex .
[14:18:05.975][Structure] Structure updated with 7 root sections for %WS1%/main.tex .
[14:18:05.975][Event] STRUCTURE_UPDATED
[14:18:05.999][Manager] Current workspace folders: ["file://%WS1%"]
[14:18:06.000][Manager] Found magic root %WS1%/main.tex from active.
[14:18:06.000][Manager] Found looped magic root %WS1%/main.tex .
[14:18:06.001][Manager] Keep using the same root file: %WS1%/main.tex
[14:18:06.001][Structure] Structure updated with 7 root sections for %WS1%/main.tex .
[14:18:06.001][Event] ROOT_FILE_SEARCHED
[14:18:06.001][Event] STRUCTURE_UPDATED
[14:18:06.207][Structure] Structure updated with 7 root sections for %WS1%/main.tex .
[14:18:07.774][Structure][BibTeX] Parse active BibTeX document for AST.
[14:18:07.776][Structure][BibTeX] Parse active BibTeX document for AST.
[14:18:07.781][Structure][BibTeX] Parsed 39 AST items.
[14:18:07.781][Structure] Structure updated with 39 entries for %WS1%/bibliography.bib .
[14:18:07.781][Event] STRUCTURE_UPDATED
[14:18:07.784][Structure][BibTeX] Parsed 39 AST items.
[14:18:07.808][Structure] Structure updated with 39 entries for %WS1%/bibliography.bib .
[14:18:19.360][Structure] Structure updated with 39 entries for %WS1%/bibliography.bib .
[14:18:19.362][Event] STRUCTURE_UPDATED
[14:18:19.401][Structure] Structure updated with 39 entries for %WS1%/bibliography.bib .
Developer Tools Console
Please paste the whole log messages below, not parts of ones. This console logs can sometimes be very important in many cases. To access the log, click Help -> Toggle Developer Tools -> Console.
log.ts:421 INFO Started initializing default profile extensions in extensions installation folder. file:///tmp/ext
log.ts:421 INFO Completed initializing default profile extensions in extensions installation folder. file:///tmp/ext
log.ts:421 INFO [perf] Render performance baseline is 19ms
TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.
Old grammar file: file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/TeX.tmLanguage.json.
New grammar file: file:///tmp/ext/james-yu.latex-workshop-9.13.1/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:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/LaTeX.tmLanguage.json.
New grammar file: file:///tmp/ext/james-yu.latex-workshop-9.13.1/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:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/Bibtex.tmLanguage.json.
New grammar file: file:///tmp/ext/james-yu.latex-workshop-9.13.1/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:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.
New grammar file: file:///tmp/ext/james-yu.latex-workshop-9.13.1/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:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.
New grammar file: file:///tmp/ext/james-yu.latex-workshop-9.13.1/syntax/cpp-grammar-bailout.tmLanguage.json
register @ TMScopeRegistry.ts:46
Anything Else?
Add any other context about the problem below.
in the log i see STRUCTURE_UPDATED when navigating to .bib file but nothing when navigating to .tex file
Pre-checks*
Environment*
The Issue*
Reproduction Steps
Expected Behavior
Logs
LaTeX Workshop Output*
Developer Tools Console
Anything Else?