You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mcwitt
changed the title
is:issue is:open emacsPackages.tree-sitter-langs: Python grammar uses incompatible ABI version
emacsPackages.tree-sitter-langs: Python grammar uses incompatible ABI version
Jan 4, 2023
Describe the bug
Trying to use elisp-tree-sitter in Python buffers fails with the following error:
Steps To Reproduce
Steps to reproduce the behavior:
Execute the elisp commands:
Finally, open a Python buffer and do
M-x tree-sitter-hl-mode
to reproduce the above error.Expected behavior
elisp-tree-sitter should work in Python buffers. (This issue does not occur with Haskell or Nix buffers, for example).
Additional context
The cause seems to be that the upstream https://github.com/tree-sitter/tree-sitter-python generated the parser using ABI version 14 (which is now the default, since tree-sitter/tree-sitter@e2fe380), but elisp-tree-sitter does not support this since it uses an older tree-sitter version.
I'm able to work around this with the following nixpkgs overlay:
Related issue: emacs-tree-sitter/elisp-tree-sitter#247
Notify maintainers
@pimeys , @adisbladis
Metadata
"x86_64-linux"
Linux 5.15.85, NixOS, 22.11 (Raccoon), 22.11.20230103.a9eedea
yes
yes
nix-env (Nix) 2.11.1
""
"nixos, nixpkgs"
/nix/var/nix/profiles/per-user/root/channels/nixos
The text was updated successfully, but these errors were encountered: