-
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
Turbine: error: missing required annotation argument: <clinit> #13758
Comments
This seems like just updating the third_party dependency will fix it. |
I hope it should. What is the process around this? |
Someone on the bazel team has to update things in //third_party. |
cc @comius The turbine fix made it into java_tools v11.2 per #13144 (comment), this will be fixed in Bazel 4.2 |
I was running into this issue on Bazel 4.1.0. Just tried upgrading to Bazel 4.2.0 and I still have the issue. Was this maybe missed? Does anyone know if there's a work-around for the time being? |
@comius did the java_tools update not make it into 4.2.0? @twheys does adding this to your |
Hi @cushon - I tried adding the java_tools 11.3 rules to my WORKSPACE file and that results in some errors about missing targets. I tried running
|
FYI @comius |
Bazel 4.2.x is using the old Java resolution mechanism, so it has java_tools 10.6. (java_tools 11.x don't work with it). Since it's a LTS, we should update old java_tools. It requires hand crafting a back-patch. |
4.2.0 lists turbine fix as cherry picked. However, I think it was missed, as the version on 4.2.0 is not right (see below). This probably why folks are still seeing issue on 4.2.x ? cc @comius EDIT : the JAR checked in are actually not used by bazel binaries. Turbine is pulled instead from java_tools, which are still on 10.6 for bazel 4.2.0, hence don't contain the fix. Here is the workaround :
|
I made a new release of java_tools v10.7, https://github.com/bazelbuild/java_tools/releases/tag/javac11_v10.7. This issue should be fixed by including http_archives mentioned in the release notes into the WORKSPACE files (without any need to do custom toolchains). That is if you're on Bazel 4.x.x. Bazel 5.0.0 should have no such issues. |
Description of the problem / feature request:
Have a java + spring target that builds successfully but fails during Intellij sync.
I was able to checkout
turbine
and reproduce the bahavior - it works on latest master of turbine.It seems this has been fixed in
turbine
5 month ago google/turbine@617a8f6 but bazel still has the old version of turbine.What operating system are you running Bazel on?
MacOs, Linux
What's the output of
bazel info release
?release 4.1.0- (@non-git)
If
bazel info release
returns "development version" or "(@Non-Git)", tell us how you built Bazel.from nix
Have you found anything relevant by searching the web?
https://stackoverflow.com/questions/45656877/crossorigin-annotation-doesnt-compile
google/turbine@617a8f6
The text was updated successfully, but these errors were encountered: