TetraTheta opened a new issue, #6303: URL: https://github.com/apache/netbeans/issues/6303
### Apache NetBeans version Apache NetBeans 18 ### What happened Unlikely to other IDEs like IntelliJ IDEA or Eclipse, NetBeans IDE doesn't terminate Gradle Daemon after IDE is closed. I've checked if the Gradle Daemon is created from NetBeans or not with System Informer. <details><summary>Click to expand detailed information with screenshot</summary>  `netbeans64.exe`(PID 10588) created `java.exe`(PID 2072) as its 'child process / subprocess'(I don't know how to call this correctly). As you can see, the `java.exe` is Gradle Daemon. Now I close NetBeans IDE.  `java.exe`(PID 2072) is now orphaned. You can distinguish this `java.exe` is the same `java.exe` at the first screenshot by its PID and command argument. </details> Maybe this is intended behavior. But I think if it is intended, NetBeans should provide option for disable that behavior. I tried other IDEs like IntelliJ IDEA or Eclipse, and they properly terminated Gradle Daemon after closing them. ### How to reproduce 0. Check if there is any `java.exe` is running & close it This is not that important, but I'm doing this to make sure that the orphaned `java.exe` is created by NetBeans IDE. 1. Open NetBeans IDE 18 I enabled following plugins to use Gradle with NetBeans IDE * Gradle Editor Support * DuckScript Gradle Project Wizard * Gradle Projects Distributions * Gradle * Gradle Projects * Groovy 2. Run Gradle task at least once In my configuration, Gradle Daemon is not started automatically. So, to initialize Gradle Daemon, I have to run Gradle task to initialize it. 3. Check if any Gradle task is running Do not close IDE while Gradle task is running. I think IDE would show warning about that if Gradle task is still running anyway. 4. Close IDE 5. Check if Gradle Daemon(`java.exe`) is still running ### Did this work correctly in an earlier version? No / Don't know ### Operating System Windows 22H2 (OS build: 22621.2070) ### JDK 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 packaging Apache NetBeans provided installer, Apache NetBeans binary zip ### Anything else I'm not sure if this is related to other issue which NetBeans IDE cannot load Gradle task properly, making external dependencies as 'missing dependencies' even though it is specified at `build.gradle` (will post a issue about it soon). Maybe https://github.com/apache/netbeans/issues/4419 would be related to this. But the issue is closed and a year ago, I think I should just open a new issue about this. ### 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: [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
