Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
392 stars 185 forks source link

Fail to start api for `todo-python-mongo` when default terminal is `Git Bash` in Windows #4127

Open Menghua1 opened 1 month ago

Menghua1 commented 1 month ago

Describe the issue: In Windows, when the default terminal is bash, starting the api fails and the terminal reports the following error message: image

Repro Steps:

  1. Login in with command: azd auth login.
  2. Execute command: azd init -t todo-python-mongo -b staging or azd init -t todo-python-mongo -b pr/3976 .
  3. Run azd up.
  4. Hit F1 -> Run Task -> Start API.

Environment:

Expected behavior: The api can be successfully started when the default terminal is bash in windows.

@jongio for notification

jongio commented 1 month ago

Do you mean the default VS Code terminal is bash? Is that a project setting? In Windows it would be Git Bash, not bash directly.

Menghua1 commented 1 month ago

Do you mean the default VS Code terminal is bash? Is that a project setting? In Windows it would be Git Bash, not bash directly.

@jongio The default VS Code terminal is not Git Bash. When it is changed to Git Bash, this issue will occur. This is not a project setting. In Windows, should we consider both pwsh and Git Bash to support running command tasks? Or is just pwsh enough?

jongio commented 1 month ago

@rajeshkamal5050 Is there someone that can help figure out what is happening here?