Feature request: Add missing tags.scm file for R language
Issue
The aider/queries/README.md lists https://github.com/r-lib/tree-sitter-r for R language support, but there's no tags.scm file for R in aider/queries/ (and is the only listed language missing this file).
I plan to submit a PR for this but am curious about this line in the queries/ README: Aider uses modified versions of the tags.scm files.. is there any guidance on what modifications are made from the language scm files to be compatible with aider?
Version and model info
No response
think I know why its missing, tree-sitter-languages is kind of unmaintained and is using an old version of the r-lib tree sitter library:
https://github.com/grantjenks/py-tree-sitter-languages/blob/v1.10.2/repos.txt#L18C40-L18C80
and the tags are empty https://github.com/r-lib/tree-sitter-r/blob/c55f8b4dfaa32c80ddef6c0ac0e79b05cb0cbf57/queries/tags.scm
are there plans to move off from tree-sitter-languages? it would be nice to not have it as a dependency since it seems semi-abandoned and stuck on the older tree-sitter api
Second/third this and just clarifying; the tags.scm file for R language support is here: https://github.com/r-lib/tree-sitter-r/blob/main/queries/tags.scm
Thanks for trying aider and filing this issue.
Please see these two related issues for relevant updates:
- https://github.com/Aider-AI/aider/issues/3133
- https://github.com/Aider-AI/grep-ast/issues/7
Main branch has a big upgrade in programming languages supported by adopting tree-sitter-language-pack.
- 130 new languages with linter support.
- 20 new languages with repo-map support.
Including R.
The change is available in the main branch. You can get it by installing the latest version from github:
aider --install-main-branch
# or...
python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git
If you have a chance to try it, let me know if it works for you.
I'm closing this enhancement request since it has been marked as 'fixed' for over 3 weeks. The requested feature should now be available in recent versions of aider.
If you find that this enhancement is still needed, please feel free to reopen this issue or create a new one.
Note: A bot script made these updates to the issue.