bazelbuild / intellij

IntelliJ plugin for Bazel projects
https://ij.bazel.build/
Apache License 2.0
761 stars 303 forks source link

Kotlin targets requiring Java annotation processors aren't recognized #5999

Open ekohlwey opened 7 months ago

ekohlwey commented 7 months ago

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.

Screenshot 2024-01-30 at 11 58 09 AM

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?

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

tpasternak commented 7 months ago

Unfortunately I have to assign P3