Skip to content
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

VS Code extension detects latest Azure Functions Core Tools detected as v4.0.1 #207

Open
HolisticDeveloper opened this issue Jul 18, 2024 · 6 comments
Labels
question Further information is requested

Comments

@HolisticDeveloper
Copy link

HolisticDeveloper commented Jul 18, 2024

I've recently moved to a new computer and I'm trying to set up Durable Functions Monitor in VS Code again. After installing Azure Function Core Tools globally via chocolatey (choco install azure-functions-core-tools), I get the following error when trying to attach to a task hub:

Default backend now requires at least Azure Functions Core Tools v4.0.4629 (currently discovered is v4.0.1). Install latest Azure Functions Core Tools or, alternatively, select a custom backend in extension's settings.

The package version installed by chocolatey is 4.0.5907, and I get the following output from func.exe:

Core Tools Version:       4.0.1 Commit hash: N/A +807e89766a92b14fd07b9f0bc2bea1d8777ab209 (32-bit)
Function Runtime Version: 4.834.3.22875

Have I misconfigured something?

@scale-tone scale-tone added question Further information is requested and removed Needs: Triage 🔍 labels Jul 18, 2024
@scale-tone
Copy link
Contributor

scale-tone commented Jul 18, 2024

@HolisticDeveloper , can you post the output from your 'DURABLE FUNCTIONS MONITOR' output channel (omitting anything sensitive), when trying to attach?

@scale-tone
Copy link
Contributor

@HolisticDeveloper , do you still need help on this?

@HolisticDeveloper
Copy link
Author

Sorry for the delay, I got sidetracked by a pressing issue...

Here's the output:

yarn global bin failed. Command failed: yarn global bin
'yarn' is not recognized as an internal or external command,
operable program or batch file.
Using Functions host: func

I've learned that yarn isn't supposed to be installed globally anymore but I did run corepack enable which made the yarn error go away. Now my output is just the last line:

Using Functions host: func

@scale-tone
Copy link
Contributor

@HolisticDeveloper , the logic of discovering the path to func.exe is here.
It is a multi-stage process, that checks all known homes of Azure Functions Core Tools (as an npm package, via yarn, as an .MSI file etc.). If you're saying that you only see that one line in the output, then I'm afraid I cannot explain it.

Anyway, you can always explicitly specify the full path to func.exe via this setting:

image

@HolisticDeveloper
Copy link
Author

Well, even the tool itself thinks it is old. 🤷🏻‍♂️

Maybe there has been a change in what is reported by func --version. I don't have older versions around to check.

@HolisticDeveloper
Copy link
Author

Since the extension is looking for a minimum version of 4.0.4629, I decided to download that version and set an explicit path to it. The download links were contained in %LocalAppData%\AzureFunctionTools\feed-v{0000000}.json (where 0000000 varies). The output of func --version for this binary is 4.0.4629.

The extension is working after doing this. Feel free to close if you don't plan to work around this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants