-
Notifications
You must be signed in to change notification settings - Fork 210
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
[Issue] azd CLI is not detected in VS Code terminal #1441
Comments
This is similar to microsoft/vscode-docker#3806. I wonder if there's a VSCode issue with discovery of things on the |
@indcoder In a Nushell terminal window in VSCode, can you check the value of the |
@indcoder does the issue occur with Electron sandboxing disabled? |
Did you completely close VS Code after installing azd? |
Yes, multiple times. I have opened this issue after doing all these steps,
multiple times.
Aslo azd works in the Windows terminal opened independently. Its only in
the context of VS Code, I'm getting to see this behaviour.
Sent from mobile
…On Tue, 24 Jan, 2023, 00:24 Jon Gallant, ***@***.***> wrote:
Did you completely close VS Code after installing azd?
—
Reply to this email directly, view it on GitHub
<#1441 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQAQZCVVG62Y22OCSHDI33WT3HWZANCNFSM6AAAAAAUDRBX3Y>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This may unblock you, but there is an environment variable, It seems like some part of the |
Tried with a disabled sandboxing; but it fails with the same error message
…On Tue, Jan 24, 2023 at 1:30 AM Brandon Waterloo [MSFT] < ***@***.***> wrote:
This may unblock you, but there is an environment variable,
AZURE_DEV_CLI_PATH, that can be used to set the path to the Azure Dev
CLI. Generally it's located at C:\Users\YourUserName\AppData\Local\Programs\Azure
Dev CLI\azd.exe.
It seems like some part of the PATH isn't making it into shell processes
spawned by the extension host or VSCode itself (which would include
terminal windows in VSCode), even though VSCode *does* have the right
values in process.env.PATH. I tried with sandboxing both enabled and
disabled and everything worked. I wonder if there's some Node.js setting
causing this.
—
Reply to this email directly, view it on GitHub
<#1441 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQAQZFJVPJF4MOAUTOSCKTWT3PMXANCNFSM6AAAAAAUDRBX3Y>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
A Docker extension user filed microsoft/vscode#172124, which might be the root cause of this issue and the issues that user is seeing. |
@indcoder Can you confirm that you've installed azd from aka.ms/azd-install? Looks like you're referring to the Azure CLI above (which is a different tool)! |
Yes, @savannahostrowski I have installed it from that location. Also as mentioned in my original post, the issue is not in azd cli where it works, but in the azd vs code extension. |
Aside from something upstream like microsoft/vscode#172124 I'm not sure what could be happening. |
@bwateratmsft want to keep this open or close it as not reproducible? |
@rajeshkamal5050 I think we can close it unless we can find more information. |
Output from
azd version
azd version 0.5.0-beta.3 (commit 1c23678)
Output from
az version
Run
az version
and copy and paste the output here (minimum required version is 2.38.0):{
"azure-cli": "2.43.0",
"azure-cli-core": "2.43.0",
"azure-cli-telemetry": "1.0.8",
"extensions": {}
}
Describe the bug
While the azd cli can be run from the Windows terminal across different shells,
it fails when done via VS Code terminal
I presume this is the root cause for the failure of azd init when executed via VS Code Command Palette
Apparently it cannot detect azd.
To Reproduce
Run the azd -h command in the VS Code terminal
or
Any azd command via the VS Code command palette
Expected behavior
The azd init command should be run and the project files generated.
Environment
Information on your environment:
* Language name and version
* IDE and version : [e.g. Visual Studio 16.3]
VS Code Insider
Version: 1.75.0-insider (user setup)
Commit: 1379f0375440df946adc62f7afb8375dd45d5adf
Date: 2023-01-17T05:21:07.217Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Windows_NT x64 10.0.22623
Sandboxed: Yes
Additional context
I'm presuming the azd-cli is not being added to the path which can be detected by VS Code terminal when installation is done via MSI
azure-cli-2.43.0.msi
The text was updated successfully, but these errors were encountered: