tree-sitter-cli
tree-sitter-cli copied to clipboard
The Incompatible language version error is confusing
Uncaught RangeError: Incompatible language version. Expected 8. Got 9
I cannot understand this error message (though I kept hitting it, that's another problem 😢).
- Is it Atom that is expecting 8, but got 9?
- Or is it tree-sitter that is expecting 8, but got 9?
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.