James-Yu / LaTeX-Workshop

Boost LaTeX typesetting efficiency with preview, compile, autocomplete, colorize, and more.
MIT License
10.66k stars 530 forks source link

Cannot read properties of undefined (reading 'name') #3657

Closed ArneMeier closed 1 year ago

ArneMeier commented 1 year ago

Preliminary questions [Required]

Disable all the other extensions except for LaTeX Workshop, restart VS Code, 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]

I know that a MWE is highly anticipated but I am still in the process to create one. I did not succeed so far, but want to explain the issue. Maybe someone has already an idea. I have quite a large lecture LaTeX project and work with LaTeX Workshop v9.4.5 under VSCode Version: 1.74.3 (Universal) under Mac OS Ventura 13.1 (22C65). It does happen only with this particular large LaTeX project.

The situation is the following. When I freshly start VSCode and hit Option+Cmd+B for build the LaTeX file is correctly build. In the end I got a VSCode error message "Cannot read properties of undefined (reading 'name')". After that I am not any longer able to build the project. Neither the key shortcut nor the green arrow build button works nor the buttons in the LaTeX Workshop extension. I tried reinstallation of VScode (including deleting the "Code" folder in Library and Application Support as well as the .vscode folder. But the same happens.

Any idea is highly appreciated.

To Reproduce

See above.

Expected behavior

See above.

Logs [Required]

Error does not appear in the log but developer logs. See below.

LaTeX Workshop Output [Required]

[20:29:22][Logger] New log placeholder %WS1% registered for /Users/meier/repos/dua/folien/ws22 .
[20:29:22][Config] Configuration for workspace: file://%WS1% .
[20:29:22][Config] editor.acceptSuggestionOnEnter: "on" .
[20:29:22][Config] latex-workshop.bind.enter.key: true .
[20:29:22][Config] latex-workshop.docker.enabled: false .
[20:29:22][Config] latex-workshop.docker.image.latex: "" .
[20:29:22][Config] latex-workshop.hover.preview.mathjax.extensions: [] .
[20:29:22][Config] latex-workshop.intellisense.package.enabled: true .
[20:29:22][Config] latex-workshop.intellisense.update.aggressive.enabled: false .
[20:29:22][Config] latex-workshop.intellisense.update.delay: 1000 .
[20:29:22][Config] latex-workshop.latex.autoBuild.run: "never" .
[20:29:22][Config] latex-workshop.latex.build.forceRecipeUsage: false .
[20:29:22][Config] latex-workshop.latex.outDir: "%DIR%/auxil" .
[20:29:22][Config] latex-workshop.latex.recipes: [
 {
  "name": "latexmk 🔃",
  "tools": [
   "latexmk"
  ]
 },
 {
  "name": "latexmk (latexmkrc)",
  "tools": [
   "latexmk_rconly"
  ]
 },
 {
  "name": "latexmk (lualatex)",
  "tools": [
   "lualatexmk"
  ]
 },
 {
  "name": "pdflatex ➞ bibtex ➞ pdflatex × 2",
  "tools": [
   "pdflatex",
   "bibtex",
   "pdflatex",
   "pdflatex"
  ]
 },
 {
  "name": "Compile Rnw files",
  "tools": [
   "rnw2tex",
   "latexmk"
  ]
 },
 {
  "name": "Compile Jnw files",
  "tools": [
   "jnw2tex",
   "latexmk"
  ]
 }
] .
[20:29:22][Config] latex-workshop.latex.tools: [
 {
  "name": "latexmk",
  "command": "latexmk",
  "args": [
   "-f",
   "-synctex=1",
   "-interaction=nonstopmode",
   "-file-line-error",
   "-shell-escape",
   "-pdf",
   "-outdir=%OUTDIR%",
   "%DOC%"
  ],
  "env": {}
 },
 {
  "name": "lualatexmk",
  "command": "latexmk",
  "args": [
   "-synctex=1",
   "-interaction=nonstopmode",
   "-file-line-error",
   "-lualatex",
   "-outdir=%OUTDIR%",
   "%DOC%"
  ],
  "env": {}
 },
 {
  "name": "latexmk_rconly",
  "command": "latexmk",
  "args": [
   "%DOC%"
  ],
  "env": {}
 },
 {
  "name": "pdflatex",
  "command": "pdflatex",
  "args": [
   "-shell-escape",
   "-synctex=1",
   "-interaction=nonstopmode",
   "-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": {}
 }
] .
[20:29:22][Config] latex-workshop.viewer.pdf.internal.keyboardEvent: "auto" .
[20:29:22][Manager] Set $LATEXWORKSHOP_DOCKER_LATEX: ""
[20:29:22][Server] Creating LaTeX Workshop http and websocket server.
[20:29:22][Server] Server successfully started: {"address":"127.0.0.1","family":"IPv4","port":56039}
[20:29:22][Server] valdOrigin is http://127.0.0.1:56039
[20:29:22][Extension] Initializing LaTeX Workshop.
[20:29:22][Extension] Extension root: /Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5
[20:29:22][Extension] $PATH: /usr/local/opt/openssl@1.1/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/MacGPG2/bin:/opt/X11/bin
[20:29:22][Extension] $SHELL: /bin/bash
[20:29:22][Extension] $LANG: undefined
[20:29:22][Extension] $LC_ALL: undefined
[20:29:22][Extension] process.platform: darwin
[20:29:22][Extension] process.arch: x64
[20:29:22][Extension] vscode.env.appName: Visual Studio Code
[20:29:22][Extension] vscode.env.remoteName: undefined
[20:29:22][Extension] vscode.env.uiKind: 1
[20:29:22][Extension] LaTeX Workshop initialized.
[20:29:22][Format][Bib] Bibtex format config: {"tab":"  ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[20:29:22][] Trigger characters for intellisense of LaTeX documents: ["\\",",","{"]
[20:29:22][Manager] Current workspace folders: ["file://%WS1%"]
[20:29:22][Manager] Found magic root %WS1%/dua-folien.tex from active.
[20:29:22][Manager] Found looped magic root %WS1%/dua-folien.tex .
[20:29:22][Manager] Root file changed: from undefined to %WS1%/dua-folien.tex
[20:29:22][Manager] Start to find all dependencies.
[20:29:22][Manager] Root file languageId: latex
[20:29:22][Cacher][Watcher] Reset.
[20:29:22][Cacher] Adding %WS1%/dua-folien.tex .
[20:29:22][Cacher] Caching %WS1%/dua-folien.tex .
[20:29:22][Cacher] Updated inputs of %WS1%/dua-folien.tex .
[20:29:22][Cacher][Watcher] Watched %WS1%/dua-folien.tex .
[20:29:23][DupLabel] Checking for duplicate labels: %WS1%/dua-folien.tex .
[20:29:23][Cacher] Updated elements of %WS1%/dua-folien.tex .
[20:29:23][Cacher] Bib %WS1%/references.bib from %WS1%/dua-folien.tex .
[20:29:23][Cacher][Bib] File watched %WS1%/references.bib .
[20:29:23][Intelli][Citation] Parsing .bib entries from %WS1%/references.bib
[20:29:23][Intelli][Citation] Parsed 37 bib entries from %WS1%/references.bib .
[20:29:23][Cacher] Updated bibs of %WS1%/dua-folien.tex .
[20:29:23][Cacher] Cached %WS1%/dua-folien.tex .
[20:29:23][Cacher] Parsing .fls %WS1%/auxil/dua-folien.fls .
[20:29:23][Cacher] Adding %WS1%/inhalt.tex .
[20:29:23][Cacher] Found %WS1%/inhalt.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:29:23][Cacher] Caching %WS1%/inhalt.tex .
[20:29:23][Cacher] Updated inputs of %WS1%/inhalt.tex .
[20:29:23][Viewer][Panel] Internal PDF viewer at http://127.0.0.1:56039/viewer.html?file=pdf..ZmlsZSUzQSUyRiUyRiUyRlVzZXJzJTJGbWVpZXIlMkZyZXBvcyUyRmR1YSUyRmZvbGllbiUyRndzMjIlMkZhdXhpbCUyRmR1YS1mb2xpZW4ucGRm .
[20:29:23][Cacher][PDF] Watched file://%WS1%/auxil/dua-folien.pdf .
[20:29:23][Viewer] Open PDF tab for file://%WS1%/auxil/dua-folien.pdf in panel
[20:29:24][DupLabel] Checking for duplicate labels: %WS1%/inhalt.tex .
[20:29:24][Cacher] Updated elements of %WS1%/inhalt.tex .
[20:29:24][Cacher] Updated bibs of %WS1%/inhalt.tex .
[20:29:24][Cacher] Cached %WS1%/inhalt.tex .
[20:29:24][Cacher] Adding %WS1%/graphics/thilogo-schwarzertext.png .
[20:29:24][Cacher] Adding %WS1%/graphics/meier.jpg .
[20:29:24][Cacher] Adding %WS1%/graphics/arne_wordcloud.png .
[20:29:24][Cacher] Adding %WS1%/graphics/dblp.png .
[20:29:24][Cacher] Adding %WS1%/graphics/gscholar.png .
[20:29:24][Cacher] Adding %WS1%/graphics/schachbrett.jpg .
[20:29:24][Cacher] Adding %WS1%/graphics/TutorInnenDua.pdf .
[20:29:24][Cacher] Adding %WS1%/lect_intro.tex .
[20:29:24][Cacher] Found %WS1%/lect_intro.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:29:24][Cacher] Caching %WS1%/lect_intro.tex .
[20:29:24][Cacher] Updated inputs of %WS1%/lect_intro.tex .
[20:29:24][Cacher][Watcher] Watched %WS1%/inhalt.tex .
[20:29:24][Viewer] Handle data type: open
[20:29:24][Server] Preview PDF file: file://%WS1%/auxil/dua-folien.pdf
[20:29:24][Cacher][Watcher] Watched %WS1%/graphics/arne_wordcloud.png .
[20:29:24][Cacher][Watcher] Watched %WS1%/graphics/meier.jpg .
[20:29:24][Cacher][Watcher] Watched %WS1%/graphics/dblp.png .
[20:29:24][Cacher][Watcher] Watched %WS1%/graphics/thilogo-schwarzertext.png .
[20:29:24][Cacher][Watcher] Watched %WS1%/graphics/gscholar.png .
[20:29:24][Cacher][Watcher] Watched %WS1%/graphics/schachbrett.jpg .
[20:29:24][Cacher][Watcher] Watched %WS1%/lect_intro.tex .
[20:29:24][Cacher][Watcher] Watched %WS1%/graphics/TutorInnenDua.pdf .
[20:29:26][DupLabel] Checking for duplicate labels: %WS1%/lect_intro.tex .
[20:29:26][Cacher] Updated elements of %WS1%/lect_intro.tex .
[20:29:26][Cacher] Updated bibs of %WS1%/lect_intro.tex .
[20:29:26][Cacher] Cached %WS1%/lect_intro.tex .
[20:29:26][Cacher] Adding %WS1%/graphics/blubber.tex .
[20:29:26][Cacher] Found %WS1%/graphics/blubber.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:29:26][Cacher] Caching %WS1%/graphics/blubber.tex .
[20:29:26][Cacher] Updated inputs of %WS1%/graphics/blubber.tex .
[20:29:26][Viewer] Handle data type: loaded
[20:29:26][DupLabel] Checking for duplicate labels: %WS1%/graphics/blubber.tex .
[20:29:26][Cacher] Updated elements of %WS1%/graphics/blubber.tex .
[20:29:26][Cacher] Updated bibs of %WS1%/graphics/blubber.tex .
[20:29:26][Cacher] Cached %WS1%/graphics/blubber.tex .
[20:29:26][Cacher] Adding %WS1%/graphics/blubber.pdf .
[20:29:26][Cacher] Adding %WS1%/graphics/Al-Khwarizmi_portrait.jpg .
[20:29:26][Cacher] Adding %WS1%/graphics/savage.jpg .
[20:29:26][Cacher] Adding %WS1%/graphics/knuth.jpg .
[20:29:26][Cacher] Adding %WS1%/graphics/while-until.pdf .
[20:29:26][Cacher] Adding %WS1%/graphics/rossum.jpg .
[20:29:26][Cacher] Adding %WS1%/graphics/python.pdf .
[20:29:26][Cacher] Adding %WS1%/graphics/Paul_Bachmann.jpg .
[20:29:26][Cacher] Adding %WS1%/graphics/Edmund_Landau.jpg .
[20:29:26][Cacher] Adding %WS1%/lect_stablematching.tex .
[20:29:26][Cacher] Found %WS1%/lect_stablematching.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:29:26][Cacher] Caching %WS1%/lect_stablematching.tex .
[20:29:26][Cacher] Updated inputs of %WS1%/lect_stablematching.tex .
[20:29:26][Commander] BUILD command invoked.
[20:29:26][Commander] The document of the active editor: file://%WS1%/dua-folien.tex
[20:29:26][Commander] The languageId of the document: latex
[20:29:26][Manager] Current workspace folders: ["file://%WS1%"]
[20:29:26][Manager] Found magic root %WS1%/dua-folien.tex from active.
[20:29:26][Manager] Found looped magic root %WS1%/dua-folien.tex .
[20:29:26][Manager] Keep using the same root file: %WS1%/dua-folien.tex
[20:29:26][Commander] Building root file: %WS1%/dua-folien.tex
[20:29:26][Builder] Build root file %WS1%/dua-folien.tex
[20:29:26][Builder] outDir: %WS1%/auxil .
[20:29:26][Builder] Found TeX program by magic comment: latexmk.
[20:29:26][Builder] Found TeX options by magic comment: -synctex=1 -interaction=nonstopmode -file-line-error -xelatex -outdir="%OUTDIR%" "%DOC%".
[20:29:26][Builder] Recipe step 1 The command is latexmk:["-synctex=1 -interaction=nonstopmode -file-line-error -xelatex -outdir=\"%WS1%/auxil\" \"%WS1%/dua-folien\""].
[20:29:26][Builder] env: undefined
[20:29:26][Builder] root: %WS1%/dua-folien.tex
[20:29:26][Builder] cwd: %WS1%
[20:29:26][Builder] LaTeX build process spawned with PID 40481.
[20:29:26][Cacher][Watcher] Watched %WS1%/graphics/blubber.tex .
[20:29:27][DupLabel] Checking for duplicate labels: %WS1%/lect_stablematching.tex .
[20:29:27][Cacher] Updated elements of %WS1%/lect_stablematching.tex .
[20:29:27][Cacher] Updated bibs of %WS1%/lect_stablematching.tex .
[20:29:27][Cacher] Cached %WS1%/lect_stablematching.tex .
[20:29:27][Cacher] Adding %WS1%/graphics/gale.jpg .
[20:29:27][Cacher] Adding %WS1%/graphics/shapley.jpg .
[20:29:27][Cacher] Adding %WS1%/lect_BFS.tex .
[20:29:27][Cacher] Found %WS1%/lect_BFS.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:29:27][Cacher] Caching %WS1%/lect_BFS.tex .
[20:29:27][Cacher] Updated inputs of %WS1%/lect_BFS.tex .
[20:29:27][Cacher][Watcher] Watched %WS1%/graphics/rossum.jpg .
[20:29:27][Cacher][Watcher] Watched %WS1%/graphics/Al-Khwarizmi_portrait.jpg .
[20:29:27][Cacher][Watcher] Watched %WS1%/graphics/blubber.pdf .
[20:29:27][Cacher][Watcher] Watched %WS1%/graphics/savage.jpg .
[20:29:27][Cacher][Watcher] Watched %WS1%/graphics/knuth.jpg .
[20:29:27][Cacher][Watcher] Watched %WS1%/graphics/while-until.pdf .
[20:29:27][Cacher][Watcher] Watched %WS1%/graphics/python.pdf .
[20:29:27][Cacher][Watcher] Watched %WS1%/lect_stablematching.tex .
[20:29:27][Cacher][Watcher] Watched %WS1%/graphics/Paul_Bachmann.jpg .
[20:29:27][Cacher][Watcher] Watched %WS1%/graphics/Edmund_Landau.jpg .
[20:29:28][DupLabel] Checking for duplicate labels: %WS1%/lect_BFS.tex .
[20:29:28][Cacher] Updated elements of %WS1%/lect_BFS.tex .
[20:29:28][Cacher] Updated bibs of %WS1%/lect_BFS.tex .
[20:29:28][Cacher] Cached %WS1%/lect_BFS.tex .
[20:29:28][Cacher] Adding %WS1%/graphics/GVH22.pdf .
[20:29:28][Cacher] Adding %WS1%/graphics/euler-br1.pdf .
[20:29:28][Cacher] Adding %WS1%/graphics/euler-br2.pdf .
[20:29:28][Cacher] Adding %WS1%/graphics/binaerbaum.pdf .
[20:29:28][Cacher] Adding %WS1%/lect_DFS.tex .
[20:29:28][Cacher] Found %WS1%/lect_DFS.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:29:28][Cacher] Caching %WS1%/lect_DFS.tex .
[20:29:28][Cacher] Updated inputs of %WS1%/lect_DFS.tex .
[20:29:29][Cacher][Watcher] Watched %WS1%/graphics/shapley.jpg .
[20:29:29][Cacher][Watcher] Watched %WS1%/graphics/gale.jpg .
[20:29:29][Cacher][Watcher] Watched %WS1%/lect_BFS.tex .
[20:29:29][DupLabel] Checking for duplicate labels: %WS1%/lect_DFS.tex .
[20:29:29][Cacher] Updated elements of %WS1%/lect_DFS.tex .
[20:29:29][Cacher] Updated bibs of %WS1%/lect_DFS.tex .
[20:29:29][Cacher] Cached %WS1%/lect_DFS.tex .
[20:29:29][Cacher] Adding %WS1%/graphics/network.png .
[20:29:29][Cacher] Adding %WS1%/graphics/abhgraph-bsc.pdf .
[20:29:29][Cacher] Adding %WS1%/graphics/dijkstra.jpg .
[20:29:29][Cacher] Adding %WS1%/lect_dijkstra.tex .
[20:29:29][Cacher] Found %WS1%/lect_dijkstra.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:29:29][Cacher] Caching %WS1%/lect_dijkstra.tex .
[20:29:29][Cacher] Updated inputs of %WS1%/lect_dijkstra.tex .
[20:29:29][Cacher][Watcher] Watched %WS1%/graphics/euler-br1.pdf .
[20:29:29][Cacher][Watcher] Watched %WS1%/graphics/binaerbaum.pdf .
[20:29:29][Cacher][Watcher] Watched %WS1%/graphics/euler-br2.pdf .
[20:29:29][Cacher][Watcher] Watched %WS1%/lect_DFS.tex .
[20:29:29][Cacher][Watcher] Watched %WS1%/graphics/GVH22.pdf .
[20:29:30][DupLabel] Checking for duplicate labels: %WS1%/lect_dijkstra.tex .
[20:29:30][Cacher] Updated elements of %WS1%/lect_dijkstra.tex .
[20:29:30][Cacher] Updated bibs of %WS1%/lect_dijkstra.tex .
[20:29:30][Cacher] Cached %WS1%/lect_dijkstra.tex .
[20:29:30][Cacher] Adding %WS1%/lect_greedy.tex .
[20:29:30][Cacher] Found %WS1%/lect_greedy.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:29:30][Cacher] Caching %WS1%/lect_greedy.tex .
[20:29:30][Cacher] Updated inputs of %WS1%/lect_greedy.tex .
[20:29:30][Cacher][Watcher] Watched %WS1%/graphics/abhgraph-bsc.pdf .
[20:29:30][Cacher][Watcher] Watched %WS1%/graphics/dijkstra.jpg .
[20:29:30][Cacher][Watcher] Watched %WS1%/lect_dijkstra.tex .
[20:29:30][Cacher][Watcher] Watched %WS1%/graphics/network.png .
[20:29:31][Cacher][Watcher] Watched %WS1%/lect_greedy.tex .
[20:29:59][Parser][TexLog] Logged 266 messages.
[20:29:59][Builder] Finished a step in recipe with PID 40481.
[20:29:59][Builder] Successfully built %WS1%/dua-folien.tex .
[20:29:59][Viewer] Call refreshExistingViewer: {"sourceFile":"%WS1%/dua-folien.tex"}
[20:29:59][Viewer] Refresh PDF viewer: undefined
[20:29:59][Cacher] Parsing .fls %WS1%/auxil/dua-folien.fls .
[20:29:59][Cacher] Adding %WS1%/graphics/jarnik.jpg .
[20:29:59][Cacher] Adding %WS1%/graphics/prim.png .
[20:29:59][Cacher] Adding %WS1%/lect_sort1.tex .
[20:29:59][Cacher] Found %WS1%/lect_sort1.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:29:59][Cacher] Caching %WS1%/lect_sort1.tex .
[20:29:59][Cacher] Updated inputs of %WS1%/lect_sort1.tex .
[20:29:59][Server] Preview PDF file: file://%WS1%/auxil/dua-folien.pdf
[20:29:59][Viewer] Handle data type: loaded
[20:30:00][DupLabel] Checking for duplicate labels: %WS1%/lect_sort1.tex .
[20:30:00][Cacher] Updated elements of %WS1%/lect_sort1.tex .
[20:30:00][Cacher] Updated bibs of %WS1%/lect_sort1.tex .
[20:30:00][Cacher] Cached %WS1%/lect_sort1.tex .
[20:30:00][Cacher] Adding %WS1%/graphics/caesar.jpg .
[20:30:00][Cacher] Adding %WS1%/graphics/neumann.pdf .
[20:30:00][Cacher] Adding %WS1%/lect_sort2.tex .
[20:30:00][Cacher] Found %WS1%/lect_sort2.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:30:00][Cacher] Caching %WS1%/lect_sort2.tex .
[20:30:00][Cacher] Updated inputs of %WS1%/lect_sort2.tex .
[20:30:00][Cacher][Watcher] Watched %WS1%/graphics/jarnik.jpg .
[20:30:00][Cacher][Watcher] Watched %WS1%/graphics/prim.png .
[20:30:00][Cacher][Watcher] Watched %WS1%/lect_sort1.tex .
[20:30:01][DupLabel] Checking for duplicate labels: %WS1%/lect_sort2.tex .
[20:30:01][Cacher] Updated elements of %WS1%/lect_sort2.tex .
[20:30:01][Cacher] Updated bibs of %WS1%/lect_sort2.tex .
[20:30:01][Cacher] Cached %WS1%/lect_sort2.tex .
[20:30:01][Cacher] Adding %WS1%/graphics/hoare.jpg .
[20:30:01][Cacher] Adding %WS1%/graphics/peters.jpg .
[20:30:01][Cacher] Adding %WS1%/lect_suchverfahren.tex .
[20:30:01][Cacher] Found %WS1%/lect_suchverfahren.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:30:01][Cacher] Caching %WS1%/lect_suchverfahren.tex .
[20:30:01][Cacher] Updated inputs of %WS1%/lect_suchverfahren.tex .
[20:30:01][Cacher][Watcher] Watched %WS1%/graphics/caesar.jpg .
[20:30:01][Cacher][Watcher] Watched %WS1%/graphics/neumann.pdf .
[20:30:01][Cacher][Watcher] Watched %WS1%/lect_sort2.tex .
[20:30:01][Cacher][Watcher] Watched %WS1%/graphics/hoare.jpg .
[20:30:01][Cacher][Watcher] Watched %WS1%/lect_suchverfahren.tex .
[20:30:01][Cacher][Watcher] Watched %WS1%/graphics/peters.jpg .
[20:30:03][DupLabel] Checking for duplicate labels: %WS1%/lect_suchverfahren.tex .
[20:30:03][Cacher] Updated elements of %WS1%/lect_suchverfahren.tex .
[20:30:03][Cacher] Updated bibs of %WS1%/lect_suchverfahren.tex .
[20:30:03][Cacher] Cached %WS1%/lect_suchverfahren.tex .
[20:30:03][Cacher] Adding %WS1%/graphics/memento.jpg .
[20:30:03][Cacher] Adding %WS1%/graphics/dvds.jpg .
[20:30:03][Cacher] Adding %WS1%/graphics/seq-suche_ungeordnet.pdf .
[20:30:03][Cacher] Adding %WS1%/graphics/seq-suche.pdf .
[20:30:03][Cacher] Adding %WS1%/graphics/TR.jpg .
[20:30:03][Cacher] Adding %WS1%/graphics/postorder-files.pdf .
[20:30:03][Cacher] Adding %WS1%/graphics/eulerwalk.pdf .
[20:30:03][Cacher] Adding %WS1%/lect_avl.tex .
[20:30:03][Cacher] Found %WS1%/lect_avl.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:30:03][Cacher] Caching %WS1%/lect_avl.tex .
[20:30:03][Cacher] Updated inputs of %WS1%/lect_avl.tex .
[20:30:03][Cacher][Watcher] Watched %WS1%/graphics/seq-suche_ungeordnet.pdf .
[20:30:03][Cacher][Watcher] Watched %WS1%/graphics/seq-suche.pdf .
[20:30:03][Cacher][Watcher] Watched %WS1%/graphics/dvds.jpg .
[20:30:03][Cacher][Watcher] Watched %WS1%/graphics/postorder-files.pdf .
[20:30:03][Cacher][Watcher] Watched %WS1%/lect_avl.tex .
[20:30:03][Cacher][Watcher] Watched %WS1%/graphics/eulerwalk.pdf .
[20:30:03][Cacher][Watcher] Watched %WS1%/graphics/memento.jpg .
[20:30:03][Cacher][Watcher] Watched %WS1%/graphics/TR.jpg .
[20:30:04][DupLabel] Checking for duplicate labels: %WS1%/lect_avl.tex .
[20:30:04][Cacher] Updated elements of %WS1%/lect_avl.tex .
[20:30:04][Cacher] Updated bibs of %WS1%/lect_avl.tex .
[20:30:04][Cacher] Cached %WS1%/lect_avl.tex .
[20:30:04][Cacher] Adding %WS1%/graphics/velsky.jpg .
[20:30:04][Cacher] Adding %WS1%/graphics/landis.jpeg .
[20:30:04][Cacher] Adding %WS1%/graphics/avl-balance.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/avl-ersetzung.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/avl-rebalancierung.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/avl-rebalance-fall1-1.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/avl-rebalance-fall1-2.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/avl-rebalance-fall2-1.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/avl-rebalance-fall2-2.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/avl-entfernen-bsp.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/avl-entfernen-bsp-2.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/avl-entfernen-bsp-3.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/avl-entfernen-bsp-4.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/bayer.jpg .
[20:30:04][Cacher] Adding %WS1%/graphics/guibas.png .
[20:30:04][Cacher] Adding %WS1%/graphics/sedgewick.jpg .
[20:30:04][Cacher] Adding %WS1%/graphics/RB-rotleft.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/RB-fixInsert-1.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/RB-fixInsert-2.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/RB-transplant.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/RB-delete.pdf .
[20:30:04][Cacher] Adding %WS1%/graphics/RB-delete-fix.pdf .
[20:30:04][Cacher] Adding %WS1%/lect_bbaeume.tex .
[20:30:04][Cacher] Found %WS1%/lect_bbaeume.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:30:04][Cacher] Caching %WS1%/lect_bbaeume.tex .
[20:30:04][Cacher] Updated inputs of %WS1%/lect_bbaeume.tex .
[20:30:05][DupLabel] Checking for duplicate labels: %WS1%/lect_bbaeume.tex .
[20:30:05][Cacher] Updated elements of %WS1%/lect_bbaeume.tex .
[20:30:05][Cacher] Updated bibs of %WS1%/lect_bbaeume.tex .
[20:30:05][Cacher] Cached %WS1%/lect_bbaeume.tex .
[20:30:05][Cacher] Adding %WS1%/graphics/b-baeume-moti.pdf .
[20:30:05][Cacher] Adding %WS1%/graphics/b-beispiel.tex .
[20:30:05][Cacher] Found %WS1%/graphics/b-beispiel.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:30:05][Cacher] Caching %WS1%/graphics/b-beispiel.tex .
[20:30:05][Cacher] Updated inputs of %WS1%/graphics/b-beispiel.tex .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/velsky.jpg .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/avl-balance.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/avl-rebalancierung.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/avl-rebalance-fall1-2.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/landis.jpeg .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/avl-rebalance-fall2-1.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/avl-ersetzung.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/avl-rebalance-fall2-2.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/avl-rebalance-fall1-1.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/avl-entfernen-bsp-3.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/avl-entfernen-bsp.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/avl-entfernen-bsp-2.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/avl-entfernen-bsp-4.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/bayer.jpg .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/sedgewick.jpg .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/RB-rotleft.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/guibas.png .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/RB-fixInsert-1.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/RB-fixInsert-2.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/RB-transplant.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/RB-delete.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/RB-delete-fix.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/lect_bbaeume.tex .
[20:30:05][DupLabel] Checking for duplicate labels: %WS1%/graphics/b-beispiel.tex .
[20:30:05][Cacher] Updated elements of %WS1%/graphics/b-beispiel.tex .
[20:30:05][Cacher] Updated bibs of %WS1%/graphics/b-beispiel.tex .
[20:30:05][Cacher] Cached %WS1%/graphics/b-beispiel.tex .
[20:30:05][Cacher] Adding %WS1%/graphics/b-beispiel.pdf .
[20:30:05][Cacher] Adding %WS1%/graphics/b-beispiel-2.tex .
[20:30:05][Cacher] Found %WS1%/graphics/b-beispiel-2.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:30:05][Cacher] Caching %WS1%/graphics/b-beispiel-2.tex .
[20:30:05][Cacher] Updated inputs of %WS1%/graphics/b-beispiel-2.tex .
[20:30:05][DupLabel] Checking for duplicate labels: %WS1%/graphics/b-beispiel-2.tex .
[20:30:05][Cacher] Updated elements of %WS1%/graphics/b-beispiel-2.tex .
[20:30:05][Cacher] Updated bibs of %WS1%/graphics/b-beispiel-2.tex .
[20:30:05][Cacher] Cached %WS1%/graphics/b-beispiel-2.tex .
[20:30:05][Cacher] Adding %WS1%/graphics/b-beispiel-2.pdf .
[20:30:05][Cacher] Adding %WS1%/graphics/B-insert.pdf .
[20:30:05][Cacher] Adding %WS1%/graphics/B-delete.pdf .
[20:30:05][Cacher] Adding %WS1%/graphics/handmarke.jpg .
[20:30:05][Cacher] Adding %WS1%/lect_hashing.tex .
[20:30:05][Cacher] Found %WS1%/lect_hashing.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:30:05][Cacher] Caching %WS1%/lect_hashing.tex .
[20:30:05][Cacher] Updated inputs of %WS1%/lect_hashing.tex .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/b-baeume-moti.pdf .
[20:30:05][Cacher][Watcher] Watched %WS1%/graphics/b-beispiel.tex .
[20:30:06][DupLabel] Checking for duplicate labels: %WS1%/lect_hashing.tex .
[20:30:06][Cacher] Updated elements of %WS1%/lect_hashing.tex .
[20:30:06][Cacher] Updated bibs of %WS1%/lect_hashing.tex .
[20:30:06][Cacher] Cached %WS1%/lect_hashing.tex .
[20:30:06][Cacher] Adding %WS1%/graphics/goldenratio.pdf .
[20:30:06][Cacher] Adding %WS1%/graphics/hashing-linkedlist.pdf .
[20:30:06][Cacher] Adding %WS1%/graphics/hashing-linkedlist-insert.pdf .
[20:30:06][Cacher] Adding %WS1%/graphics/hashing-linkedlist-remove-1.tex .
[20:30:06][Cacher] Found %WS1%/graphics/hashing-linkedlist-remove-1.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:30:06][Cacher] Caching %WS1%/graphics/hashing-linkedlist-remove-1.tex .
[20:30:06][Cacher] Updated inputs of %WS1%/graphics/hashing-linkedlist-remove-1.tex .
[20:30:06][Cacher][Watcher] Watched %WS1%/graphics/b-beispiel-2.pdf .
[20:30:06][Cacher][Watcher] Watched %WS1%/graphics/B-delete.pdf .
[20:30:06][Cacher][Watcher] Watched %WS1%/graphics/handmarke.jpg .
[20:30:06][Cacher][Watcher] Watched %WS1%/graphics/b-beispiel.pdf .
[20:30:06][Cacher][Watcher] Watched %WS1%/graphics/b-beispiel-2.tex .
[20:30:06][Cacher][Watcher] Watched %WS1%/lect_hashing.tex .
[20:30:06][Cacher][Watcher] Watched %WS1%/graphics/B-insert.pdf .
[20:30:06][DupLabel] Checking for duplicate labels: %WS1%/graphics/hashing-linkedlist-remove-1.tex .
[20:30:06][Cacher] Updated elements of %WS1%/graphics/hashing-linkedlist-remove-1.tex .
[20:30:06][Cacher] Updated bibs of %WS1%/graphics/hashing-linkedlist-remove-1.tex .
[20:30:06][Cacher] Cached %WS1%/graphics/hashing-linkedlist-remove-1.tex .
[20:30:06][Cacher] Adding %WS1%/graphics/hashing-linkedlist-remove-1.pdf .
[20:30:06][Cacher] Adding %WS1%/graphics/hashing-linkedlist-remove-2.tex .
[20:30:06][Cacher] Found %WS1%/graphics/hashing-linkedlist-remove-2.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:30:06][Cacher] Caching %WS1%/graphics/hashing-linkedlist-remove-2.tex .
[20:30:06][Cacher] Updated inputs of %WS1%/graphics/hashing-linkedlist-remove-2.tex .
[20:30:06][DupLabel] Checking for duplicate labels: %WS1%/graphics/hashing-linkedlist-remove-2.tex .
[20:30:06][Cacher] Updated elements of %WS1%/graphics/hashing-linkedlist-remove-2.tex .
[20:30:06][Cacher] Updated bibs of %WS1%/graphics/hashing-linkedlist-remove-2.tex .
[20:30:06][Cacher] Cached %WS1%/graphics/hashing-linkedlist-remove-2.tex .
[20:30:06][Cacher] Adding %WS1%/graphics/hashing-linkedlist-remove-2.pdf .
[20:30:06][Cacher] Adding %WS1%/graphics/brokenbridge.jpg .
[20:30:06][Cacher] Adding %WS1%/graphics/hashing-laufzeit-vergleich.tex .
[20:30:06][Cacher] Found %WS1%/graphics/hashing-laufzeit-vergleich.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:30:06][Cacher] Caching %WS1%/graphics/hashing-laufzeit-vergleich.tex .
[20:30:06][Cacher] Updated inputs of %WS1%/graphics/hashing-laufzeit-vergleich.tex .
[20:30:06][DupLabel] Checking for duplicate labels: %WS1%/graphics/hashing-laufzeit-vergleich.tex .
[20:30:06][Cacher] Updated elements of %WS1%/graphics/hashing-laufzeit-vergleich.tex .
[20:30:06][Cacher] Updated bibs of %WS1%/graphics/hashing-laufzeit-vergleich.tex .
[20:30:06][Cacher] Cached %WS1%/graphics/hashing-laufzeit-vergleich.tex .
[20:30:06][Cacher] Adding %WS1%/graphics/hashing-laufzeit-vergleich.pdf .
[20:30:06][Cacher] Adding %WS1%/lect_dynprog.tex .
[20:30:06][Cacher] Found %WS1%/lect_dynprog.tex from .fls %WS1%/auxil/dua-folien.fls .
[20:30:06][Cacher] Caching %WS1%/lect_dynprog.tex .
[20:30:06][Cacher] Updated inputs of %WS1%/lect_dynprog.tex .
[20:30:06][Cacher][Watcher] Watched %WS1%/graphics/hashing-linkedlist-insert.pdf .
[20:30:06][Cacher][Watcher] Watched %WS1%/graphics/goldenratio.pdf .
[20:30:06][Cacher][Watcher] Watched %WS1%/graphics/hashing-linkedlist-remove-1.tex .
[20:30:06][Cacher][Watcher] Watched %WS1%/graphics/hashing-linkedlist.pdf .
[20:30:06][Cacher][Watcher] Watched %WS1%/graphics/hashing-linkedlist-remove-2.tex .
[20:30:06][Cacher][Watcher] Watched %WS1%/graphics/hashing-linkedlist-remove-1.pdf .
[20:30:07][Cacher][Watcher] Watched %WS1%/lect_dynprog.tex .
[20:30:07][Cacher][Watcher] Watched %WS1%/graphics/brokenbridge.jpg .
[20:30:07][Cacher][Watcher] Watched %WS1%/graphics/hashing-linkedlist-remove-2.pdf .
[20:30:07][Cacher][Watcher] Watched %WS1%/graphics/hashing-laufzeit-vergleich.tex .
[20:30:07][Cacher][Watcher] Watched %WS1%/graphics/hashing-laufzeit-vergleich.pdf .
[20:45:39][Commander] BUILD command invoked.
[20:45:39][Commander] The document of the active editor: file://%WS1%/dua-folien.tex
[20:45:39][Commander] The languageId of the document: latex
[20:45:39][Manager] Current workspace folders: ["file://%WS1%"]
[20:45:39][Manager] Found magic root %WS1%/dua-folien.tex from active.
[20:45:39][Manager] Found looped magic root %WS1%/dua-folien.tex .
[20:45:39][Manager] Keep using the same root file: %WS1%/dua-folien.tex
[20:45:39][Commander] Building root file: %WS1%/dua-folien.tex
[20:45:39][Builder] Build root file %WS1%/dua-folien.tex
[20:45:39][Builder] outDir: %WS1%/auxil .
[20:45:39][Builder] Found TeX program by magic comment: latexmk.
[20:45:39][Builder] Found TeX options by magic comment: -synctex=1 -interaction=nonstopmode -file-line-error -xelatex -outdir="%OUTDIR%" "%DOC%".
[20:45:41][Commander] BUILD command invoked.
[20:45:41][Commander] The document of the active editor: file://%WS1%/dua-folien.tex
[20:45:41][Commander] The languageId of the document: latex
[20:45:41][Manager] Current workspace folders: ["file://%WS1%"]
[20:45:41][Manager] Found magic root %WS1%/dua-folien.tex from active.
[20:45:41][Manager] Found looped magic root %WS1%/dua-folien.tex .
[20:45:41][Manager] Keep using the same root file: %WS1%/dua-folien.tex
[20:45:41][Commander] Building root file: %WS1%/dua-folien.tex
[20:45:41][Builder] Build root file %WS1%/dua-folien.tex
[20:45:41][Builder] outDir: %WS1%/auxil .
[20:45:41][Builder] Found TeX program by magic comment: latexmk.
[20:45:41][Builder] Found TeX options by magic comment: -synctex=1 -interaction=nonstopmode -file-line-error -xelatex -outdir="%OUTDIR%" "%DOC%".
[20:53:56][Manager] Current workspace folders: ["file://%WS1%"]
[20:53:56][Manager] Found magic root %WS1%/dua-folien.tex from active.
[20:53:56][Manager] Found looped magic root %WS1%/dua-folien.tex .
[20:53:56][Manager] Keep using the same root file: %WS1%/dua-folien.tex
[20:54:47][Commander] ACTIONS command invoked.
[20:54:54][Commander] SHOWLOG command invoked: default

Developer Tools Console [Required]

To access the log, click 'help' -> 'Toggle Developer Tools' -> 'Console'. Paste anything suspicious.

mainThreadExtensionService.ts:79 [[object Object]]Cannot read properties of undefined (reading 'name')
$onExtensionRuntimeError @ mainThreadExtensionService.ts:79
mainThreadExtensionService.ts:80 TypeError: Cannot read properties of undefined (reading 'name')
    at CommandFinder.getCmdFromNode (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:108:85)
    at vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:65:46
    at Array.forEach (<anonymous>)
    at CommandFinder.getCmdFromNodeArray (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:62:15)
    at CommandFinder.getCmdFromNode (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:147:46)
    at vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:65:46
    at Array.forEach (<anonymous>)
    at CommandFinder.getCmdFromNodeArray (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:62:15)
    at Command.update (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/command.js:200:68)
    at Cacher.updateElements (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/components/cacher.js:147:34)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Cacher.refreshCache (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/components/cacher.js:104:9)
    at async Cacher.loadFlsFile (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/components/cacher.js:223:17)
    at async Manager.findRoot (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/components/manager.js:267:17)
$onExtensionRuntimeError @ mainThreadExtensionService.ts:80
viewer.js:2246 PDF 7d6ed2b7abe433486e9d65890eaf7d27 [1.5 xdvipdfmx (20211117) / LaTeX with Beamer class] (PDF.js: 3.1.81 [0766898d5])
log.ts:316   ERR Cannot read properties of undefined (reading 'startsWith'): TypeError: Cannot read properties of undefined (reading 'startsWith')
    at /Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/hover.js:96:29
    at Array.forEach (<anonymous>)
    at /Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/hover.js:94:24
    at Array.forEach (<anonymous>)
    at HoverProvider.provideHoverOnCommand (/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/hover.js:89:36)
    at HoverProvider.provideHover (/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/hover.js:59:25)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async l.provideHover (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:96:35165)

Screenshots

Not applicable

Desktop [Required]

Please write exact version numbers. Please don't write latest instead of exact numbers.

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

Additional context

-

James-Yu commented 1 year ago

This bug is related to the \newcommand section of your document. Can you please share that part if it's not secret?

James-Yu commented 1 year ago

abab852ebe3fbc9ec7db9827353ed3c3bd9b46db is just a temp fix based on speculation. It will definitely help identifying the issue if you may share your use of \newcommand and its variants @ArneMeier .

ArneMeier commented 1 year ago

Here are all \newcommand macros in my document that could be causing the issue (the others are as well in another document which compiles without the error):

\newcommand{\marginnote}[1]{\footnote{#1}} \newcommand{\interframetext}[2]{} \renewcommand*{\bibfont}{\scriptsize} \newcommand{\partinput}[1]{\input{#1.tex}}

ArneMeier commented 1 year ago

I modified by myself now the file ~/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js as you suggested in abab852. But now I get a different error message: "latexParser is not defined". Here the log:

console.ts:137 [Extension Host] rejected promise not handled within 1 second: ReferenceError: latexParser is not defined E @ console.ts:137 console.ts:137 [Extension Host] stack trace: ReferenceError: latexParser is not defined at CommandFinder.getCmdFromNode (/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:106:26) at /Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:65:46 at Array.forEach () at CommandFinder.getCmdFromNodeArray (/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:62:15) at Command.update (/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/command.js:200:68) at Cacher.updateElements (/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/components/cacher.js:147:34) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async Cacher.refreshCache (/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/components/cacher.js:104:9) at async Manager.findRoot (/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/components/manager.js:264:17) E @ console.ts:137 mainThreadExtensionService.ts:79 [[object Object]]latexParser is not defined $onExtensionRuntimeError @ mainThreadExtensionService.ts:79 mainThreadExtensionService.ts:80 ReferenceError: latexParser is not defined at CommandFinder.getCmdFromNode (/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:106:26) at /Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:65:46 at Array.forEach () at CommandFinder.getCmdFromNodeArray (/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:62:15) at Command.update (/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/command.js:200:68) at Cacher.updateElements (/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/components/cacher.js:147:34) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async Cacher.refreshCache (/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/components/cacher.js:104:9) at async Manager.findRoot (/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/components/manager.js:264:17) $onExtensionRuntimeError @ mainThreadExtensionService.ts:80

James-Yu commented 1 year ago

I don't think the newcommands provided above will cause the bug before the patch, but anyway the patch is good.

You can find a packaged artifact and test if it works from https://github.com/James-Yu/LaTeX-Workshop/actions/runs/3965924791 .

ArneMeier commented 1 year ago

Sorry, but how do I use that now?! :)

James-Yu commented 1 year ago

In the link above, you may find a section at the bottom like this:

image

Click on latex-workshop, you get a zip, unzip to get a .vsix file, install the file in vscode (Extension tab), reload vscode and see if the problem resolved.

ArneMeier commented 1 year ago

Thanks for explaining. The bug remains: Cannot read properties of undefined (reading 'name')

mainThreadExtensionService.ts:79 [[object Object]]Cannot read properties of undefined (reading 'name') $onExtensionRuntimeError @ mainThreadExtensionService.ts:79 mainThreadExtensionService.ts:80 TypeError: Cannot read properties of undefined (reading 'name') at CommandFinder.getCmdFromNode (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:108:85) at vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:65:46 at Array.forEach () at CommandFinder.getCmdFromNodeArray (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:62:15) at CommandFinder.getCmdFromNode (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:147:46) at vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:65:46 at Array.forEach () at CommandFinder.getCmdFromNodeArray (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/commandlib/commandfinder.js:62:15) at Command.update (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/providers/completer/command.js:196:68) at Cacher.updateElements (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/components/cacher.js:175:34) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async Cacher.refreshCache (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/components/cacher.js:104:9) at async Cacher.loadFlsFile (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/components/cacher.js:251:17) at async Manager.findRoot (vscode-file://vscode-app/Users/meier/.vscode/extensions/james-yu.latex-workshop-9.4.5/out/src/components/manager.js:263:17)

James-Yu commented 1 year ago

I don't understand why this happens. I'm afraid a minimal working example is required.

ArneMeier commented 1 year ago

I am working on a MWE. It is super weird. I consecutively delete stuff until the error appears no more then I copy the stuff back in when it did not compile without error. But then the errors does not appear again! Then I copy further stuff in until the error re-appears. Need a bit more time. But I am working on that.

ArneMeier commented 1 year ago

Okay, I arrived at the following MWE to reproduce the bug. Anything I further cut or modify will remove the appearance of the bug. Archiv.zip

James-Yu commented 1 year ago

Here it goes. The package is here: https://github.com/James-Yu/LaTeX-Workshop/actions/runs/3972999575

Thank you so much for the minimal working example! The bug won't be uncovered without your help @ArneMeier

ArneMeier commented 1 year ago

Awesome! Great that you were able to fix it! :) So I after installing your patch, future updates will come as usual, so that I do not have to do anything, right?

James-Yu commented 1 year ago

Right. You have a custom build of 9.4.5, which will auto update to later versions.