Skip to content

Add swift language support #2376

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
alexdong opened this issue Nov 15, 2024 · 7 comments
Closed

Add swift language support #2376

alexdong opened this issue Nov 15, 2024 · 7 comments
Labels
enhancement New feature or request fixed

Comments

@alexdong
Copy link

alexdong commented Nov 15, 2024

Issue

Here are a few resources I've collected. Hopefully they are of some use to you:

  1. tags.scm in the repo: https://github.com/alex-pinkus/tree-sitter-swift/blob/main/queries/tags.scm.
  2. It uses MIT license.
  3. swift-format is the official lint + format from swiftlang: https://github.com/swiftlang/swift-format

Will this be enough? Thanks.

Version and model info

No response

@m3kwong
Copy link

m3kwong commented Jan 24, 2025

Please look at this 3rd party support for Swift, it seems to be usable. https://github.com/ChimeHQ/SwiftTreeSitter, this was listed on Official Tree Sitter website as a 3rd party support. https://tree-sitter.github.io/tree-sitter/

@fmos
Copy link

fmos commented Jan 29, 2025

To me it looks like Swift support needs to be resolved via Aider-AI/grep-ast#7

@paul-gauthier
Copy link
Collaborator

Please see these two related issues for relevant updates:

@adamyargerdd
Copy link

It looks like ast-grep now supports swift, with that and the additions of tree-sitter language pack is swift support now possible in aider?

@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 swift.

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.

@adamyargerdd
Copy link

It's working for me! Thanks!

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

5 participants