Aider-AI / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
20.07k stars 1.84k forks source link

Feature request: Add missing tags.scm file for R language #1729

Open bcgalvin opened 1 week ago

bcgalvin commented 1 week ago

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

bcgalvin commented 1 week ago

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