tree-sitter / tree-sitter-cli

CLI tool for creating and testing tree-sitter parsers
MIT License
45 stars 15 forks source link

The Incompatible language version error is confusing #42

Open banacorn opened 6 years ago

banacorn commented 6 years ago
Uncaught RangeError: Incompatible language version. Expected 8. Got 9

I cannot understand this error message (though I kept hitting it, that's another problem 😢).

maxbrunsfeld commented 6 years ago

It means that you're using an older version of the tree-sitter module, but your parser was generated with a newer version of tree-sitter-cli, and the versions are incompatible. You probably just need to npm update tree-sitter?

But yeah, we could probably include more lines of explanation in that error message.