Skip to content
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

AutoValue/AutoFactory generated code not indexed by Intellij when syncing Kotlin libraries #6657

Open
ianb-pomelo opened this issue Aug 22, 2024 · 0 comments
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: IntelliJ IntelliJ plugin type: bug

Comments

@ianb-pomelo
Copy link

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 the lib-java.jar but not in the lib-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

@ianb-pomelo ianb-pomelo added awaiting-maintainer Awaiting review from Bazel team on issues type: bug labels Aug 22, 2024
@github-actions github-actions bot added the product: IntelliJ IntelliJ plugin label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: IntelliJ IntelliJ plugin type: bug
Projects
None yet
Development

No branches or pull requests

2 participants