-
Notifications
You must be signed in to change notification settings - Fork 860
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
Exception opening a Spring Initializr project template #8054
Comments
Something tells me that's your problem. Make sure the version of Lombok is compatible with JDK 23 (the compiler used inside the IDE) and see if the problem goes away. Probably a duplicate of #7664 |
My project is running on JDK 17 and I have not installed JDK 23. |
Probably a duplicate of #8041 |
The javac compiler used inside NetBeans is from JDK 23. I'm not sure where the Lombok version is being specified. The error might suggest that it is not being found. Make the dependency on version 1.18.36 explicit in your pom and try again. |
I have found something interesting while editing the pom.xml.
The maven-compiler-plugin configuration of the generated pom.xml breaks the IDE:
If I specify the lombok version inside the plugin / configuration / annotationProcessorPaths / path, all IDE feature are working properly. Setting this version field to 1.18.34 works too.
|
…essors like lombok) Resolution of processors also needs to take into account, that for example the version for an artifact could be provided by DependencyManagement. Closes: apache#8054 Closes: apache#8041
The classpath resolution code is missing quering the DependencyManagment for the plugin version that is correctedin #8057. Please test the nightly build Checks page direct link. |
Thanks @matthiasblaesing Had just started looking at that having reached the same realisation. Mention of Lombok made me just assume that was the usual issue at first! 🤷 |
…essors like lombok) Resolution of processors also needs to take into account, that for example the version for an artifact could be provided by DependencyManagement. Closes: apache#8054 Closes: apache#8041
Apache NetBeans version
Apache NetBeans 24 release candidate
What happened
I have created a Spring Boot project on Spring Initializr and opened it both with Netbeans 22 and 24.
Syntax highlight works, syntax check, autocomplete, class import suggestion and some of other features don't.
I can run maven "spring-boot:run" from the goals and it starts the application.
The issue:
When I open a class file from the project I experience issues with lots of Netbeans functionality. Syntax highlight works, syntax check, autocomplete, class import suggestion and some of other features don't. I get the following exception:
Language / Project Type / NetBeans Component
Java Maven Web application project from Spring Initializr sources
How to reproduce
Please create a Spring Boot project on Spring Initializr with the following settings:
Project: Maven
Language: Java
Spring Boot: 3.3.6
Packaging: War
Java: 17
Add a single dependency for Proof of Error: Lombok.
Download the project and open it either in Netbeans 22 or 24.
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows 11
JDK
Oracle JDK 17.0.11+7-LTS-207
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
The issue is 100% reproducible every time I open a source file from the downloaded project template.
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered: