Skip to content
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

Adding tree sitter implementations #373

Closed
seanf opened this issue Nov 27, 2023 · 6 comments
Closed

Adding tree sitter implementations #373

seanf opened this issue Nov 27, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@seanf
Copy link

seanf commented Nov 27, 2023

Hi Paul, can you suggest what sort of work is needed to add another language in the appropriate format?

Kotlin has a tree sitter implementation (MIT): https://github.com/fwcd/tree-sitter-kotlin. It seems to be supported by https://github.com/grantjenks/py-tree-sitter-languages

@paul-gauthier
Copy link
Collaborator

Thanks for trying aider and filing this issue.

You're right that py-tree-sitter-languages does support the kotlin language. The only other thing aider needs is a tags.scm query file for kotlin. It looks like that has not been provided in the tree-sitter-kotlin repo:

https://github.com/fwcd/tree-sitter-kotlin/tree/main/queries

@paul-gauthier paul-gauthier added the enhancement New feature or request label Nov 27, 2023
@gwpl
Copy link

gwpl commented Dec 1, 2023

I am not yet familiar with tree-sitter, could you clarify if lack of tags.scm would be also blocker for adding .ttl RDF Turtle syntax ( https://github.com/BonaBeavis/tree-sitter-turtle/tree/main/bindings ) and .sw Sway programming language ( https://github.com/FuelLabs/tree-sitter-sway/tree/master/queries ) or do those repositories look fine?

@paul-gauthier
Copy link
Collaborator

@gwpl yes, aider needs a tags.scm file in order to be able to include a language in the detailed repository map.

@antb123
Copy link

antb123 commented Dec 7, 2023

Any thoughts on how MS copilot recently added multiple file support? from this paper it looks like they may be using https://arxiv.org/abs/2306.04930 tree-sitter as well

@seanf
Copy link
Author

seanf commented Dec 8, 2023

Thanks for trying aider and filing this issue.

You're right that py-tree-sitter-languages does support the kotlin language. The only other thing aider needs is a tags.scm query file for kotlin. It looks like that has not been provided in the tree-sitter-kotlin repo:

fwcd/tree-sitter-kotlin@main/queries

Thanks Paul.

Related issue: fwcd/tree-sitter-kotlin#91

Some info about tags.scm: https://tree-sitter.github.io/tree-sitter/code-navigation-systems

@paul-gauthier
Copy link
Collaborator

I'm going to close this issue for now, but feel free to add a comment here and I will re-open or file a new issue any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants