You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/10/12 10:18:48 UTC

[GitHub] [netbeans] makiam opened a new issue, #4779: Gradle project becomes unloadable with some attached plugins

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

   ### Apache NetBeans version
   
   Apache NetBeans latest daily build
   
   ### What happened
   
   Some gradle plugins becomes project unloadable and show error
   
   
   ### How to reproduce
   
   I create minimal gradle project with only build.gradle file and sources folder exist
   Only plugins section and description is defined in build script
   ```
   plugins {
   	id 'java'
           id 'application'        
           id "edu.sc.seis.launch4j" version "2.5.3"
           id "kr.motd.sphinx" version "2.10.0"    
   }
   
   description = 'MyApplication'
   ```
   Opening this project shows  Cannot Load Project popup and project properties dialog shows Project Unloadable arning
   
   Once I comment launch4j plugin the errors disappears
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 14
   
   ### Operating System
   
   Windows 10
   
   ### JDK
   
   JDK 18.0.2
   
   ### Apache NetBeans packaging
   
   Own source build
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
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-unsubscribe@netbeans.apache.org.apache.org

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


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

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


[GitHub] [netbeans] lkishalmi commented on issue #4779: Gradle project becomes unloadable with some attached plugins

Posted by GitBox <gi...@apache.org>.
lkishalmi commented on issue #4779:
URL: https://github.com/apache/netbeans/issues/4779#issuecomment-1280235572

   Does launch4j support Java 18?


-- 
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-unsubscribe@netbeans.apache.org

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


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

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


[GitHub] [netbeans] makiam commented on issue #4779: Gradle project becomes unloadable with some attached plugins

Posted by GitBox <gi...@apache.org>.
makiam commented on issue #4779:
URL: https://github.com/apache/netbeans/issues/4779#issuecomment-1280448082

   My IDE successfully compiles project and creates exe file with JDK 18 but shows this load error


-- 
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-unsubscribe@netbeans.apache.org

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


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

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


[GitHub] [netbeans] makiam commented on issue #4779: Gradle project becomes unloadable with some attached plugins

Posted by GitBox <gi...@apache.org>.
makiam commented on issue #4779:
URL: https://github.com/apache/netbeans/issues/4779#issuecomment-1280460575

   Issue reproduced also with old JDK9


-- 
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-unsubscribe@netbeans.apache.org

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


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

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


[GitHub] [netbeans] makiam commented on issue #4779: Gradle project becomes unloadable with some attached plugins

Posted by "makiam (via GitHub)" <gi...@apache.org>.
makiam commented on issue #4779:
URL: https://github.com/apache/netbeans/issues/4779#issuecomment-1570655058

   I just compile netbeans build with more verbose logging and see that toggling launch4j plugin in build gives stackoverflow exception inside gradle tooling module.
   See attached trace.txt
   Hope this helps
   [trace.txt](https://github.com/apache/netbeans/files/11617381/trace.txt)
   


-- 
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-unsubscribe@netbeans.apache.org

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


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

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


[GitHub] [netbeans] TetraTheta commented on issue #4779: Gradle project becomes unloadable with some attached plugins

Posted by "TetraTheta (via GitHub)" <gi...@apache.org>.
TetraTheta commented on issue #4779:
URL: https://github.com/apache/netbeans/issues/4779#issuecomment-1666384364

   I have same problem with these:
   
   * Windows 11 22H2 (OS build: 22621.2070)
   * openjdk 17.0.7 2023-04-18  
     OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7)  
     OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, sharing)
   * Apache NetBeans IDE 18
   * `id 'edu.sc.seis.launch4j' version '3.0.4'`
   
   If I comment launch4j plugin, NetBeans loads Gradle project without any issue. But if I uncomment that single line, NetBeans throws me either one of these error message:
   
   * `Could not run build action using connection to Gradle installation <path_to_gradle_installation_dir_under_%GRADLE_USER_HOME%>`  
   * `Could not run build action using connection to Gradle distribution <url_of_services.gradle.org>`  
     Only when I removed everything under `%GRADLE_USER_HOME%` and open the project


-- 
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-unsubscribe@netbeans.apache.org

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


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

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


[GitHub] [netbeans] makiam commented on issue #4779: Gradle project becomes unloadable with some attached plugins

Posted by GitBox <gi...@apache.org>.
makiam commented on issue #4779:
URL: https://github.com/apache/netbeans/issues/4779#issuecomment-1281018761

   ![изображение](https://user-images.githubusercontent.com/16633367/196213154-3cb12f60-eafc-4ae2-8991-3cba1eac8fd6.png)
   See no exceptions in IDE log


-- 
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-unsubscribe@netbeans.apache.org

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


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

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


[GitHub] [netbeans] lkishalmi commented on issue #4779: Gradle project becomes unloadable with some attached plugins

Posted by GitBox <gi...@apache.org>.
lkishalmi commented on issue #4779:
URL: https://github.com/apache/netbeans/issues/4779#issuecomment-1280945024

   > Issue reproduced also with old JDK9
   
   By that, do you mean NetBeans was running on JDK 9? Also please check the IDE Log. There should be an exception reported there.


-- 
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-unsubscribe@netbeans.apache.org

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


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

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


Re: [I] Gradle project becomes unloadable with some attached plugins [netbeans]

Posted by "victorwss (via GitHub)" <gi...@apache.org>.
victorwss commented on issue #4779:
URL: https://github.com/apache/netbeans/issues/4779#issuecomment-1744240216

   Due to this bug, Spotbugs is unusable in NetBeans with Gradle at this moment.


-- 
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-unsubscribe@netbeans.apache.org

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


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

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


Re: [I] Gradle project becomes unloadable with some attached plugins [netbeans]

Posted by "victorwss (via GitHub)" <gi...@apache.org>.
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: notifications-unsubscribe@netbeans.apache.org

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


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

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


Re: [I] Gradle project becomes unloadable with some attached plugins [netbeans]

Posted by "sdedic (via GitHub)" <gi...@apache.org>.
sdedic closed issue #4779: Gradle project becomes unloadable with some attached plugins
URL: https://github.com/apache/netbeans/issues/4779


-- 
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-unsubscribe@netbeans.apache.org

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


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

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