Issue with the formatters Prettier and Ruff. helix_view::document [ERROR] Formatter error: [error] No parser could be inferred for file "{file}" #13282
Answered
by
the-mikedavis
richardhttps
asked this question in
Troubleshooting
-
Manual formatting with Prettier and Ruff are not working in the Helix editor. Attached is my languages.toml.
|
Beta Was this translation helpful? Give feedback.
Answered by
the-mikedavis
Apr 6, 2025
Replies: 1 comment
-
The cat test.css | prettier --stdin-filepath {file} Instead you can configure the formatter with a dummy file name like formatter = { command = "prettier", args = ["--stdin-filepath", "test.css"] } |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
richardhttps
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
{file}
syntax is not implemented so the formatter is being called like:cat test.css | prettier --stdin-filepath {file}
Instead you can configure the formatter with a dummy file name like