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

Bazel transition is not applied when building code in intellij #7165

Open
KostadinAlmishev opened this issue Dec 12, 2024 · 0 comments
Open
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues lang: java Java rules integration product: IntelliJ IntelliJ plugin type: bug

Comments

@KostadinAlmishev
Copy link

Description of the bug:

I have a transition that disables java header compilation in libraries with lombok, because Turbine doesn't support lombok: bazelbuild/bazel#12837.

Transition does not work, when I do sync in ide, build always fails. In terminal everything is fine.

Expected ide sync to complete successfully like in terminal.

Which category does this issue belong to?

No response

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Repo with example

When I build example folder (bazel build //example/...) in terminal, I am getting 'Build completed successfull'.

When I do partial sync of example folder in intellij idea, I get error:

ERROR: /Users/***/repos/bazel_transition_bug_report_example/example/BUILD:5:13: Compiling Java headers example/liblib_with_lombok-hjar.jar (1 source file) and running annotation processors (AnnotationProcessorHider$AnnotationProcessor) failed: (Exit 1): java failed: error executing JavacTurbine command (from target //example:lib_with_lombok) external/rules_java~~toolchains~remotejdk21_macos_aarch64/bin/java '--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED' ... (remaining 20 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
<>: error: Turbine is not currently supported by lombok.

Which Intellij IDE are you using? Please provide the specific version.

IntelliJ IDEA 2024.3 (Community Edition) Build #IC-243.21565.193, built on November 13, 2024

What programming languages and tools are you using? Please provide specific versions.

No response

What Bazel plugin version are you using?

2024.11.19.0.3-api-version-243

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

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 lang: java Java rules integration product: IntelliJ IntelliJ plugin type: bug
Projects
Status: Untriaged
Development

No branches or pull requests

5 participants