You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug Generate with Kiota context menu doesn't work on Visual Studio for Mac 2022 when using ZSH as the default shell
To Reproduce
Steps to reproduce the behavior:
Right click a project file, select Add -> New REST API Client -> Generate with Kiota
Insert URL to Swagger Petstore v3 OpenAPI spec
Wait for NuGet packages to be installed after a couple of project reloads
Expected behavior
A code behind file is generated for the newly added OpenAPI spec file
Screenshots
If applicable, add screenshots to help explain your problem.
Visual Studio Extension (please complete the following information):
Visual Studio Version: Visual Studio for Mac 2022
Extension Version: v1.7.2
Additional context
Add any other context about the problem here.
The tool outputs the following
Executing:
dotnet tool install --global Microsoft.OpenApi.Kiota --version 1.0.1
Tools directory '/Users/christian/.dotnet/tools' is not currently on the PATH environment variable.
If you are using zsh, you can add it to your profile by running the following command:
cat << \EOF >> ~/.zprofile# Add .NET Core SDK toolsexport PATH="$PATH:/Users/christian/.dotnet/tools"EOF
And run `zsh -l` to make it available for current session.
You can only add it to the current session by running the following command:
export PATH="$PATH:/Users/christian/.dotnet/tools"
You can invoke the tool using the following command: kiota
Tool 'microsoft.openapi.kiota' (version '1.0.1') was successfully installed.
PROGRESS: 30%
PROGRESS: 40%
Executing:
kiota generate -l CSharp -d ./Swagger.json -o /var/folders/6f/sxylb9b11ln1f9cbcyc6r9jh0000gn/T/fde34d26-ea98-449a-893e-fc93c31d47fb -n GeneratedCode
Error: An error occurred trying to start process 'kiota' with working directory '/Users/christian/projects/testapp'. No such file or directory
The text was updated successfully, but these errors were encountered:
Describe the bug
Generate with Kiota context menu doesn't work on Visual Studio for Mac 2022 when using ZSH as the default shell
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A code behind file is generated for the newly added OpenAPI spec file
Screenshots
If applicable, add screenshots to help explain your problem.
Visual Studio Extension (please complete the following information):
Additional context
Add any other context about the problem here.
The tool outputs the following
The text was updated successfully, but these errors were encountered: