yaskor opened a new issue, #8215:
URL: https://github.com/apache/netbeans/issues/8215

   ### Apache NetBeans version
   
   Apache NetBeans 24
   
   ### What happened
   
   **Summary:**
   
   After updating to NetBeans VS Code plugin version 24.9.9, Lombok annotations 
fail to work, while they worked correctly in version 24.0.0. The issue appears 
to be related to a class loading problem in the annotation processor.
   
   **Expected Behavior:**
   
   Lombok should work as expected, generating the required methods (getters, 
setters, etc.) without any errors.
   
   **Actual Behavior:**
   
   Lombok fails with the following error in the Problems tab:
   
   `
   Can't initialize javac processor due to (most likely) a class loader 
problem: java.lang.NoClassDefFoundError: Could not initialize class 
lombok.javac.Javac
   `
   
   `
   Caused by: java.lang.ExceptionInInitializerError: Exception 
java.lang.NoSuchFieldException: com.sun.tools.javac.code.TypeTag :: UNKNOWN
     at lombok.permit.Permit.getField(Permit.java:144)
     at 
lombok.javac.JavacTreeMaker$SchroedingerType.getFieldCached(JavacTreeMaker.java:171)
     at lombok.javac.JavacTreeMaker$TypeTag.typeTag(JavacTreeMaker.java:259)
     at lombok.javac.Javac.<clinit>(Javac.java:187)
   `
   
   
   
   ### Language / Project Type / NetBeans Component
   
   _No response_
   
   ### How to reproduce
   
   **Steps to Reproduce:**
   
   - Install or update to NetBeans VS Code plugin version 24.9.9.
   - Use a Java project that relies on Lombok (e.g., with @Getter, @Setter, 
etc.).
   - Open a Java class that contains Lombok annotations.
   - Observe errors in the Problems tab.
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 10 x64
   
   ### JDK
   
   JDK 21
   
   ### Apache NetBeans packaging
   
   Apache VSNetBeans for VSCode
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to