-
Notifications
You must be signed in to change notification settings - Fork 61
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
FR: Gazelle Kotlin Support #126
Comments
Would gladly review some PRs (with tests) to enable this! |
I've put up a (very messy, don't use it) PR up (#313 ) for discussion on this |
Thank you for the PR. I'm pinging @restingbull, as he might be interested in this being part of |
I'd also be curious what @alexeagle thinks about merging Kotlin support in with the Java plugin, given his experience from the independent Kotlin plugin. |
@shs96c, I understand why it seems like rules_kotlin would be a good spot for this, but I actually think that if someone is using Kotlin specifically with the JVM, then the best place for handling those rules is in the same plugin that handles the Java rules. I put more thoughts about why this is the case in the draft PR I linked above. The only new dependency it adds to rules_jvm is one new Maven dependency on the "kotlin" package for parsing the Kotlin files. |
I am quite persuaded by the argument that kotlin and java source is often co-mingled in a way that other JVM-based languages don't seem to do. |
FWIW We already have a Kotlin gazelle extension over here: https://github.com/aspect-build/aspect-cli/tree/main/gazelle/kotlin written by @jbedard There are no great options for where to place Gazelle extensions since they're always compiled from source and introduce new toolchain dependencies (e.g. you'd want to use Tree-Sitter and that needs a C++ toolchain) IMO bazel-contrib/bazel-gazelle#938 is needed, so that Gazelle binary can load extensions that rulesets ship as pre-built binaries on their releases page. |
Hi is there any thought / interest in adding kotlin support to the gazelle extension?
Have briefly started to look at the changes required and curious if its on others radar.
Thanks!
The text was updated successfully, but these errors were encountered: