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.

Accessibility of runtime_deps and transitive deps

See original GitHub issue

Hey,

We’re (cc: @arifogel) having a heck of a time trying to understand how the IntelliJ plugin handles transitive deps. The issue we’re having is that only direct compile dependencies (hjars for bazel-built or maven jars) are in External Libraries. When we’re debugging, we’re unable to see source code for or set breakpoints in the runtime_deps or the dependencies of our direct compile dependencies.

Adding them to the bazelproject, e.g., targets: @external_project//some/java_library does not make that library indexable.

Is there a different recommended approach to solve this problem?

Thanks!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
ittaizcommented, May 16, 2020

I want to emphasize Brendan’s point- I think this specific issue is not related to blaze/bazel as the issue isn’t external workspaces but debugging transitive deps. Brendan- there isn’t a setting or something to allow loading all transitive deps as external libraries? Sounds like this can be an easy fix which could be only available to Bazel. Wdyt?

0reactions
brendandouglascommented, May 28, 2020

We could add that feature to the plugin – JavaWorkspaceImport / JavaSourceFilter is the code which limits which deps are added as libraries.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transitive dependencies brought by provided scope and ...
We face an issue when a same artifact-X is transitively brought by a dependency-1 with provided scope, and another dependency-2 with default ...
Read more >
Transitive Dependencies: How much can you trust friends of ...
In this post, we'll see why it is important to get visibility on dependencies of the Open Source components your apps are using...
Read more >
implementation transitive deps not available in runtime CP ...
Our armchair diagnosis: when a project has test dependencies which have `implementation` transitive dependencies, those transitive dependencies don't appear on ...
Read more >
Mastering Maven: Dependency Basics - Oracle Blogs
In this post we'll continue our exploration of Apache Maven features by learning the basics on dependency resolution.
Read more >
3.4.1. Dependency Scope - TheNEXUS | A Community Project
Transitive dependencies which are compile and runtime scoped usually affect a project regardless of the scope of a direct dependency. Transitive dependencies ...
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