mbien commented on PR #9560:
URL: https://github.com/apache/netbeans/pull/9560#issuecomment-5282660772

   thanks for looking into this. The key puzzle peace was the fact that 
`printMessage()` wouldn't display in UI when no element was passed as 
parameter. Given that it was already used that way (but it didn't work?), I 
assumed It must be me looking at the wrong place.
   
   I made some changes on top of this PR:
    - switch back to generic (but improved) AP message: even though the changes 
here are mainly due to lombok, lets try to make the improvements useful for all 
APs
    - use `SourceVersion.latest().runtimeVersion().feature()` instead of 
constant as msg parameter
    - use `printStackTrace(writer)` to format exception to make it look "native"
    - add jar location, AP name and javac version to exception message
    - clear class cache on AP failure
   
   commit would be at 
https://github.com/mbien/netbeans/tree/improve-ap-error-messages, let me know 
what you think.
   
   screenshot:
   <img width="883" height="605" alt="ap" 
src="https://github.com/user-attachments/assets/2c63ea66-e2d7-475d-bce3-0fa8d2b6a027";
 />
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to