-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
[BUG] 'Symbol' not recognized. Getters and Setters. #3804
Comments
Here I'm with same problem as @patrickfeeney03, I tried several projects with spring boot 3.4.1, java 21, maven h2/postgres/mysql, jpa/hibernate, kafka and so on.. but org.projectlombok:lombok:1.18.36 is no longer working properly. |
Try commenting out what I commented out in my pom. May help you. For now ... |
Это сработало, но не уверен, почему именно. Возможно, дело в зависимости или конфигурации, которую я добавил, но я не разбирался в этом глубже. <dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>annotationProcessor</scope>
</dependency>
|
I have the same problem.And my project uses idk 17, when I run 'mvn clean install' ,all the getters and setters can't be found.i tried everything on the web but none of them are helpful.I am afraid I have to use jkd1.8 and springboot2 for a probably well functioned Lombok or just write all the getters and setters by myself 😭 |
try to do what I did. It's at the very top of this, in the pom file. lmk |
Describe the bug
Getters and setters are not being created. Seems to work fine until compilation. If I comment out a plugin in the Pom file the issue goes away. This has happened to other colleagues recently (last week).
To Reproduce
Create a Spring project with Maven and Java 21. With dependencies Spring Boot DevTools, Lombok, Spring Web, JDBC API, Spring Data JPA, MySQL Driver, Spring for RabbitMQ, Validation, CycloneDX SBOM support, Cloud Bootstrap, OpenFeign.
This is the Pom that I am using. You can see the commented out lines. If I don't do this I will get errors saying java: cannot find symbol symbol: method getName(). For all of setters and getters that are supposed to be created with Lombok @DaTa
Usage example:
user.setName(signUpRequest.getName());
Expected behavior
I expected that after creating the project using the generation provided by Intellij I would be able to use the setters and getters from Lombok. I did not manually modify the POM.
The text was updated successfully, but these errors were encountered: