James-Yu / LaTeX-Workshop

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

Sorry, but miktex-xetex did not succeed. #4024

Closed gingerkitti closed 1 year ago

gingerkitti commented 1 year ago

Pre-checks*

All confirmed

Environment*

> 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*

Can't compiled using xelatex.

Reproduction Steps

This is my setting

{
   "latex-workshop.latex.recipes": [
      {
        "name": "XeLaTeX",
        "tools": [
            "XeLaTeX"
        ]
      }
   ],
   "latex-workshop.latex.tools": [
      {
        "name": "XeLaTeX",
        "command": "miktex-xetex",
        "args": [
          "--synctex=1",
          "-undump=xelatex",
          "--tex-option=\"-interaction=nonstopmode\"",
          "--tex-option=\"-c-style-errors\"",
          "-no-shell-escape",
          "%DOCFILE%.tex"
        ],
        "env": {}
      }
    ]
}

Expected Behavior

It's a Hello world test

Logs

LaTeX Workshop Output*

[02:15:35.048][Manager] Found root file from active editor: %WS1%\main.tex
[02:15:35.048][Manager] Keep using the same root file: %WS1%\main.tex
[02:15:35.049][Event] ROOT_FILE_SEARCHED
[02:15:35.050][Event] STRUCTURE_UPDATED
[02:15:35.052][Commander] Building root file: %WS1%\main.tex
[02:15:35.052][Builder] Build root file %WS1%\main.tex
[02:15:35.082][Builder] outDir: c:/Users/HsiLu/Documents/_HsiLuDocument/遥遥无期的计划/TeX .
[02:15:35.088][Builder] Preparing to run recipe: XeLaTeX.
[02:15:35.089][Builder] Prepared 1 tools.
[02:15:35.093][Builder] Recipe step 1 The command is miktex-xetex:["--synctex=1","-undump=xelatex","--tex-option=\"-interaction=nonstopmode\"","--tex-option=\"-c-style-errors\"","-no-shell-escape","main.tex"].
[02:15:35.094][Builder] env: {}
[02:15:35.094][Builder] root: %WS1%\main.tex
[02:15:35.096][Builder] cwd: %WS1%
[02:15:35.227][Builder] LaTeX build process spawned with PID 17652.
[02:15:36.537][Builder] Recipe returns with error code 1/null on PID 17652.
[02:15:36.537][Builder] Does the executable exist? $PATH: undefined, $Path: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Python310\Scripts\;C:\Program Files\Python310\;C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Program Files\MiKTeX\miktex\bin\x64\;C:\Program Files\GNU Octave\Octave-6.3.0\mingw64\bin;C:\Program Files\ffmpeg-2022-05-23-git-6076dbcb55-essentials_build\bin;C:\Program Files\ImageMagick-7.1.0-Q16-HDRI;C:\免安装软件\pdf2svg-windows-master\dist-64bits;C:\Program Files\dotnet\;C:\Program Files\Inkscape\bin\;C:\Program Files\Microsoft VS Code\bin;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Program Files\Calibre2\;C:\Users\HsiLu\AppData\Local\Microsoft\WindowsApps, $SHELL: undefined
[02:15:36.538][Builder] 
Sorry, but miktex-xetex did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  C:\Users\HsiLu\AppData\Local\MiKTeX\miktex\log\miktex-xetex.log

[02:15:36.540][Cleaner] Clean temporary files command The command is latexmk:["-c","c:\\Users\\HsiLu\\Documents\\_HsiLuDocument\\遥遥无期的计划\\TeX\\main.tex"].
[02:15:37.727][Event] AUTO_CLEANED
[02:16:36.598][Event] STRUCTURE_UPDATED

Developer Tools Console

TMScopeRegistry.ts:46 Overwriting grammar scope name to file mapping for scope text.tex.
Old grammar file: file:///c%3A/Program%20Files/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/TeX.tmLanguage.json.
New grammar file: file:///c%3A/Users/HsiLu/.vscode/extensions/james-yu.latex-workshop-9.14.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/Program%20Files/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/LaTeX.tmLanguage.json.
New grammar file: file:///c%3A/Users/HsiLu/.vscode/extensions/james-yu.latex-workshop-9.14.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/Program%20Files/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/Bibtex.tmLanguage.json.
New grammar file: file:///c%3A/Users/HsiLu/.vscode/extensions/james-yu.latex-workshop-9.14.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/Program%20Files/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/markdown-latex-combined.tmLanguage.json.
New grammar file: file:///c%3A/Users/HsiLu/.vscode/extensions/james-yu.latex-workshop-9.14.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/Program%20Files/Microsoft%20VS%20Code/resources/app/extensions/latex/syntaxes/cpp-grammar-bailout.tmLanguage.json.
New grammar file: file:///c%3A/Users/HsiLu/.vscode/extensions/james-yu.latex-workshop-9.14.0/syntax/cpp-grammar-bailout.tmLanguage.json
register @ TMScopeRegistry.ts:46
log.ts:421  INFO [perf] Render performance baseline is 137ms
console.ts:137 [Extension Host] Git installation not found.
m @ console.ts:137
webviewElement.ts:512 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:512
webviewElement.ts:512 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:512
webviewElement.ts:512 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ webviewElement.ts:512
DevTools failed to load source map: Could not load content for vscode-webview://1ik8464oc3kolmmkvuogd8gl6ga15r1i152lrrhdhia4dbpr9hoq/pdf.worker.js.map: Unexpected end of JSON input
DevTools failed to load source map: Could not load content for https://file+.vscode-resource.vscode-cdn.net/c%3A/Users/HsiLu/.vscode/extensions/james-yu.latex-workshop-9.14.0/node_modules/pdfjs-dist/build/pdf.js.map: Connection error: net::ERR_CONNECTION_CLOSED

Anything Else?

Thanks your time to read and kind help. Hope I could have provided useful info

James-Yu commented 1 year ago

Please search past issue on PATH.