You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed Azure Toolkit (3.65.1-2022.1) on intellij Community version 2.22.1 (Build #IC-221.5787.30, built on June 1, 2022)
I created the default HttpTrigger function.
When i simply run the function, it is successful and this is the output:
Extension bundle specified, skip install extension
Using port : 7,071
For detailed output, run func with --verbose flag.
[2022-06-09T13:24:43.891Z] Worker process started and initialized.
[2022-06-09T13:24:43.907Z] [WARNING] {JavaFunctionBroker.addJavaAnnotationLibrary}: Customer is not providing java annotation files, they may not use the latest version of java library and maven plugin.
[2022-06-09T13:24:48.255Z] Host lock lease acquired by instance ID '0000000000000000000000008AD5A5E9'.
But have been unable to start debugging. When i click debug, i get this in the Run Functions console:
Extension bundle specified, skip install extension
Using port : 7,071
[2022-06-09T13:25:54.134Z] Listening for transport dt_socket at address: 7071
[2022-06-09T13:25:54.234Z] Failed to start a new language worker for runtime: java.
[2022-06-09T13:25:54.234Z] System.Private.CoreLib: A task was canceled.
I also get a popup notifications:
Error running 'azure functions': Unable to open debugger port (localhost:7071): java.io.IOException "connection is closed
Failed to run function CLI command from staging folder...
I removed all settings, cache and cleared the intellij installation and re installed, but still the problem persists.
I think it might be trying to use the Azure function end point port 7071 for the debug as well.
Not sure where this is happening.
Steps to reproduce:
With the version of Intellij mentioned, create a default HttpTrigger azure function and run debug.
The text was updated successfully, but these errors were encountered:
After reverting back a few versions, IntelliJ IDEA 2020.3.4 (Community Edition) - Build #IC-203.8084.24, built on April 27, 2021, worked fine. I did not need to change any settings in my project. So looks like something broke after that version at some point. Only issue with the old version is that it does not allow me to fix the port on the local end point (it keeps changing it each time i debug).
@UQsolutions Thanks for your report, this should be an issue of our port detection which may use the func port for debug, I'll fix this issue and update here soon.
Installed Azure Toolkit (3.65.1-2022.1) on intellij Community version 2.22.1 (Build #IC-221.5787.30, built on June 1, 2022)
I created the default HttpTrigger function.
When i simply run the function, it is successful and this is the output:
Extension bundle specified, skip install extension
Using port : 7,071
Azure Functions Core Tools
Core Tools Version: 4.0.4544 Commit hash: N/A (64-bit)
Function Runtime Version: 4.3.2.18186
Functions:
For detailed output, run func with --verbose flag.
[2022-06-09T13:24:43.891Z] Worker process started and initialized.
[2022-06-09T13:24:43.907Z] [WARNING] {JavaFunctionBroker.addJavaAnnotationLibrary}: Customer is not providing java annotation files, they may not use the latest version of java library and maven plugin.
[2022-06-09T13:24:48.255Z] Host lock lease acquired by instance ID '0000000000000000000000008AD5A5E9'.
But have been unable to start debugging. When i click debug, i get this in the Run Functions console:
Extension bundle specified, skip install extension
Using port : 7,071
Azure Functions Core Tools
Core Tools Version: 4.0.4544 Commit hash: N/A (64-bit)
Function Runtime Version: 4.3.2.18186
[2022-06-09T13:25:54.134Z] Listening for transport dt_socket at address: 7071
[2022-06-09T13:25:54.234Z] Failed to start a new language worker for runtime: java.
[2022-06-09T13:25:54.234Z] System.Private.CoreLib: A task was canceled.
I also get a popup notifications:
Error running 'azure functions': Unable to open debugger port (localhost:7071): java.io.IOException "connection is closed
Failed to run function CLI command from staging folder...
I removed all settings, cache and cleared the intellij installation and re installed, but still the problem persists.
I think it might be trying to use the Azure function end point port 7071 for the debug as well.
Not sure where this is happening.
Steps to reproduce:
With the version of Intellij mentioned, create a default HttpTrigger azure function and run debug.
The text was updated successfully, but these errors were encountered: