简体   繁体   中英

getting error "Failed to get version of function(null)" in Intellij while running azure function

I am trying to run azure function in local in intellij. While I run in local, I get this error in intellij: 在此处输入图像描述

when I click on configure, I see that the path is set correctly. 在此处输入图像描述

Now, I have tried uninstalling the current azure tools, and installing through npm or through installer. But nothing worked.

I have also tried the version 3 instead of 4 for azure tools, that also didnt help.

Any idea how to resolve this? Nothing seems to be working.

I have tested in my system - IntelliJ IDE - Java Azure Functions Project, it is running successfully.

在此处输入图像描述

As I observed in your IDE Azure Sign In Tool

在此处输入图像描述

the functions core tools path is different compared to my IntelliJ IDE Configuration.

在此处输入图像描述

Replace the Functions core tools path with the path as I have shown below, in your IDE and run the function once.

C:\Users\<YourUserFolder>\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\func.exe

And even in the run configuration also, it should be same:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM