Open mcwitt opened 1 year ago
I'll raise that it seems like this comment is relevant to this situation: https://github.com/NixOS/nixpkgs/pull/230547#issuecomment-1537545156
I think this can be solved more or less by installing emacs29 and using built-in treesit now.
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/tree-sitter-grammars-collide-with-each-other/41805/10
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 https://github.com/tree-sitter/tree-sitter/commit/e2fe380a08408ff42eada21f8723f653e6da6606), 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: https://github.com/emacs-tree-sitter/elisp-tree-sitter/issues/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