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

[BUG] Lombok stop working on Eclipse 4.18.0 #3374

Closed
danibs opened this issue Mar 16, 2023 · 6 comments
Closed

[BUG] Lombok stop working on Eclipse 4.18.0 #3374

danibs opened this issue Mar 16, 2023 · 6 comments

Comments

@danibs
Copy link

danibs commented Mar 16, 2023

Describe the bug
Annotation @Data doesn't create fluent setter.

To Reproduce

@Data
public class ResultBean {
	private String id;
	private String code;
}

final ResultBean r1 = new ResultBean().setId( "1" ).setCode( "c1" );
  --> _Cannot invoke setCode(String) on the primitive type void_

Version info (please complete the following information):

  • Lombok version: 1.18.26
  • Eclipse Version: 4.18.0.RELEASE ( Spring Tool Suite 4 ) - Build Id: 202303131455
  • S.O. Ubuntu 18.04
  • Java 17
@danibs danibs changed the title [BUG] Lombok stop working with Eclipse 4.18.0 [BUG] Lombok stop working in Eclipse 4.18.0 Mar 16, 2023
@danibs danibs changed the title [BUG] Lombok stop working in Eclipse 4.18.0 [BUG] Lombok stop working on Eclipse 4.18.0 Mar 16, 2023
@dstango
Copy link

dstango commented Mar 16, 2023

I think you mixed up versions here: Spring Tools 4.18.0 is based on Eclipse 2023-03 (aka Eclipse 4.27).

Anyhow: your error seems to be related to #3332, as the error message indicates that your lombok.config might contain lombok.accessors.fluent = true (see https://projectlombok.org/features/experimental/Accessors).

@danibs
Copy link
Author

danibs commented Mar 16, 2023

In my case the property is lombok.accessors.chain = true but yes, I think you catch the real problem!

@dstango
Copy link

dstango commented Mar 16, 2023

yes, I picked the wrong config option, sorry :-)

@luca-bassoricci
Copy link

luca-bassoricci commented Mar 17, 2023

also lombok.log.fieldName stops to work after Eclipse upgrade

Eclipse IDE for Java Developers (includes Incubating components)

Version: 2023-03 (4.27.0)
Build id: 20230309-1520
(c) Copyright Eclipse contributors and others 2000, 2023. All rights reserved. Eclipse and the Eclipse logo are trademarks of the Eclipse Foundation, Inc., https://www.eclipse.org/. The Eclipse logo cannot be altered without Eclipses permission. Eclipse logos are provided for use under the Eclipse logo and trademark guidelines, https://www.eclipse.org/logotm/. Oracle and Java are trademarks or registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.

This product includes software developed by other open source projects including the Apache Software Foundation, https://www.apache.org/.

Lombok v1.18.26 "Envious Ferret" is installed. https://projectlombok.org/

@dstango
Copy link

dstango commented Mar 17, 2023

also lombok.log.fieldName stops to work after Eclipse upgrade

All this seems to be a result of #3332, so I'd guess these issues all to be duplicates of #3332.

@Rawi01
Copy link
Collaborator

Rawi01 commented Mar 22, 2023

#3332 is fixed and there will be a release soon

@Rawi01 Rawi01 closed this as completed Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants