-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
0.16.1 javac cannot find nashorn symbols #6060
Comments
I can build your reproducer on Bazel 0.16.1, 0.17-rc1 and Bazel@HEAD (c8e6796) without any issue (on openSUSE Linux). The problem should be on your side. Moreover, trying to run your example (you missed to add
My environment:
Here is my patch: [2]. |
On my laptop it compiles correctly for every dev build I've done (building |
I did a bit of digging today into why
|
I can reproduce. That build produces a binary without an embedded JDK, so if it picks up a JDK 8 from
... which doesn't include The issue is the same as Bazel at head (f3f960c) in this configuration:
Using the default |
@laurentlb @cushon Is this a release blocker for Bazel 0.17? |
It's too late for 0.17, but you can try to have it in 0.18 (#5963). |
I'll defer to @lberki on the priority. Note that this only affects |
Let's not try extra hard to get it in 0.18 then. Cherry-picks are supposed to be for regressions only and cutting 0.18 is imminent. |
@cushon re: priority -- do I understand correctly that this applies for every class under |
How is this not a regression? The project I am working on built with 0.16.0 and doesn't build with 0.16.1 and by the sounds of it, won't build with 0.17. |
@lberki I would be super grateful if we can get this in The company that I work for has had a bazel build in place for like a year while some higher ups in our company have compared it against our maven and decided if its a thing that they think is worth going ahead with. Very recently they decided that they were onboard with it and that they are going to remove the maven build in favour of bazel because of the ridiculous difference in build time. We are now looking at a bunch of devs being about to install bazel for the first time on their devices and the version that they will download will not able to compile our project. |
|
Sorry, I guess I mean I would appreciate a fix for this being in a release as soon as you guys can make it work, whatever version that may be. |
(@lberki has a fix in progress. Thanks!) I realized I'm still confused about something here:
why does Generally we always recommend the embedded JDK binaries. They also allow Bazel to use the default @BrentDouglas is it possible to use one of the binaries we distribute, or if you prefer to build it yourself to use |
I split my question above out into #6131. |
Fixes #6060. RELNOTES: None. PiperOrigin-RevId: 212493359
After discussion with @dslomov, it's a regression of 0.16.1. So we should ideally try to cherrypick the fix in 0.16.2, 0.17.1 and 0.18.0. (I can't promise yet, because there are other issues and cherrypicks tend to conflict with each other) |
Fixes #6060. RELNOTES: None. PiperOrigin-RevId: 212493359
Fixes #6060. RELNOTES: None. PiperOrigin-RevId: 212493359
Fixes #6060. RELNOTES: None. PiperOrigin-RevId: 212493359
Fixes #6060. RELNOTES: None. PiperOrigin-RevId: 212493359
Fixes #6060. RELNOTES: None. PiperOrigin-RevId: 212493359
Fixes #6060. RELNOTES: None. PiperOrigin-RevId: 212493359
Fixes #6060. RELNOTES: None. PiperOrigin-RevId: 212493359
Fixes #6060. RELNOTES: None. PiperOrigin-RevId: 212493359
Fixes #6060. RELNOTES: None. PiperOrigin-RevId: 212493359
Fixes #6060. RELNOTES: None. PiperOrigin-RevId: 212493359
Fixes bazelbuild#6060. RELNOTES: None. PiperOrigin-RevId: 212493359
Fixes #6060. RELNOTES: None. PiperOrigin-RevId: 212493359
Description of the problem / feature request:
Updating bazel from 0.16.0 to 0.16.1 causes java_library rules using classes from jdk.nashorn.api.scripting to fail to compile with the error
error: package jdk.nashorn.api.scripting does not exist
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
This repo has a minimal test that shows the failure on 0.16.1 and success with 0.16.0 https://github.com/BrentDouglas/bazel-nashorn
What operating system are you running Bazel on?
Archlinux
What's the output of
bazel info release
?release 0.16.1- (@non-git)
If
bazel info release
returns "development version" or "(@non-git)", tell us how you built Bazel.It is from pacman, installed with
pacman -S bazel
The text was updated successfully, but these errors were encountered: