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

The Incompatible language version error is confusing

Open banacorn opened this issue 7 years ago • 1 comments

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?

banacorn avatar Sep 24 '18 03:09 banacorn

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.

maxbrunsfeld avatar Sep 24 '18 03:09 maxbrunsfeld