-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsc-lang-abi-too-new when installing new language #247
Comments
May be it has to do with:
References |
Thanks for the references. As far as I can tell, one major change was moving some files from |
I haven't wrapped my head around the details. I suspect that @ubolonton and/or @ethan-leba (participants of emacs-tree-sitter/tree-sitter-langs#80) might know though. |
As far as I understand it, the issue is exactly what is says on the tin. In the commit tree-sitter/tree-sitter@eaf9b17 (v0.20.7), they make a breaking change to the ABI, bumping it to v14. However |
Ooooh that's a good one! |
TIL! |
So is it just a matter of figuring out why emacs-tree-sitter depends on |
I think the overarching issue here is that development has frozen on this project. Especially now that tree sitter is integrated into Emacs 29, there doesn't seem much of a reason to put any further work into this package. |
Ah. Well that makes sense. Thanks for all the hard work! |
Is there a variable where one can add the flag? |
$ tree-sitter --version
tree-sitter 0.20.8
$ git clone https://github.com/casouri/tree-sitter-module
$ cd tree-sitter-module
# modify build.sh, add below lines after 'git clone "https://github.com/${org}/${repo}.git"', and comment out `rm -rf "${lang}"`
cd elisp
tree-sitter generate --abi 13 src/grammar.json
cd ..
# then run
$ ./build.sh elisp You should modify Copy |
I have a tree-sitter parser that I'm trying to add to emacs-tree-sitter. However, when running
(tree-sitter-require 'rsm)
, I get the following error ("rsm" is the name of my language):The only other mention of this error
tsc-lang-abi-too-new
is here. Following that comment, I downgradedtree-sitter-cli
from 0.20 to 0.19.5, and that fixed the issue.Is there any reason why emacs won't load parsers generated with cli-v0.20? Can we expect this to be solved in the next release? Thanks.
The text was updated successfully, but these errors were encountered: