Skip to content

Incompatible language version 15 in Helix #102

Description

@raikhan

Hi,

Thank you for this project! I am trying to get it set up in Helix 25.01.01 on MacOS, following your README instructions. My config is:

[[language]]
name = "d2"
scope = "source.git"
file-types = ["d2"]
comment-token = "#"
roots = [""]
indent = { tab-width = 2, unit = "  " }
formatter = { command = "d2", args = ["fmt", "--stdin"] }

[[grammar]]
source = { git = "https://github.com/ravsii/tree-sitter-d2", rev = "main" }
name = "d2"

I ran the --health fetch and build commands and copied queries from the downloaded sources/d2/queries to .config/helix/runtime/queries/d2. With all this, Helix health check looks like this:

Configured language servers: None
Configured debug adapter: None
Configured formatter: d2
Binary for formatter: /opt/homebrew/bin/d2
Tree-sitter parser: ✓
Highlight queries: ✓
Textobject queries: ✘
Indent queries: ✘

In Helix log, however, I find the following error:

helix_core::syntax [ERROR] Could not parse queries for language "d2". 
Are your grammars out of sync? Try running 'hx --grammar fetch' and 'hx --grammar build'. 
This query could not be parsed: QueryError { row: 0, column: 0, offset: 0, message: "Incompatible language version 15. Expected minimum 13, maximum 14", kind: Language }

Any help you can offer would be welcome! Thanks again!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions