py-tree-sitter icon indicating copy to clipboard operation
py-tree-sitter copied to clipboard

Incompatible Language Version for a couple of languages

Open villmow opened this issue 4 years ago • 3 comments

I am using tree_sitter==0.19.0 and I am not able to parse swift, verilog, and agda code. I cloned the grammars and installed the newest bindings. Is there anything I can do?

Error messages

Swift:

ValueError: Incompatible Language version 10. Must be between 13 and 13

Verilog:

ValueError: Incompatible Language version 12. Must be between 13 and 13

Agda:

ValueError: Incompatible Language version 11. Must be between 13 and 13

villmow avatar Sep 20 '21 08:09 villmow

Also happening with lua

shrivastavadisha avatar Dec 06 '21 22:12 shrivastavadisha

I think the authors of those grammars just need to regenerate their parsers with a more recent version of Tree-sitter.

maxbrunsfeld avatar Dec 06 '21 22:12 maxbrunsfeld

This means your tree_sitter version is newer than the languages' grammar versions.

Try using older tree_sitter version. For error: "Incompatible Language version 11. Must be between 13 and 13", I use tree_sitter version 0.2.2.

pip install tree_sitter==0.2.2

MNaumanBootter avatar Jan 07 '22 10:01 MNaumanBootter