Skip to content

Issue with the formatters Prettier and Ruff. helix_view::document [ERROR] Formatter error: [error] No parser could be inferred for file "{file}" #13270

@richardhttps

Description

@richardhttps

Manual formatting with Prettier and Ruff are not working in the Helix editor. Attached is my languages.toml.
Things to know:

  • The binaries of Prettier and Ruff are already in /usr/bin/
  • The formatters work when invoked in the terminal, eg: cat test.css | prettier --stdin-filepath test.css
  • The files have proper extensions ".py" ".css" ".js", etc.
  • The files are already saved to disk.
  • Other formatters are working
  • Helix's version is 25.01.1
  • Helix's log shows this error line:
helix_view::document [ERROR] Formatter error: [error] No parser could be inferred for file "{file}".

languages.toml.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions