Skip to content

bug: Incompatible Language version 15. Must be between 13 and 14 #273

Open
@huilong-chen

Description

@huilong-chen

Did you check existing issues?

  • I have read all the tree-sitter docs if it relates to using the parser
  • I have searched the existing issues of tree-sitter-rust

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

tree-sitter 0.24.0

Describe the bug

from tree_sitter import Language, Parser, Node
import tree_sitter_rust as tsrust
parser = Parser(Language(tsrust.language()))


parser = Parser(Language(tsrust.language()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: Incompatible Language version 15. Must be between 13 and 14

Steps To Reproduce/Bad Parse Tree

  1. pip install tree_sitter
  2. pip install tree_sitter_rust
  3. from tree_sitter import Language, Parser, Node
    import tree_sitter_rust as tsrust
    parser = Parser(Language(tsrust.language()))

Expected Behavior/Parse Tree

No ValueError.

Repro

// Example code that causes the issue
fn foo() {
  // Code that fails to parse, or causes an error
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions