James-Yu / LaTeX-Workshop

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

Formatting failed. Please refer to LaTeX Workshop Output for details. #2521

Closed yiqiangjizhang closed 3 years ago

yiqiangjizhang commented 3 years ago

I am on a windows VS Code, I have seen other issues related to this bug but none of them seems working for me. I have latexindent path set to its specific latexindent.exe path but I still have the following error.

I tried installing

image

[10:11:16] Start formatting with latexindent.
[10:11:17] Formatting with command D:\Programs and Apps\Latexindent\latexindent.exe -c,d:/TFG - Cubesat/Latex/,d:/TFG - Cubesat/Latex/sections/__latexindent_temp.tex,-y=defaultIndent: '    '
[10:11:17] Formatting failed with exit code 2
[10:11:17] stderr: File 'D:/Programs and Apps/Latexindent/../../texmf-dist/scripts/latexindent/defaultSettings.yaml' does not exist at C:\Users\yiqia\AppData\Local\Temp\par-7969716961\cache-4dda8b7c3ed4b56b804014ddd54481a11e3b640d\inc\lib/LatexIndent/GetYamlSettings.pm line 65.
tamuratak commented 3 years ago

スクリーンショット 2020-02-14 20 41 25

When all of the above is done, we will reopen this issue if needed.

yiqiangjizhang commented 3 years ago

Thanks for answering, here is the log message:

[10:28:07] LOG command invoked: default
[10:28:12] LOG command invoked: default
[10:28:13] LOG command invoked: default
[10:28:13] LOG command invoked: default
[10:28:14] Current workspace folders: ["file:///d:/TFG - Cubesat"]
[10:28:14] Current workspaceRootDir: d:\TFG - Cubesat
[10:28:15] Keep using the same root file: d:\TFG - Cubesat\Latex\main.tex
[10:28:45] Current workspace folders: ["file:///d:/TFG - Cubesat"]
[10:28:45] Current workspaceRootDir: d:\TFG - Cubesat
[10:28:45] Keep using the same root file: d:\TFG - Cubesat\Latex\main.tex
[10:28:46] Start formatting with latexindent.
[10:28:46] Formatting with command D:\Programs and Apps\Latexindent\latexindent.exe -c,d:/TFG - Cubesat/Latex/,d:/TFG - Cubesat/Latex/sections/__latexindent_temp.tex,-y=defaultIndent: '    '
[10:28:47] Formatting failed with exit code 2
[10:28:47] stderr: File 'D:/Programs and Apps/Latexindent/../../texmf-dist/scripts/latexindent/defaultSettings.yaml' does not exist at C:\Users\yiqia\AppData\Local\Temp\par-7969716961\cache-4dda8b7c3ed4b56b804014ddd54481a11e3b640d\inc\lib/LatexIndent/GetYamlSettings.pm line 65.

[10:28:47] File watcher - file changed: d:\TFG - Cubesat\Latex\sections\state_of_the_art.tex
[10:28:47] Parsing a file and its subfiles: d:\TFG - Cubesat\Latex\sections\state_of_the_art.tex
[10:28:47] Parse fls file.
[10:28:47] Cannot find fls file: d:\TFG - Cubesat\Latex\sections\build\state_of_the_art.fls
[10:28:47] Auto build started detecting the change of a file: d:\TFG - Cubesat\Latex\sections\state_of_the_art.tex
[10:28:47] BUILD command invoked.
[10:28:47] The document of the active editor: file:///d%3A/TFG%20-%20Cubesat/Latex/sections/state_of_the_art.tex
[10:28:47] The languageId of the document: latex
[10:28:47] Building root file: d:\TFG - Cubesat\Latex\main.tex
[10:28:47] Build root file d:\TFG - Cubesat\Latex\main.tex
[10:28:47] Recipe step 1: latexmk, --max-print-line=10000,-synctex=1,-interaction=nonstopmode,-file-line-error,-pdf,-outdir=d:/TFG - Cubesat/Latex/build,d:/TFG - Cubesat/Latex/main
[10:28:47] Recipe step env: {}
[10:28:47] cwd: d:\TFG - Cubesat\Latex
[10:28:47] LaTeX build process spawned. PID: 4564.
[10:28:48] Recipe of length 1 finished. PID: 4564.
[10:28:48] Successfully built d:\TFG - Cubesat\Latex\main.tex.
[10:28:48] Refresh PDF viewer for d:\TFG - Cubesat\Latex\build\main.pdf
[10:28:48] Parse fls file.
[10:28:48] Fls file found: d:\TFG - Cubesat\Latex\build\main.fls
[10:28:48] Parse aux file: d:\TFG - Cubesat\Latex\build\main.aux
[10:28:48] Preview PDF file: d:\TFG - Cubesat\Latex\build\main.pdf
[10:28:48] Handle data type: loaded

image

image

tamuratak commented 3 years ago

Please fill out ALL the information required in the issue template.

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/No

Make sure to visit the wiki FAQ before filling an issue.

You visited the wiki?: Yes/No

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/No

Describe the bug [Required]

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error

Expected behavior

A clear and concise description of what you expected to happen.

Logs [Required]

Please paste the whole log messages here, not parts of ones. The log should start with Initializing LaTeX Workshop. It is very important to identify problems.

LaTeX Workshop Output [Required]

To access the log, click the 'TeX' icon on the Activity Bar on the left side, select 'View Log Messages', then select 'View LaTeX Workshop extension log'.

[Paste the log here]

Developer Tools Console [Required]

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

[Paste the log here]

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop [Required]

Additional questions

Are you using VSCodium?

Yes/No

Are you using LaTeX Workshop with VS Code Remote?

Yes/No

If the answer is Yes, please write which one you are using. Write the versions of the remote extension.

Additional context

Add any other context about the problem here.

tamuratak commented 3 years ago

2522