-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Functions local process not killed properly on Mac/IntelliJ #6374
Comments
@justinyoo Thanks a lot for your report and investigation, we will looking into this issue, and will update here once there are updates. |
This also occurs on Windows |
It's not the case to me. I only see this issue on Mac OS. |
@wcom939 Thanks for your information, could you please share some more info like the function core tools and toolkit version? |
@wcom939 Thanks for your report, azure toolkit will run function core tools in a new process and close it when you close terminate the run configuration, but this may not work if you close intellij directly, will investigate how to kill the process in this case. |
@justinyoo Thanks again for your help, this issue should be resolved in the latest release v3.62.0, beside we also support set the func port manually, could you please upgrade to the latest version and try again? |
This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further. |
FYI - I am still experiencing these issues on macOS. IntelliJ IDEA 2022.2.1 Ultimate Edition Azure Functions Core Tools Thanks @justinyoo for the including the bash commands to kill the process... saved me from having to dig up the |
Hi, Team.
I'm not sure this is the issue from this plugin or IntelliJ itself, but I'd like to create an issue here. Here's my dev environment:
Here's how to reproduce the error:
Therefore, in order to re-run the Function app, I have to manually find and kill the process every time. Here's what I use to kill the process:
https://gist.github.com/justinyoo/045201b2c4280c818ca872af6284c720
I google'd whether it's the issue of IntelliJ itself or this plugin, and found these threads:
Although they're a bit old conversations, apparently other devs are experiencing similar issues. So, I checked the code how it's handled and found it:
azure-tools-for-java/PluginsAndFeatures/azure-toolkit-for-intellij/azure-intellij-plugin-appservice/src/main/java/com/microsoft/azure/toolkit/intellij/legacy/function/runner/localrun/FunctionRunState.java
Lines 413 to 417 in 52be6ef
As I'm not a Java dev, I don't know what the code exactly means. But, I suspect that the code doesn't kill all the child processes. Because Azure Functions runtime takes at least two processes - main for the runtime itself and one sub process for the language worker, when the tool stops the process it should stop all the processes including main and its sub.
it would be great if you can take a look.
The text was updated successfully, but these errors were encountered: