Description
Hi @paul-gauthier , thanks for your work on aider
. I've been having a blast using it.
This project uses https://github.com/grantjenks/py-tree-sitter-languages, but that project is unmaintained and has been for several months. This forces grep-ast
to be stuck on an old tree-sitter version (0.21) and also limits the number of parsers that can be used by upstream projects (including aider). There is a hacky way to install new language parsers, but that dependency will seemingly be stuck on tree-sitter 0.21 indefinitely, which seems bad.
Another project has sprung up called tree-sitter-language-pack, however it's got a slightly different intention (large collection of grammar binaries, as opposed to small/focused one for the most popular languages only). That project is mainly an integration of this unmerged tree-sitter-languages PR with a bunch of new grammar binaries added. There's probably space for a minimal version that bundles just the top N languages and natively allows users to install their own binaries at will (so, essentially, just a version of tree-sitter-languages
with that PR merged, and some different grammar binaries).
If you want to replace tree-sitter-languages
with tree-sitter-language-pack
, I'd be happy to open a PR. Note that the source binary size is quite a bit larger:
tree-sitter-language-pack
: 35.7 MB, no platform-specific buildstree-sitter-languages
: ~9.0MB, depending on the platform