-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Annotation processor option with space breaks header compiler parsing #19360
Comments
Add a test to reproduce bazelbuild/bazel#19360 Fixes #272 FUTURE_COPYBARA_INTEGRATE_REVIEW=#272 from guw:main b2b7c2b PiperOrigin-RevId: 564393335
Add a test to reproduce bazelbuild/bazel#19360 Fixes #272 COPYBARA_INTEGRATE_REVIEW=#272 from guw:main b2b7c2b PiperOrigin-RevId: 564447484
Considering that the java rules tokenize javacopts, I would expect
to fail with an error like @guw Does this need something more to reproduce? |
@hvadehra Not that I am aware of. Which tokenization are you referring to? Do you have a link to the code? |
Ah ... thanks for sharing that code. I omitted a tiny detail:
The correct value is:
This is handled/supported by the tokenization. |
Ah, thanks, that makes sense. Looks like JavaBuilder behaves as expected and it's only turbine that is splitting this incorrectly. Presumably this has been fixed by google/turbine#272, so all we need now is a turbine release and updating that in Bazel. |
Add a test to reproduce bazelbuild/bazel#19360 Fixes google#272 COPYBARA_INTEGRATE_REVIEW=google#272 from guw:main b2b7c2b PiperOrigin-RevId: 564447484
Description of the bug:
Turbine header compiler fails to compile java_library with annotation processor because annotation processor options from javacopts are not passed to the header compiler.
Bazel fails with:
Inspecting the
.param
files show the javacopt are actually passed to the header compiler. It looks like the header compiler is not passing them to the annotation processor.This looks to be related to the space in the annotation processor option.
It's added as a single line in the
.params
file but the Turbine header compiler seems to parse it incorrectly.Which category does this issue belong to?
Java Rules
What is the output of
bazel info release
?6.3.2
The text was updated successfully, but these errors were encountered: