Intellij: Unable to debug java_binary targets with bazel 0.25

Created on 8 May 2019  路  1Comment  路  Source: bazelbuild/intellij

When using the latest plugin (v2019.04.15) with bazel 0.25, debugging a java_binary fails with:

ERROR: /private/var/tmp/.../external/intellij_aspect/java_classpath.bzl:3:1: file ':intellij_info_impl.bzl' does not contain symbol 'artifact_location'.
ERROR: Extension file 'java_classpath.bzl' has errors.
ERROR: Analysis of aspect '@intellij_aspect//:java_classpath.bzl%java_classpath_aspect of ... failed; build aborted: Extension file 'java_classpath.bzl' has errors.

This is due to the incompatible_no_transitive_loads change in bazel 0.25. https://github.com/bazelbuild/bazel/issues/5636

Workaround is to disable this bazel feature by setting incompatible_no_transitive_loads=false on command line or in .bazelrc

Most helpful comment

Thanks for letting us know -- I'll fix this upstream, which will land in the release after next.

In the meantime, you can work around this by disabling hotswapping (the only code which uses this aspect), by adding "java.hotswapping.enabled=0" to an ".intellij-experiments' file in your home directory (e.g. ~/.intellij-experiments on linux)

>All comments

Thanks for letting us know -- I'll fix this upstream, which will land in the release after next.

In the meantime, you can work around this by disabling hotswapping (the only code which uses this aspect), by adding "java.hotswapping.enabled=0" to an ".intellij-experiments' file in your home directory (e.g. ~/.intellij-experiments on linux)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

brandonpollack23 picture brandonpollack23  路  5Comments

cpsauer picture cpsauer  路  8Comments

mbravi picture mbravi  路  7Comments

jschaf picture jschaf  路  4Comments

ruudud picture ruudud  路  8Comments