Accessibility of runtime_deps and transitive deps
See original GitHub issueHey,
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:
- Created 3 years ago
- Reactions:1
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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?
We could add that feature to the plugin – JavaWorkspaceImport / JavaSourceFilter is the code which limits which deps are added as libraries.