bazel icon indicating copy to clipboard operation
bazel copied to clipboard

Bazel 7.0.0 & Lombok 1.18.30 issue

Open liam-kincaid opened this issue 2 years ago • 3 comments

Description of the bug:

sample-1.0.0.tar.gz

I create a Bzlmod 7.0.0 with lombok 1.18.30 and Java 17 Why i do this, to have a custom "build" method with hibernate validation for an immutable entity

Archive contains a demo of my issue Here is the issue during JAVA 17 compilation:

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging

src/main/java/entity/User.java:60: error: could not resolve element onParam_() in lombok.With
		@With(onParam_={
        ^
src/main/java/entity/User.java:63: error: could not resolve element onMethod_() in lombok.With
		}, onMethod_={
     ^
src/main/java/entity/User.java:68: error: could not resolve element onParam_() in lombok.With
		@With(onParam_={
        ^
src/main/java/entity/User.java:72: error: could not resolve element onMethod_() in lombok.With
		}, onMethod_={
     ^
src/main/java/entity/User.java:77: error: could not resolve element onParam_() in lombok.With
		@With(onParam_={
        ^
src/main/java/entity/User.java:82: error: could not resolve element onMethod_() in lombok.With
		@With(onMethod_={
        ^
<>: error: Turbine is not currently supported by lombok.

It seem to appear only with "onMethod_" and "onParam_" attribut with Lombok. A pom.xml is also join and compilation & test are successfull

Which category does this issue belong to?

No response

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

No response

Which operating system are you running Bazel on?

Ubuntu 23.10

What is the output of bazel info release?

release 7.0.0

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

No response

Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.

No response

liam-kincaid avatar Dec 30 '23 17:12 liam-kincaid

Did this work for you with earlier Bazel versions? There are known pre-existing issues with Lombok: https://github.com/bazelbuild/bazel/issues/12837

cushon avatar Jan 02 '24 21:01 cushon

I have made test also with 6.3.2 with the same consequences. It seam to be a duplicate if I understand. Right ?

As-you can see, a TGZ with the modification propose in #12837 is used

liam-kincaid avatar Jan 03 '24 19:01 liam-kincaid

Thanks, yes, it sounds like a duplicate

cushon avatar Jan 03 '24 20:01 cushon