-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Change tree sitter provider to updated fork with many added languages #3133
Comments
This would be an amazing improvement, right now the limited number of supported languages is quite constraining, we could really use e.g. powershell or matlab support (which seems to be in the fork). |
Thanks for trying aider and filing this issue. There is now experimental support for tree-sitter-language-pack. To use it with aider:
To back out of this you probably need to un-install and re-install. This doesn't offer any new language support yet. I am trying to assess if folks have any problems installing this package, etc. Next steps will be do enable many more languages. I would appreciate feedback in both directions: let me know if this works or does not work for you. See also this issue: Aider-AI/grep-ast#7 |
Thank you, this worked (RHEL8 + Aider deployed via conda env): $ aider --install-main-branch
Install the development version of aider from the main branch?
python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git
Run pip install? (Y)es/(N)o [Yes]: y
python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git
Installation complete.
$ aider --install-tree-sitter-language-pack
Install tree_sitter_language_pack?
python -m pip install --upgrade --upgrade-strategy only-if-needed tree-sitter-language-pack==0.4.0 tree-sitter==0.24.0
Run pip install? (Y)es/(N)o [Yes]: y
python -m pip install --upgrade --upgrade-strategy only-if-needed tree-sitter-language-pack==0.4.0 tree-sitter==0.24.0
Installation complete.
$ pip list | grep tree
tree-sitter 0.24.0
tree-sitter-c-sharp 0.23.1
tree-sitter-embedded-template 0.23.2
tree-sitter-language-pack 0.4.0
tree-sitter-languages 1.10.2
tree-sitter-yaml 0.7.0 |
Worked for me, thanks. ~
❯ aider --install-main-branch
Install the development version of aider from the main branch?
/Users/micah/.pyenv/versions/3.11.3/bin/python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git
Run pip install? (Y)es/(N)o [Yes]:
Installing: /Users/micah/.pyenv/versions/3.11.3/bin/python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git
Installation complete.
~
❯ aider --install-tree-sitter-language-pack
Install tree_sitter_language_pack?
/Users/micah/.pyenv/versions/3.11.3/bin/python -m pip install --upgrade --upgrade-strategy only-if-needed tree-sitter-language-pack==0.4.0 tree-sitter==0.24.0
Run pip install? (Y)es/(N)o [Yes]:
Installing: /Users/micah/.pyenv/versions/3.11.3/bin/python -m pip install --upgrade --upgrade-strategy only-if-needed tree-sitter-language-pack==0.4.0 tree-sitter==0.24.0
Installation complete.
~ took 4s
❯ pip list | grep tree
tree-sitter 0.24.0
tree-sitter-c-sharp 0.23.1
tree-sitter-embedded-template 0.23.2
tree-sitter-language-pack 0.4.0
tree-sitter-languages 1.10.2
tree-sitter-yaml 0.7.0 |
Worked for me as well (openSUSE Tumbleweed within WSL 2). |
All good for me on macOS 15.3.1, python 3.12.7, using pipx environment.
|
Hi thanks for the improvement! Seems to work well, any chance to see those dependencies installed by default in aider? |
Currently aider uses
grantjenks/py-tree-sitter-languages
but there is a maintained forkGoldziher/tree-sitter-language-pack
which contains many more languages which would improve aider's language support.The text was updated successfully, but these errors were encountered: