AutoValue/AutoFactory generated code not indexed by Intellij when syncing Kotlin libraries #6657
Labels
awaiting-maintainer
Awaiting review from Bazel team on issues
product: IntelliJ
IntelliJ plugin
type: bug
Description of the bug:
We have imported the AutoValue and AutoFactory plugins into our Kotlin Bazel workspace and it build and generates things as expected. However, Intellij is not indexing the generated classes and thus they appear unresolved. I have checked the build output and the classes are in the
lib.jar
and thelib-java.jar
but not in thelib-kt.jar
.Which category does this issue belong to?
Intellij
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Import this repo and try to sync. The sync succeeds but
TestFileFactory
is unresolved.Which Intellij IDE are you using? Please provide the specific version.
IntelliJ IDEA 2024.2.0.2 Build #IU-242.20224.419
What programming languages and tools are you using? Please provide specific versions.
Kotlin 1.7
What Bazel plugin version are you using?
2024.07.30.0.2-api-version-242
Have you found anything relevant by searching the web?
This has been occurring for a long time so not a regression. We've been able to write out own KAPT plugins that generate code and Intellij indexes those so as far as I can tell it is just these Auto* plugins
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: