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

Fetching scala library sources bazel-deps with rules_scala #908

Closed
tian000 opened this issue Dec 28, 2019 · 5 comments
Closed

Fetching scala library sources bazel-deps with rules_scala #908

tian000 opened this issue Dec 28, 2019 · 5 comments

Comments

@tian000
Copy link
Contributor

tian000 commented Dec 28, 2019

When I use bazel deps in my repository, it puts the scala standard library under external which means intelliJ doesn't know where to find the sources for it. Is there a way to set up scala_repositories so that intelliJ attaches the sources correctly?

image

@tian000
Copy link
Contributor Author

tian000 commented Dec 28, 2019

The workaround I currently have is to propagate a new parameter fetch_sources from scala_maven_import_external up to scala_repositories which allows me to specify scala_repositories(fetch_sources = True). This causes the source jar file to be downloaded, and I can manually select it from this directory:

image

@ittaiz
Copy link
Member

ittaiz commented Dec 28, 2019 via email

@olib963
Copy link

olib963 commented Feb 24, 2020

This would be a nice feature as it would also allow for downloading of sources for scalatest without having to implement your own scala_repositories.

@tian000
Copy link
Contributor Author

tian000 commented Apr 5, 2020

@ittaiz What is the protocol on closing issues. Should I close this issue?

@ittaiz
Copy link
Member

ittaiz commented Apr 6, 2020

Hi,
Thanks for following up on this.
The protocol is actually for the PR to mention that it fixes this and so the issue would have been closed.
I missed the fact that the PR mentioned the issue but didn’t say it fixed it.
Thanks!

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

No branches or pull requests

3 participants