Azure / azure-functions-core-tools

Command line tools for Azure Functions
MIT License
1.31k stars 433 forks source link

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

Open rickersilva opened 7 months ago

rickersilva commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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