rules_kotlin
rules_kotlin copied to clipboard
Intellij can't find kotlinx
My teammates have been facing this issue with rules_kotlin where kotlinx libs aren't imported by intellij. Sometimes a sync fixes it but for others they had to patch intellij's bazel plugin (see https://github.com/bazelbuild/intellij/issues/490 and https://github.com/gergelyfabian/intellij/commit/8e1bfdacb2f99da77582d736a0f5127d473be71f?branch=8e1bfdacb2f99da77582d736a0f5127d473be71f&diff=split for details). I've had the issue persist even after syncing, restarting and evicting intellij's cache, etc only for it to disappear when im no longer looking.
Ultimately, I am not sure what the root cause is but since it only happens with kotlinx I figured it might be something the rules here do. Any ideas?
here is an example
This started happening to me as well - it worked for a while, and I sadly don't know exactly what changed... but kotlinx.coroutines
(I do not depend on other kotlinx packages) consistently fails to sync now.
This has started happening to several people on my team as well. It may have been around when we upgraded to the 1.5.0 version of the rules, although I can't be completely sure of that.
Note that this actually doesn't happen to me anymore at 8d98768 - I was using a prebuilt release archive before though, not 100% sure what fixed it.
@Kernald thats awesome! My team uses the prebuilts and is eagerly awaiting the next one so we can evaluate this. Thanks for the heads up