question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debugging java in Intellij doesn't work - throws exception

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ittaizcommented, Nov 5, 2019

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

0reactions
alice-kscommented, Feb 3, 2021

From the latest comments, it sounds as if this issue was already resolved and shouldn’t be present in current plugin + Bazel versions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

In Intellij, how can I throw an exception at a break point?
As a work around, I can modify the code to throw the exception and redeploy. But I'm wondering if there's a way to...
Read more >
Alter the program's execution flow | IntelliJ IDEA Documentation
Make sure the current method is selected on the Frames tab, then right-click anywhere in the tab and select Throw Exception. Throw Exception ......
Read more >
HowTo Raise an exception during debug
I am working with IntelliJ 6.0 to debug a tomcat server (jboss). ... Exception not NullPointerException) will be thrown and be caught on ......
Read more >
IDEA 2016.3: Throwing an Exception during Debugging
I'm trying to accomplish the following scenario in IntelliJ IDEA 2016.3: During remote debugging of a Java web application (running on Weblogic) ...
Read more >
Debugging exception handlers – IDEs Support (IntelliJ Platform)
I'm trying to debug and I've traced an exception to some third party code: catch { case e:Exception=> { throw new RuntimeException("could ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found