The tree-sitter grammars define ABI versions so that you can make sure a dynamically loaded grammar works with whatever version of the tree-sitter library you're using. It seems like right now if we have a mismatch the program will segfault which is a horrible UX.
We should try to check the version and post a more informative error to the user telling them that the grammar tree-sitter is trying to load is not compatible with the version of the library that 's bundled in diffsitter.
The tree-sitter grammars define ABI versions so that you can make sure a dynamically loaded grammar works with whatever version of the tree-sitter library you're using. It seems like right now if we have a mismatch the program will segfault which is a horrible UX.
We should try to check the version and post a more informative error to the user telling them that the grammar tree-sitter is trying to load is not compatible with the version of the library that 's bundled in diffsitter.
This is handles #763