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

No such package remotejdk_win #7734

Closed
ozio85 opened this issue Mar 15, 2019 · 3 comments
Closed

No such package remotejdk_win #7734

ozio85 opened this issue Mar 15, 2019 · 3 comments
Labels
team-Rules-Java Issues for Java rules untriaged

Comments

@ozio85
Copy link

ozio85 commented Mar 15, 2019

Description of the problem / feature request:

When trying to run GoogleTest on windows, I get:
"bazel_tools/tools/jdk/BUILD:305:1: no such package '@remotejdk_win//': java.io.IOException: thread interrupted and referenced by '@bazel_tools//tools/jdk:remote_jdk'"

According to what I have read in the manual, it seems that this package should be downloaded automatically? I am working behind a proxy, so this can be a factor as well. However, all other workspace rules works, so my question is then: Why is remotejdk_win special?

I can get it to work by selecting my local java installation:
--host_javabase=@local_jdk//:jdk

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

I have provided a minimal repro, that use GoogleTest and runs a simple unittest:
Repro.zip

What operating system are you running Bazel on?

Windows 10

What's the output of bazel info release?

0.22.0, (tested also with 0.23.1, same behavior)

Have you found anything relevant by searching the web?

Any other information, logs, or outputs that you want to share?

Repro.zip

@aiuto aiuto added team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. untriaged labels Mar 18, 2019
@dslomov dslomov added team-Rules-Java Issues for Java rules and removed team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. labels Mar 21, 2019
@Globegitter
Copy link

Globegitter commented Mar 25, 2019

We where also seeing something similar just now in ci:

(11:19:46) ERROR: error loading package '': Encountered error while reading extension file 'python/pip.bzl': no such package '@io_bazel_rules_python//python': java.io.IOException: thread interrupted
(11:19:46) ERROR: error loading package '': Encountered error while reading extension file 'python/pip.bzl': no such package '@io_bazel_rules_python//python': java.io.IOException: thread interrupted

Maybe something failed during download of the external package and poisoned the cache?

Rerunning ci did fix the issue and we are currently running on 0.23.0rc1.

@ozio85
Copy link
Author

ozio85 commented Apr 16, 2019

For me.. no .. I can start from a fresh build, and still get the error..

@ozio85
Copy link
Author

ozio85 commented May 9, 2019

It seems it is some kind of combination of proxy settings, and settings not forwarded correctly. I have managed to get it to work, so I will close this issue.

One problem is that even if i wanted to have it local (i do not want to download java), even if I set host_javabase and javabase, Bazel will try to download remote_java_tools_windows..

@ozio85 ozio85 closed this as completed May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Rules-Java Issues for Java rules untriaged
Projects
None yet
Development

No branches or pull requests

4 participants