Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting failed with exit code 25 since the latest update #488

Closed
megrxu opened this issue Mar 25, 2018 · 1 comment
Closed

Formatting failed with exit code 25 since the latest update #488

megrxu opened this issue Mar 25, 2018 · 1 comment

Comments

@megrxu
Copy link

megrxu commented Mar 25, 2018

Description

Formatting failed with exit code 25 when I tried to format a document since the latest update.

Actually, the file is formatted, but in a generated temp file _latexindent_temp.tex. The origin file has not been overwritten.

I found(in the output) that the error is caused by the Unknown option: y, which makes me confused.

How to reproduce

On my machine, the latexindent is installed, and the settings about latexindent like this:

"latex-workshop.latexindent.args": [
    "-c",
    "%DIR%/",
    "%TMPFILE%",
    "-y=\"defaultIndent: '%INDENT%'\""
  ],

  "latex-workshop.latexindent.path": "latexindent"

Actual behavior

Generated 2 files, _latexindent_temp.tex and indent.log.

And an error notification Formatting failed. Please refer to LaTeX Workshop Output for details.

Log messages

LaTeX Workshop Output [12:22:27] Formatting failed with exit code 25

[12:22:27] stderr: Unknown option: y
I couldn't find a match for - in fileExtensionPreference.
Exiting, no indendation done. at C:\Users***\AppData\Local\Temp\par-526179\cache-e8cc9e5ad67e065b6cc30031727eb3189c98fde2\inc\lib/LatexIndent/FileExtension.pm line 78.

Developer Tools Console Formatting failed. Please refer to LaTeX Workshop Output for details.
@megrxu
Copy link
Author

megrxu commented Mar 25, 2018

The solution in issue #485 can help.

@megrxu megrxu closed this as completed Mar 25, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant