Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessibility of runtime_deps and transitive deps #1825

Closed
dhalperi opened this issue May 13, 2020 · 9 comments
Closed

Accessibility of runtime_deps and transitive deps #1825

dhalperi opened this issue May 13, 2020 · 9 comments

Comments

@dhalperi
Copy link

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!

@brendandouglas
Copy link
Contributor

brendandouglas commented May 15, 2020 via email

@dhalperi
Copy link
Author

Thanks for the info!

I'm guessing this works for Blaze - there's a monorepo, no such thing as external deps really, since folks use copybara instead.

Seems an ill fit for Bazel where external projects is a recommended way to operate. (But I am generally aware Bazel support is not much of a concern for this team.)

@brendandouglas
Copy link
Contributor

brendandouglas commented May 15, 2020 via email

@ittaiz
Copy link
Member

ittaiz commented 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?

@dhalperi
Copy link
Author

@ittaiz I might take a look at implementing such a feature, if at least to see whether it might be worth forking.

@brendandouglas
Copy link
Contributor

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

@sgowroji
Copy link
Member

Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so.

@sgowroji sgowroji closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2023
@dhalperi
Copy link
Author

dhalperi commented Feb 9, 2023

I don't think anything has changed with respect to why this is a big problem.

@dhalperi
Copy link
Author

dhalperi commented Feb 9, 2023

Please reopen if you’d like to discuss

I don't seem to have this power, FYI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants