-
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
Feature Request: Support custom SCM query files via --scm option #2470
Comments
Thanks for trying aider and filing this issue. Help me understand why you want this? Why not just contribute the scm to aider so everyone can use it? Which language(s) in particular are you intending to use? |
Thanks for the response and for creating aider! I'd be happy to share my F# query SCM file with aider right away! I've been using it with F# and it works well. The only catch is that I currently have to use it with my local setup because F# isn't in tree-sitter-languages yet (though I've submitted a PR for that). My setup includes:
Even if I contribute the F# query file to aider now, other users would need to either:
That's what made me think of the --scm option - it'd make it easier for folks to try out new language support before everything's officially integrated. Let me know if this helps explain things better! |
That makes sense. Can you share the process you used to build the F# tree sitter and integrate it into aider? |
Thanks! Here are my detailed setup steps (I'm on Windows). Prerequisites:
|
Oops, sorry, i thought you were asking the languages package, for the f# tree sitter, I've modified some of its binding interface for fitting with the tree-sitter-languages package and here is the repos: https://github.com/houcheng/tree-sitter-fsharp The building for F# tree sitter requires node 22 and MSVC2019 for generating code from grammar.js and building native binaries.
Thank you~ |
@houcheng, thank you for explaining how to use F# with Aider. I am trying to build tree-sitter-languages locally while the PRs is under review. Could you also share the file tree-sitter-fsharp-tags.scm? |
tree-sitter-fsharp-tags.scm.txt |
Thanks for trying aider and filing this issue. Please see these two related issues for relevant updates: |
Issue
Hi!
I would like to suggest adding a new command-line option
--scm
that allows users to provide custom SCM query files. The provided SCM files should follow the Tree-sitter naming convention: eithertree-sitter-{lang}-tags.scm
or{lang}.scm
.When processing files, the system should first check if a user-provided SCM file matches the current programming language before falling back to the default queries folder.
If you think this feature would be valuable, I'd be happy to work on implementing it and submit a PR. Please let me know if you're interested and if you have any specific requirements or guidelines for the implementation.
Thanks for considering this request!
Version and model info
No response
The text was updated successfully, but these errors were encountered: