Debugging java in Intellij doesn't work - throws exception
See original GitHub issueThe latest commit to the aspect (the move to JavaInfo) has broken the debug capability. Reverting the java_classpath.bzl to one of the previous versions, enables to debug again. The error thrown:
ERROR: /Users/marina.grechuhin/Development/development-tests/uint_monorepo/matching_service_api/BUILD:42:1: in @intellij_aspect//:java_classpath.bzl%java_classpath_aspect aspect on scala_binary rule //matching_service_api:matching_service_api: Traceback (most recent call last): File "/Users/marina.grechuhin/Development/development-tests/uint_monorepo/matching_service_api/BUILD", line 42 @intellij_aspect//:java_classpath.bzl%java_classpath_aspect(...) File "/private/var/tmp/_bazel_marina.grechuhin/db941774b3163d57cafe88c408233562/external/intellij_aspect/java_classpath.bzl", line 21, in _runtime_classpath_impl struct(output_groups = {"runtime_classp...)}) File "/private/var/tmp/_bazel_marina.grechuhin/db941774b3163d57cafe88c408233562/external/intellij_aspect/java_classpath.bzl", line 22, in struct _get_runtime_jars(target) File "/private/var/tmp/_bazel_marina.grechuhin/db941774b3163d57cafe88c408233562/external/intellij_aspect/java_classpath.bzl", line 27, in _get_runtime_jars target[JavaInfo].compilation_info.runtime_classpath object of type 'NoneType' has no field 'runtime_classpath'
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
so the issue isn’t with rules_scala but rather with Bazel itself (creating a faulty JavaInfo from starlark), I’ve created an issue there and I sent a possible fix in https://github.com/bazelbuild/intellij/pull/1347
From the latest comments, it sounds as if this issue was already resolved and shouldn’t be present in current plugin + Bazel versions.