microsoft / vscode-azure-account

Common Azure Login extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account
Other
138 stars 131 forks source link

Azure Cloud Shell fails to launch on macOS #959

Closed alexweininger closed 6 months ago

alexweininger commented 6 months ago

Creating a new issue because https://github.com/microsoft/vscode-azure-account/issues/719 is actually two separate issues, one for Linux, and one for macOS. I will leave #719 for the Linux bug.

Are you connected to a proxy server? No

Steps to Reproduce:

  1. Launch Azure Cloud Shell bash or powershell on macOS

The terminal process "/Users/alex/dev/core/vscode-azureresourcegroups/bin/node.sh '/Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin)', '-e', 'require('/Users/alex/dev/core/vscode-azureresourcegroups/dist/cloudConsoleLauncher').main()', '--ms-enable-electron-run-as-node'" terminated with exit code: 9.

In the terminal for a brief second it displays the following error: /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin) -app/Contents/MacOS/Code - Insiders Helper (Plugin): bad option: —-ms-enable-electron-run-as-node

arana2 commented 6 months ago

I'm also experiencing the same issue.

  1. Launch Azure Cloud Shell bash or powershell on macOS The terminal process "/Users/andrew/.vscode/extensions/ms-vscode.azure-account-0.11.7/bin/node.sh '/Users/andrew/Documents/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin)', '-e', 'require('/Users/andrew/.vscode/extensions/ms-vscode.azure-account-0.11.7/dist/cloudConsoleLauncher').main()', '--ms-enable-electron-run-as-node'" failed to launch (exit code: 9).

I may have missed it, but I didn't see any errors outputted from the terminal.

atom2-source commented 6 months ago

Yeah doesn't work on my Mac either frustrating

alexweininger commented 6 months ago

This issue has been fixed in the latest version of the Azure Resources extension 🎉 which now contains the Cloud Shell feature. See the v0.9.0 release notes for more info.

Launching Cloud Shell should now work on macOS 🤞.

arana2 commented 6 months ago

Looks good on my end, @alexweininger!

Thank you!

Azure Cloud Shell - Bash

image

Azure Cloud Shell - Powershell

image
atom2-source commented 6 months ago

Thanks if its fixed I just plugged my pc in and used that instead of my mac.solved the issue quick on my end.

pablo-opss commented 4 months ago

Launching cloudshell still fails on launching triggered by an extension. In my case azure terraform.