-
Notifications
You must be signed in to change notification settings - Fork 452
func init returns No templates or subcommands found matching: 'func'. #4399
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
Comments
After debugging with Lily, we determined that this was an issue with .NET 9.0.202. This is on an M1 Mac, with the Core Tools initially installed through Homebrew (though also reproduced with an npm installation). The root of this seems to be how the .NET templating engine is handling the path. We observed the following when attempting to run the same command that the Core Tools was (via the
Notably, the We also reset the state there and uninstalled .NET SDK 9.0.202, meaning a .NET 8 version was engaged. That also worked. Using a Mac M2, I see the following:
This feels like a .NET SDK problem that has not yet been addressed. I'll need to look to see if this has already been reported somewhere and link things together there. |
I did a diagnostic trace using 9.0.102 as well, and that preserves the
|
See the item on the .NET SDK repo for the underlying .NET issue. This work item should be to address that the Core Tools swallows the error and doesn't present it to the user, moving on to the attempted scaffolding operation and only showing an error there. |
Just chiming in to confirm, seeing this issue on my M1 Mac using
|
Same here, M3 Mac on dotnet |
Uh oh!
There was an error while loading. Please reload this page.
Version
4.0.7030
Description
I have core tools version
4.0.7030
, which I believe is the latest. I'm trying to runfunc init LocalFunctionProj --worker-runtime dotnet-isolated --docker --target-framework net8.0
. The command returnsI've tried resintalling core tools, but still experiencing the same issue.
Also tried just running
func init
, but ran into the same error.Running
func --version
returns the version, so it's strange to me whyfunc
isn't recognized.Steps to reproduce
Create a new function project using
func init
and core tools version4.0.7030
The text was updated successfully, but these errors were encountered: