Port Cleanup on Theia IDE Close - Best Practices? #16511
Replies: 2 comments 4 replies
-
|
Hey @Subham7201, Theia is supposed to terminate these processes on its own. It looks like you're running into #15528, but we've failed to reproduce this issue. If you like, you can post more context in there to help us reproduce and fix the issue. |
Beta Was this translation helpful? Give feedback.
-
|
Hi @msujew, Thanks for your quick response. I’ve verified that WMIC is present on my system. The issue only occurs when the application is packaged through Electron (as an However, in the development environment, the ports are properly released and everything works as expected. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Team,
When I close Theia while running processes (like a Spring Boot app on port 8080), those processes keep running and keep their ports occupied — even for terminal launches, debug sessions, or run configurations.
Here’s my current workaround using
beforeunloadeventListener:Is this the right approach, or does Theia provide any built-in mechanism for process cleanup?
Looking for guidance on the recommended approach for handling process cleanup on IDE closure/reload.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions