James-Yu / LaTeX-Workshop

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

PDF viewer do not display CJK characters on WSL #4089

Closed u-sho closed 10 months ago

u-sho commented 10 months ago

Pre-checks*

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

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

The Issue*

Reproduction Steps

  1. the above PDF, LaTeX code, and, build settings https://github.com/u-sho/cat-food/tree/8f8e13a070e42e30ad9ed93148142412de91cead/latex-workshop

Expected Behavior

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.

[04:21:41.788][Logger] New log placeholder %WS1% registered for /home/u-sho/github.com/u-sho/mokusan .
[04:21:41.788][Server] Creating LaTeX Workshop http and websocket server.
[04:21:41.867][Server] Server successfully started: {"address":"127.0.0.1","family":"IPv4","port":39065} .
[04:21:41.955][Extension] Initializing LaTeX Workshop.
[04:21:41.955][Extension] Extension root: /home/u-sho/.vscode-server/extensions/james-yu.latex-workshop-9.15.3
[04:21:41.956][Extension] $PATH: /home/u-sho/.vscode-server/bin/af28b32d7e553898b2a91af498b1fb666fdebe0c/bin/remote-cli:/home/u-sho/.local/share/jdk-20.0.1/bin:/usr/local/texlive/2023/bin/x86_64-linux:/home/u-sho/.local/share/volta/bin:/home/u-sho/.local/share/rye/shims:/home/u-sho/.local/share/perl/bin:/home/u-sho/.local/share/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/Oculus/Support/oculus-runtime:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files/dotnet/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/PowerShell/7/:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/Users/u-sho/AppData/Local/Programs/Python/Launcher/:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files/PowerShell/7/:/mnt/c/Users/u-sho/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/u-sho/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/u-sho/AppData/Local/Programs/oh-my-posh/bin:/mnt/c/Users/u-sho/AppData/Local/Programs/oh-my-posh/themes:/mnt/c/baduk/LizzieYZY/jre/java11/bin:/mnt/c/Users/u-sho/AppData/Local/Programs/Hyper/resources/bin:/mnt/c/Users/u-sho/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/u-sho/AppData/Local/JetBrains/Toolbox/scripts:/snap/bin
[04:21:41.956][Extension] $SHELL: /bin/bash
[04:21:41.956][Extension] $LANG: C.UTF-8
[04:21:41.956][Extension] $LC_ALL: undefined
[04:21:41.956][Extension] process.platform: linux
[04:21:41.956][Extension] process.arch: x64
[04:21:41.957][Extension] vscode.env.appName: Visual Studio Code
[04:21:41.957][Extension] vscode.env.remoteName: wsl
[04:21:41.957][Extension] vscode.env.uiKind: 1
[04:21:41.964]latex-workshop.latex.recipes: [{"name":"latexmk 🔃","tools":["latexmk"]}] .
[04:21:41.965]latex-workshop.latex.tools: [{"name":"latexmk","command":"latexmk","args":["-e","$latex=q/uplatex -kanji=utf8 -no-guess-input-enc -synctex=1 -interaction=nonstopmode -file-line-error %S/","-e","$bibtex=q/upbibtex %B/","-e","$biber=q/biber --bblencoding=utf8 -u -U --output_safechars %B/","-e","$makeindex=q/upmendex -o %D %S/","-e","$dvipdf=q/dvipdfmx -o %D %S/","-e","$ENV{'TEXINPUTS'}='../packages:' . $ENV{'TEXINPUTS'}","-norc","-gg","-pdfdvi","%DOC%"]}] .
[04:21:41.970]latex-workshop.latex.autoBuild.run: "onSave" .
[04:21:41.970]latex-workshop.latex.autoBuild.cleanAndRetry.enabled: false .
[04:21:41.971]latex-workshop.latex.autoClean.run: "onBuilt" .
[04:21:41.972]latex-workshop.latex.clean.fileTypes: ["*.acn","*.acr","*.alg","*.aux","*.bbl","*.blg","*.dvi","*.fdb_latexmk","*.fls","*.glg","*.glo","*.gls","*.idx","*.ind","*.lof","*.log","*.lot","*.nav","*.out","*.toc","*.snm","*.synctex","*.synctex(busy)","*.synctex.gz(busy)","*.vrb"] .
[04:21:41.978]latex-workshop.view.pdf.color.light.pageColorsForeground: "black" .
[04:21:41.979]latex-workshop.view.pdf.color.light.pageColorsBackground: "white" .
[04:21:41.979]latex-workshop.view.pdf.color.light.backgroundColor: "#f8f8f8" .
[04:21:41.980]latex-workshop.view.pdf.color.light.pageBorderColor: "lightgray" .
[04:21:41.990]latex-workshop.intellisense.command.user: {"label{}":"lavel{${1|eq,tb,fg,ch,sec,sub|}:$2}$0","ref{}":"lavel{${1|eq,tb,fg,ch,sec,sub|}:$2}$0"} .
[04:21:41.997]latex-workshop.intellisense.package.dirs: ["./packages"] .
[04:21:42.008][Extension] LaTeX Workshop initialized.
[04:21:42.011][Format][Bib] Bibtex format config: {"tab":"  ","case":"lowercase","left":"{","right":"}","trailingComma":false,"sort":["key"],"alignOnEqual":true,"sortFields":false,"fieldsOrder":[],"firstEntries":["string","xdata"]}
[04:21:42.013][Extension] Trigger characters for intellisense of LaTeX documents: ["\\",",","{"]
[04:21:42.015][Root] Current workspace folders: ["file://%WS1%"]
[04:21:42.016][Root] Current workspaceRootDir: file://%WS1% .
[04:21:42.017][Server] valdOrigin is http://127.0.0.1:39065
[04:21:42.454][Viewer][Panel] Internal PDF viewer at http://127.0.0.1:39065/viewer.html?file=pdf..ZmlsZSUzQSUyRiUyRiUyRmhvbWUlMkZ1LXNobyUyRmdpdGh1Yi5jb20lMkZ1LXNobyUyRm1va3VzYW4lMkZkb2NzJTJGdGVzdC5wZGY .
[04:21:42.456][Cacher][Watcher] Watched %WS1%/docs/test.pdf with a new watcher on %WS1%/docs .
[04:21:42.456][Event] FILE_WATCHED: "%WS1%/docs/test.pdf"
[04:21:43.172][Viewer] Handle data type: open
[04:21:43.206][Root] Found files that might be root, choose the first one: %WS1%/docs/test.tex,%WS1%/docs/sampleArticle.tex,%WS1%/docs/日本ルールにおけるヌキの目数計算.tex .
[04:21:43.207][Root] Root file changed: from %WS1%/docs/test.tex to %WS1%/docs/test.tex, langID latex . Refresh dependencies
[04:21:43.207][Event] ROOT_FILE_CHANGED: "%WS1%/docs/test.tex"
[04:21:43.207][Cacher][Watcher] Reset.
[04:21:43.208][Cacher][Watcher] Reset.
[04:21:43.208][Cacher][Watcher] Reset.
[04:21:43.213][Cacher] Adding %WS1%/docs/test.tex .
[04:21:43.213][Cacher][Watcher] Watched %WS1%/docs/test.tex with a new watcher on %WS1%/docs .
[04:21:43.214][Event] FILE_WATCHED: "%WS1%/docs/test.tex"
[04:21:43.217][Cacher] Caching %WS1%/docs/test.tex .
[04:21:43.219][Cacher] Updated inputs of %WS1%/docs/test.tex .
[04:21:43.220][Cacher] Parse LaTeX AST: %WS1%/docs/test.tex .
[04:21:43.220][Event] ROOT_FILE_SEARCHED
[04:21:43.234][Cacher] Parsed LaTeX AST: %WS1%/docs/test.tex .
[04:21:43.235][File] Calling kpsewhich to resolve jsarticle.cls .
[04:21:43.249][Cacher] Updated elements in 14.84 ms: %WS1%/docs/test.tex .
[04:21:43.250][Event] FILE_PARSED: "%WS1%/docs/test.tex"
[04:21:43.252][Structure] Structure force updated with 0 root sections for %WS1%/docs/test.tex .
[04:21:43.252][Event] STRUCTURE_UPDATED
[04:21:43.415][Server] Preview PDF file: file://%WS1%/docs/test.pdf
[04:21:43.577][Viewer] Handle data type: loaded
[04:21:43.578][Event] VIEWER_PAGE_LOADED

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.

[Paste the log here. Do not remove the surrounding backquotes (`).]

Anything Else?

Add any other context about the problem below.

u-sho commented 10 months ago

sorry, this maybe the same as #4088 . my English writing is slow,

u-sho commented 10 months ago

@James-Yu Thank you. Now (v9.15.5), characters are displayed.