Java classes that are generated by a Java annotation processor from Kotlin sources are not recognized by IntelliJ. The build, however, succeeds on the command line. This is shown in the below screen shot which includes 1) the compilation error featured in the editor; 2) the successful bazel build on the command line; and 3) the unsuccessful sync operation and associated output in the bazel problems window.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Use the attached repro project. Import into intellij using the following bazel view:
directories:
.
# Automatically includes all relevant targets under the 'directories' above
derive_targets_from_directories: true
targets:
# If source code isn't resolving, add additional targets that compile it here
additional_languages:
# Uncomment any additional languages you want supported
# android
# dart
# go
# javascript
kotlin
# python
# scala
# typescript
Which Intellij IDE are you using? Please provide the specific version.
IntelliJ IDEA 2023.3.2
What programming languages and tools are you using? Please provide specific versions.
Kotlin
What Bazel plugin version are you using?
2024.01.02.0.1-api-version-233
Have you found anything relevant by searching the web?
Description of the bug:
Java classes that are generated by a Java annotation processor from Kotlin sources are not recognized by IntelliJ. The build, however, succeeds on the command line. This is shown in the below screen shot which includes 1) the compilation error featured in the editor; 2) the successful bazel build on the command line; and 3) the unsuccessful sync operation and associated output in the bazel problems window.
The repro project can be found here.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Use the attached repro project. Import into intellij using the following bazel view:
Which Intellij IDE are you using? Please provide the specific version.
IntelliJ IDEA 2023.3.2
What programming languages and tools are you using? Please provide specific versions.
Kotlin
What Bazel plugin version are you using?
2024.01.02.0.1-api-version-233
Have you found anything relevant by searching the web?
This seems possibly related but is an old issue and was closed as fixed some time ago: https://github.com/bazelbuild/intellij/issues/495
Any other information, logs, or outputs that you want to share?
No response