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

func command not found after installing Azure Functions Core Tools in Mac #3595

Open
rickersilva opened this issue Feb 14, 2024 · 2 comments
Labels

Comments

@rickersilva
Copy link

I'm following this tutorial: https://learn.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-csharp

aT the run your function locally step, VSCode asked me to install AFCT. I clicked "learn more" and followed the procedure in that page: https://github.com/Azure/azure-functions-core-tools#mac

I installed brew command succesfully and run those two commands succesfully... or not.

VSCode keeps saying I need AFCT installed before debugging, and the command func is not found in the zsh terminal.

I cannot run it and I know this is someting easy for most people, but I may be lost here. any help, appreciated.

@rickersilva
Copy link
Author

rickersilva commented Feb 15, 2024

I did something odd. I reinstalled it, because somehow,today the terminal didn't found brew or func commands, so I kind of installed it all over again, making sure it will be installed as admin and in my own user. I really don't understand what I did, but the result was that func command is now available in my terminal.

BUT not in VSCode terminal. There it keeps saying command not found.

Even weirder, I have two terminal windows, one as admin the other in my user, both with func command working. I exited from admin back to my user in the first Terminal windows, and run func -help, and it says command not found.

what is wrong with this piece of software?

@rickersilva
Copy link
Author

It looks like not being an admin user was the culprit. However, if anyone can explain me why this behavior should be expected, I will appreciate and learn.

thanks

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

No branches or pull requests

2 participants