victorwss commented on issue #4779:
URL: https://github.com/apache/netbeans/issues/4779#issuecomment-1759011036

   Trying to build a gradle project that uses the spotbugs plugin in Netbeans 
makes Netbeans fail the build with an empty message error and mark the project 
as unloadable and fallbacking to Java 5 (yikes!).
   
   Netbeans 19 (but it also happened in older versions)
   Java 21 (but I also tested with 20)
   Gradle 8.4 (but I also tested with 8.3)
   Spotbugs gradle plugin 6.0.0-beta4
   Spotbugs 4.7.3
   
   Since it runs perfectly when running Gradle on CMD an it only goes nuts in 
Netbeans, It fails to load giving a blank error message and fallbacks to Java 5 
(a very unfortunate choice for a fallback, since this spuriously makes about 
everything in the code being marked as an error).
   
   I created a minimal Hello World with a minimal gradle with spotbugs file to 
show the problem: https://github.com/victorwss/min-spotbugs-gradle
   
   It seems that as soon as I add `id("com.github.spotbugs") version 
"6.0.0-beta.4"` in the gradle build script, Netbeans go nuts.
   
   Running it in the console:
   
   ```
   C:\Projects\min-spotbugs-gradle>gradle build
   
   BUILD SUCCESSFUL in 657ms
   6 actionable tasks: 6 up-to-date
   C:\Projects\min-spotbugs-gradle>gradle run
   
   > Task :run
   Hello World
   
   BUILD SUCCESSFUL in 732ms
   2 actionable tasks: 1 executed, 1 up-to-date
   ```
   
   Opening it in Netbeans 19:
   
   
![image](https://github.com/apache/netbeans/assets/4574568/5ed6394c-5292-4e3e-9bfa-8933129d1815)
   
![image](https://github.com/apache/netbeans/assets/4574568/1f9bc72a-78c3-4443-b261-1417579e6ac5)
   
   I don't know for sure about other plugins, but I think that the cause is the 
same.


-- 
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