-
Notifications
You must be signed in to change notification settings - Fork 441
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
Debug startup fails "no Function runtime available" #5145
Comments
Ok it definitely has to do with this line: If I switch that to v2 it will at least start up but will fail to recognize the functions. func.exe actually executes. |
I'm also having this issue. I went through the steps detailed here, but I don't see Azure Functions v3 Preview in the list of available templates: |
@michaeldaw I just tried to create a fresh project and even though yesterday it worked today I have the same result. I double checked that the environment variable is in place as well. |
Actually, I could have sworn it was working yesterday as well. Maybe something has changed? |
Latest commit was 7 days ago on the master branch, I don't see any releases in github that match beta version listed here, not sure why? |
It seems that the entry for v3-preview in the |
I can confirm that is the same for me. @michaeldaw how did you figure that one out? |
Azure/azure-functions-tooling-feed@ddc1e19 just changed yesterday |
@michaeldaw if you want to still run and debug I was able to get this started by opening cmd/powershell to the root of my project then running func.exe start: or you can add a new debug profile that runs the executable: |
Followed these instructions, unable to see any V3 options in the dropdown and when I try to run an existing project with a manual upgrade I get the "There is no Functions runtime available that matches the version specified in the project." error. |
@zpittmansf very nice, thanks for the tip. Hopefully this gets sorted out soon. |
@soninaren - could you comment on this issue? |
Hi, Any update on this issue. I upgraded my azure v2 functions to v3 yesterday and they were working fine. Suddenly since today morning I'm not able to run my functionapp solution. Facing same error "no Function runtime available". My feed json doesnt have v3 version in it though I ahev version 3 folders in my Releases folder. Updating it manually is getting overridden when visual studio is opened. Yesterday I upgraded my VS2019 version to 16.3.6. Not sure if issue is because of this or something else. Any help would be appreciated |
This should be fixed now. Please close and re-open visual studio. |
Thank you @soninaren. It seems to be working for me. |
@soninaren what was the fix? I am just curious. |
We needed to update the feed so that it aligns with different versions of visual studio. We misinterpreted which function release version would map to which version of VS effectively causing the v3-preview disappear. |
Still not working for me :/ |
It has been started to happen for me since today morning (I did not have any problem before that. I updated my VS 2019 to 16.3.9, nothing has been changed). I do not know if I should trust this preview or not. I need to push my code to production as soon as possible. |
@Shrn-Prmshr and @jagge123 Now you have to use Visual Studio 2019 Preview 3 or 4 (previously you could use other versions, but as of Nov 11 it must be Preview 3 or 4). They changed the instructions in the blog post. |
Mine stop working after I upgraded Visual Studio to 16.3.9 yesterday. ;( |
I just downloaded the latest VS2019 preview, and I could run the function again. |
Same issue for me - Any update on this ? |
what's wrong with that? after updating VS2019, it makes trouble again. - version 16.3.9 :( |
I have downloaded VS2019 preview 4, VS2019 16.4.0. and my problem has been solved! |
@Dongbumlee download VS2019 preview 4. The VS2019 version should be 16.4.0. that will fix your problem. |
@MedAnd -- I know we had a brief period yesterday where the VS tooling was using the wrong feed details -- you may have run across that. Can you try closing VS and re-opening it again? That should prompt it to update. Also note that VS 16.4.0 released officially (non-preview) yesterday which has this support. If you continue to see this I'll dive in deeper. |
@brettsam - I tried with VS 16.4.0 today and it fails to launch the function project in debug mode as per above issue... to work around I had to set debug options to: C:\Users<user>\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\func.exe Also tried using VS Code but cannot get it to work with the Preview... have pinged @jeffhollan in various forums & awaiting his reply 😃 |
Can you try (in 16.4.0), after setting the environment variables, clicking "File -> New Project" and going up through the template select screen? When you get to the screen that shows templates you should see a little spinner in the bottom right saying like "Getting latest items..." or something. Wait for it to finish. You can then close the create window and try to run your project. Unfortunately this create flow is the only spot right now to get VS to "check and download" the latest metadata and runtime versions, and worth doing it to make sure it's pulled the latest. Also good to confirm when it's done and you click refresh you see ".NET Core 3" as one of the options in the template dropdown |
Yeah that "Making sure all templates are up to date" should ideally complete and you'd see a lot more templates (like queue and cosmosdb and whatnot). That template metadata also includes the runtime versions VS needs to run |
In case you are getting constant errors, delete the following 2 folders, close all instances of VS and open VS again. |
Is there any workaround available if we are consistently stuck on |
I'm having the same issue as @wahyuen. Any tips? This is less than ideal and blocking us upgrading to .NET Core 3.1, folks.... |
@soninaren / @vijayrkn -- any ideas on this one? Seems like people are hanging while trying to update the templates? |
@brettsam i think i know what is causing the update failures. With 16.4 we switched to using x64 version of cli. However the x64 version of CLI being used is not minified like x86. The core tools x64 zip file is @optiks and @wahyuen as a workaround can do the following:
|
The solution provided by @soninaren worked on my side where I experienced the same issue of the page getting stuck on Pay attention on the manifest JSON file though (the one inside each |
Been fighting this for days! Between @soninaren and @matteotumiati, I have corrected a few issues with the upgrade to .net core 3. Thanks! |
Investigative information
Please provide the following:
Visual Studio 2019 16.3.6
Repro steps
Provide the steps required to reproduce the problem:
Start project in debug mode locally.
Immediately a Microsoft Visual Studio Error appears - "There is no Functions runtime available that matches the version specified in the project."
Here is the csproj properties, as far as I know this has not changed since it was working last.
Expected behavior
It builds fine, it should startup at least.
Actual behavior
Fails to startup or even enter the azure function prompt.
Known workarounds
None
Related information
Provide any related information
The text was updated successfully, but these errors were encountered: