Skip to content

Add scm file for Lua to enable repo map support #833

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

Closed
hhn12138 opened this issue Jul 10, 2024 · 6 comments
Closed

Add scm file for Lua to enable repo map support #833

hhn12138 opened this issue Jul 10, 2024 · 6 comments
Labels
enhancement New feature or request fixed

Comments

@hhn12138
Copy link

Issue

The document states that aider's tree-sitter supports the Lua language, but I cannot find the scm file for extracting Lua function blocks in the project's query directory. Could you please tell me where I can find the scm file for extracting Lua function blocks?

Version and model info

No response

@paul-gauthier
Copy link
Collaborator

Thanks for trying aider and filing this issue.

Sorry, I'm not sure where to find the lua query scm file.

Is there something that isn't working well for you when using aider with lua? It should work fairly well even without the scm files.

@paul-gauthier paul-gauthier added the question Further information is requested label Jul 22, 2024
@hhn12138
Copy link
Author

@paul-gauthier Certainly! May I inquire as to why Tree-sitter does not necessitate an SCM file for the extraction of the repository map from the Lua code repository, and yet Aider is able to work without it?

@paul-gauthier
Copy link
Collaborator

Aider works fine with languages that don't have repo-map support. It may not work as well, but my suggestion is just to try and use aider and see rather than spending a bunch of effort up front worrying about repo-map support.

@paul-gauthier paul-gauthier added enhancement New feature or request and removed question Further information is requested labels Aug 5, 2024
@paul-gauthier paul-gauthier changed the title How can I find the scm file for Lua? Add scm file for Lua to enable repo map support Aug 5, 2024
@paul-gauthier
Copy link
Collaborator

@paul-gauthier
Copy link
Collaborator

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 Lua.

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.

Copy link

github-actions bot commented Apr 3, 2025

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.

@github-actions github-actions bot closed this as completed Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed
Projects
None yet
Development

No branches or pull requests

2 participants