azure-dev icon indicating copy to clipboard operation
azure-dev copied to clipboard

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

Open Menghua1 opened this issue 1 year ago • 4 comments

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:

  • Template: todo-python-mongo
  • Branch: staging or pr/3976
  • OS: Windows
  • Azd version: azd version 1.10.0-beta.1-daily.3947259 (commit 5bf8568b1566723be8bc2259c578df4f931cf430)

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

@jongio for notification

Menghua1 avatar Jul 16 '24 02:07 Menghua1

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 avatar Jul 16 '24 14:07 jongio

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?

Menghua1 avatar Jul 17 '24 02:07 Menghua1

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

jongio avatar Jul 17 '24 21:07 jongio

@rajeshkamal5050 and @jongio In the latest round of azd manual testing, this issue still exists.

  • Template: todo-python-mongo, todo-python-mongo-terraform.
  • Branch: staging.
  • OS: Windows.
  • Azd version: azd version 1.10.3-pr.4243081 (commit 2c05c152915bdfd82e20d3350f249b22accd3deb) and azd version 1.11.0-beta.1-daily.4244391 (commit 8fc9d80640aa6f45f1a7d7631087c4a5f54e9e63).

Menghua1 avatar Oct 18 '24 10:10 Menghua1