-
Notifications
You must be signed in to change notification settings - Fork 66
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
Support for Kotlin #520
Comments
Just for the future - associates is in some way similar to go's |
Is the Kotlin extension spec here? And is that pretty much final? Also - what exactly is in the |
|
@abrams27 Ah thanks. I don't know Kotlin and didn't realise |
I wouldnt say that this impl is final, it works for us, but possibly it should be adjusted to feel more consistent with other langs, so prob we can add some endpoints instead of putting everything into |
This is interesting. How do you provide |
we dont pass it directly to the complier, on the server side bazel takes care of that, on the client side we pass it to the lang support plugin which has a field called anyway on slack someone mentioned |
Yeah, I guess I'm actually more interested in the server side then. It looks a bit strange to me to control the friendship between modules via a keyword from the one side, but via a compiler setting from the other. From it's documentation (https://kotlinlang.org/docs/visibility-modifiers.html#modules) it looks to me, |
yes but there are cases when it's a "fictional" thing - for example library and test, in bazel it's impossible to compile them together, but the test in the same package should be able to see the symbols, and the "module" split caused by the design of bazel should not block it (it's similar in gradle support in intellij), on top of that in bazel it's common to create a lot of build targets, just for the sake of performance which dont have a real "structure" reason, they are there just to make caching faster |
@abrams27 Yeah, that makes sense. Out of curiosity: Do you need to explicitly mark those |
you need to set it explicitly, |
Describe the use-case for this feature
we'd like to support kotlin in our plugin, and in order to do that we need to obtain some info about the used sdk in the project
What do you propose
in the near future we will create a kotlin extension and PR with changes, probably we will need only additional data field with sdk info, and maybe some info about relationship between targets (are they in the same kotlin module - e.g. bazel
associates
https://bazelbuild.github.io/rules_kotlin/kotlin.html#kt_jvm_library) (but we need to investigate it a bit anyway)I've checked to make sure there isn't already a way to support this in the current protocol
Maintainer approval (This is for the maintainers)
The text was updated successfully, but these errors were encountered: