quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.36k stars 2.56k forks source link

quarkus-azure-functions extension not working with Azure Toolkit for IntelliJ #33160

Open nicktombeur opened 1 year ago

nicktombeur commented 1 year ago

When running the Azure function via the maven plugin, everything is working as expected.

./mvnw clean package azure-functions:run

[INFO] Azure Functions Core Tools found.

Azure Functions Core Tools
Core Tools Version:       4.0.5095 Commit hash: N/A  (64-bit)
Function Runtime Version: 4.16.5.20396

Functions:

    HttpExample: [GET,POST] http://localhost:7071/api/HttpExample

For detailed output, run func with --verbose flag.
[2023-05-05T15:22:19.502Z] Worker process started and initialized.
[2023-05-05T15:22:21.871Z] Host lock lease acquired by instance ID '000000000000000000000000BF9B5D31'.
[2023-05-05T15:22:22.349Z] mei 05, 2023 5:22:22 P.M. org.jboss.threads.Version <clinit>
[2023-05-05T15:22:22.349Z] INFO: JBoss Threads version 3.5.0.Final
[2023-05-05T15:22:22.387Z] mei 05, 2023 5:22:22 P.M. io.quarkus.bootstrap.runner.Timing printStartupTime
[2023-05-05T15:22:22.387Z] INFO: code-with-quarkus 1.0.0-SNAPSHOT on JVM (powered by Quarkus 3.0.2.Final) started in 0.346s. 
[2023-05-05T15:22:22.388Z] mei 05, 2023 5:22:22 P.M. io.quarkus.bootstrap.runner.Timing printStartupTime
[2023-05-05T15:22:22.388Z] INFO: Profile prod activated. 
[2023-05-05T15:22:22.388Z] mei 05, 2023 5:22:22 P.M. io.quarkus.bootstrap.runner.Timing printStartupTime
[2023-05-05T15:22:22.388Z] INFO: Installed features: [azure-functions, cdi]

While trying to run or debug the function via the IntelliJ Azure Toolkit, nothing is happening.

Extension bundle specified, skip install extension

Azure Functions Core Tools
Core Tools Version:       4.0.5095 Commit hash: N/A  (64-bit)
Function Runtime Version: 4.16.5.20396

Functions:

    HttpExample: [GET,POST] http://localhost:56090/api/HttpExample

For detailed output, run func with --verbose flag.
[2023-05-05T15:37:21.616Z] Worker process started and initialized.
[2023-05-05T15:37:23.616Z] Host lock lease acquired by instance ID '000000000000000000000000BF9B5D31'.

Not sure if I have to report it here or if it's in issue with the plugin itself or I'm simply missing something.

geoand commented 1 year ago

cc @patriot1burke @loicmathieu

petar1201 commented 1 year ago

I am not using Intellij toolkit, but i also have errors when my function is deployed, locally is everything as expected, i don't know if this issues can be related, you can see what i encountered at #32820, specifically last comment.

nicktombeur commented 1 year ago

I am not using Intellij toolkit, but i also have errors when my function is deployed, locally is everything as expected, i don't know if this issues can be related, you can see what i encountered at #32820, specifically last comment.

@petar1201 I don't have any trouble deploying to Azure. The only thing not working for me is debugging the function with IntelliJ or VS code.

petar1201 commented 1 year ago

@nicktombeur I get it, could you maybe share your project/repository, so i can try and find differences, and maybe resolve my error, i would be really thankfull?

loicmathieu commented 1 year ago

@nicktombeur if everything is working as expected locally and on Azure you may want to reach out to the IntelliJ team. As you see, the project work with the Azure Maven plugin so it's layout must be correct.