James-Yu / LaTeX-Workshop

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

The symbol bar displays an error #4046

Closed Saunak626 closed 8 months ago

Saunak626 commented 1 year ago

image I am experiencing this situation on the win10 system, please how should I fix it

James-Yu commented 1 year ago

This is not a new problem. However, unless a reliable reproducing procedure can be figured, I cannot debug on my side.

Saunak626 commented 1 year ago

This is not a new problem. However, unless a reliable reproducing procedure can be figured, I cannot debug on my side.

I don't know how to output the console logs, but I found that version 8.21.1 does not have this bug, and versions after 8.22.0 do. Could you please analyze the difference between the two versions?

bug2

James-Yu commented 1 year ago

Thanks for narrowing down to versions. Will come back later.

James-Yu commented 9 months ago

Returned to this issue, found it much more complicated than I thought. As I cannot reproduce the bug, I may need your help on inspecting the bug behavior @Saunak626 :

Saunak626 commented 9 months ago

2024-01-05_23-07-30 Hello. I'm not quite sure if versions after 8.21.1 require other related dependencies that need to be added. In my system, later versions of the symbol toolbar were not loaded at all, just a bunch of garbled characters with no buttons to manipulate.

Saunak626 commented 9 months ago

2024-01-05_23-23-42

My other Windows 10 computer also didn't display the toolbar properly, but the bug was different and it showed an error: Unable to insert symbol, Error: TextEditor#insertSnippet not possible on closed editors

James-Yu commented 9 months ago

No, I mean for example, input an $a$ in your LaTeX document, move mouse over the char $, and there should be a pop up. If no, the log messages may help.

Saunak626 commented 9 months ago

No, I mean for example, input an $a$ in your LaTeX document, move mouse over the char $, and there should be a pop up. If no, the log messages may help.

image like this?

James-Yu commented 8 months ago

image like this?

Thanks for the response.

Saunak626 commented 8 months ago

image like this?

Thanks for the response.

  • For the TextEditor#insertSnippet issue, there was a patch fixing that. Can you confirm that the issue has gone?
  • For the garbled output in one of your computers, can you provide more information regarding the network configuration if it is different from the other computers that work fine with the panel?

image Doesn't seem to change in my usage environment. I don't quite understand what the network configuration you're talking about. Can you take a screenshot for demonstration? This may be related to the time zone of the system?

James-Yu commented 8 months ago

Does clicking on these links in blue properly injects snippets?

James-Yu commented 8 months ago

In addition to above, can you please try the package in https://github.com/James-Yu/LaTeX-Workshop/actions/runs/7904387533 and provide the extension log?

Saunak626 commented 8 months ago

Does clicking on these links in blue properly injects snippets? bug_2024-02-15_11-49-17

I use latex-workshop-9.18.1.vsix. Click without any response

Saunak626 commented 8 months ago

In addition to above, can you please try the package in https://github.com/James-Yu/LaTeX-Workshop/actions/runs/7904387533 and provide the extension log?

image

extensionTelemetry.log only this 2024-02-15 11:57:33.421 [info] Below are logs for extension telemetry events sent to the telemetry output channel API once the log level is set to trace. 2024-02-15 11:57:33.421 [info] ===========================================================

James-Yu commented 8 months ago

By extension log, it is in the log panel.

James-Yu commented 8 months ago

What I am looking for is something in the format %VSCODE_RES% = some_path .

Saunak626 commented 8 months ago

By extension log, it is in the log panel. Is this log panel?

image

Not quite sure where the file you are talking about. Can you provide an example of a screenshot?

James-Yu commented 8 months ago

You have found it. Paste all log messages after you have opened the snippet panel.

Saunak626 commented 8 months ago

You have found it. Paste all log messages after you have opened the snippet panel.

