-
-
Save ntoxeg/50bb3b7d7af560ebe4f5bfd51ed3f972 to your computer and use it in GitHub Desktop.
Hmm, I didn't have those issues, @mauro3
I didn't do anything with the locals.scm file, my tree-sitter version is reported as tree-sitter 0.25.3 (2a835ee029dca1c325e6f1c01dbce40396f6123e)
I guess I could PR this into tree-sitter-julia and then to aider, I'm just not 100% sure if this works and I'm unable to reproduce your issues.
Yes, my tree-sitter verion is the same (on arch linux) and the tree-sitter-julia I had master/main.
A PR would be cool. With a bit of luck the tree-sitter people could help with that issue of ours.
Regarding the tagging for aider, probably leaving away struct fields would be ok. Albeit, I would start with them in there and see how things go.
I can try to get this going, i.e. the PR to tree sitter, if you want me to using this file. I'd make sure that you are mentioned in the PR.
Tnx for putting this together! I managed to get it to run with tree-sitter 0.25.3, however I had an issue with the locals.scm file https://github.com/tree-sitter/tree-sitter-julia/blob/master/queries/locals.scm :
As soon as I added a tags.scm file to the queries folder, even one which just had a comment in it I got:
Did you encounter that too? Deleting the
.function
in the lines 53 and 59 of locals.scm fixed this and let the tags run, but not sure what that would do to the .Then with your file, I had to comment out the
; Constants
block as that gave me anInvalid note type =
error. Other than that it ran fine.Anyways, are you considering doing a PR for this to the tree-sitter-julia and to the aider repos?