[13:22:36.997][Logger] New log placeholder %WS1% registered for c:\Users\shiwq\Desktop\IEEEtran . [13:22:36.997][Extension] Initializing LaTeX Workshop. [13:22:39.075][Build][Recipe] Set $LATEXWORKSHOP_DOCKERLATEX: "" [13:22:39.713][Server] Creating LaTeX Workshop http and websocket server. [13:22:40.218][Format][Bib] Bibtex format config: {"tab":" ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]} [13:22:40.780][Server] Server successfully started: {"address":"127.0.0.1","family":"IPv4","port":55224} . [13:22:40.837][Extension] Extension root: C:\Users\wq.vscode\extensions\james-yu.latex-workshop-9.18.1 [13:22:40.838][Extension] $PATH: C:\Program Files (x86)\Razer Chroma SDK\bin;C:\Program Files\Razer Chroma SDK\bin;C:\Program Files (x86)\Razer\ChromaBroadcast\bin;C:\Program Files\Razer\ChromaBroadcast\bin;C:\Program Files\Google\Chrome\Application;C:\Program Files\Common Files\Oracle\Java\javapath;D:\VMware\bin\;C:\Windows;C:\Windows\system32;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\mingw64\bin;C:\dev\vcpkg;E:\Microsoft VS Code;E:\Microsoft VS Code\bin;E:\Matlab R2021b\bin;E:\Matlab_ R2021b\runtime\win64;D:\nodejs\;C:\ProgramData\chocolatey\bin;C:\Program Files\dotnet\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Pandoc\;C:\Program Files\MiKTeX\miktex\bin\x64\;C:\Program Files (x86)\PDFtk Server\bin\;D:\Anaconda;D:\Anaconda\Scripts;D:\Anaconda\Library\bin;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\Tools\Binn\;C:\Program Files\Microsoft SQL Server\150\DTS\Binn\;D:\Espanso;E:\Microsoft VS Code\bin;C:\mingw64\bin;C:\Users\shiwq\AppData\Roaming\npm;D:\PyCharm 2023.2.1\bin;C:\Program Files\Pandoc;C:\Program Files\Git\usr\bin;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;D:\Espanso;E:\Microsoft VS Code\bin;C:\mingw64\bin;C:\Users\shiwq\AppData\Roaming\npm;D:\PyCharm 2023.2.1\bin;;C:\Program Files\Pandoc; [13:22:40.838][Extension] $SHELL: undefined [13:22:40.838][Extension] $LANG: undefined [13:22:40.838][Extension] $LC_ALL: undefined [13:22:40.838][Extension] process.platform: win32 [13:22:40.838][Extension] process.arch: x64 [13:22:40.838][Extension] vscode.env.appName: Visual Studio Code [13:22:40.838][Extension] vscode.env.remoteName: undefined [13:22:40.839][Extension] vscode.env.uiKind: 1 [13:22:40.841][Config] latex-workshop.latex.recipes: [{"name":"xelatex","tools":["xelatex"]},{"name":"pdflatex","tools":["pdflatex"]},{"name":"xelatex->bibtex->xelatex2","tools":["xelatex","bibtex","xelatex","xelatex"]},{"name":"pdflatex->bibtex->pdflatex2","tools":["pdflatex","bibtex","pdflatex","pdflatex"]}] . [13:22:40.841][Config] latex-workshop.latex.recipe.default: "lastUsed" . [13:22:40.842][Config] latex-workshop.latex.tools: [{"name":"pdflatex","command":"pdflatex","args":["-synctex=1","-interaction=nonstopmode","-file-line-error","%DOCFILE%"]},{"name":"xelatex","command":"xelatex","args":["-synctex=1","-interaction=nonstopmode","-file-line-error","%DOCFILE%"]},{"name":"bibtex","command":"bibtex","args":["%DOCFILE%"]}] . [13:22:40.847][Config] latex-workshop.latex.clean.fileTypes: [".aux",".bbl",".blg",".idx",".ind",".lof",".lot",".out",".toc",".acn",".acr",".alg",".glg",".glo",".gls",".ist",".fls",".log","*.fdb_latexmk"] . [13:22:40.850][Config] latex-workshop.view.pdf.viewer: "external" . [13:22:40.850][Config] latex-workshop.view.pdf.ref.viewer: "external" . [13:22:40.851][Config] latex-workshop.view.pdf.internal.synctex.keybinding: "double-click" . [13:22:40.851][Config] latex-workshop.view.pdf.external.viewer.command: "D:/SumatraPDF/SumatraPDF.exe" . [13:22:40.852][Config] latex-workshop.view.pdf.external.viewer.args: ["-forward-search","%TEX%","%LINE%","-reuse-instance","-inverse-search","code.cmd -r -g \"%f\":%l","%PDF%"] . [13:22:40.852][Config] latex-workshop.view.pdf.external.synctex.command: "D:/SumatraPDF/SumatraPDF.exe" . [13:22:40.852][Config] latex-workshop.view.pdf.external.synctex.args: ["-forward-search","%TEX%","%LINE%","-reuse-instance","-inverse-search","\"E:/Microsoft VS Code/Code.exe\" \"E:/Microsoft VS Code/resources/app/out/cli.js\" -gr %f:%l","%PDF%"] . [13:22:40.873][Config] latex-workshop.showContextMenu: true . [13:22:40.892][Extension] Trigger characters for intellisense of LaTeX documents: ["\",",","{"] [13:22:40.894][Root] Current workspace folders: ["file:///c:/Users/shiwq/Desktop/IEEEtran"] [13:22:40.894][Extension] LaTeX Workshop initialized. [13:22:40.895][Root] Found root file from active editor: %WS1%\bare_adv.tex [13:22:40.895][Root] Root file changed: from %WS1%\bare_adv.tex to %WS1%\bare_adv.tex, langID latex . Refresh dependencies [13:22:40.895][Event] ROOT_FILE_CHANGED: "c:\Users\shiwq\Desktop\IEEEtran\bare_adv.tex" [13:22:40.895][Cacher][Watcher] Reset. [13:22:40.896][Cacher][Watcher] Reset. [13:22:40.896][Cacher][Watcher] Reset. [13:22:40.897][Cacher] Adding %WS1%\bare_adv.tex . [13:22:40.898][Cacher][Watcher] Watched %WS1%\bare_adv.tex with a new watcher on %WS1% . [13:22:40.899][Event] FILE_WATCHED: "c:\Users\shiwq\Desktop\IEEEtran\bare_adv.tex" [13:22:40.900][Cacher] Caching %WS1%\bare_adv.tex . [13:22:40.901][Cacher] Updated inputs of %WS1%\bare_adv.tex . [13:22:40.901][Cacher] Parse LaTeX AST: %WS1%\bare_adv.tex . [13:22:40.901][Event] ROOT_FILE_SEARCHED [13:22:40.925][Server] valdOrigin is http://127.0.0.1:55224 [13:22:45.205][Cacher] Parsed LaTeX AST: %WS1%\bare_adv.tex . [13:22:45.205][File] Calling kpsewhich to resolve IEEEtran.cls . [13:22:45.863][Cacher] Updated elements in 657.74 ms: %WS1%\bare_adv.tex . [13:22:45.863][Event] FILE_PARSED: "c:\Users\shiwq\Desktop\IEEEtran\bare_adv.tex" [13:22:45.866][Structure] Structure force updated with 0 root sections for %WS1%\bare_adv.tex . [13:22:45.867][Event] STRUCTURE_UPDATED [13:22:59.935][Commander] SHOWLOG command invoked: default

James-Yu commented 8 months ago

Are you using the package in the link above?

James-Yu commented 8 months ago

e4e48b1a05e4e4f208048b0ef68cdc6d99e2c5bf

Saunak626 commented 7 months ago

Quote reply

Thanks, the issue has been fixed