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
387 stars 181 forks source link

[Issue] Bash (MINGW64) doesn't show subscription list during `azd up` #3932

Open diberry opened 2 months ago

diberry commented 2 months ago

Output from azd version Run azd version and copy and paste the output here: azd version 1.9.2 (commit c58b02f71710960aba28f81f3698e64cfdda9f96)

Describe the bug Azd up in the mingw64/bash terminal doesn't display the subscription list.

To Reproduce In bash/mingw64 shell, azd up.

image

Expected behavior Similar to VSCode

image

Environment Information on your environment:

Additional context Add any other context about the problem here.

rajeshkamal5050 commented 2 months ago

@diberry can you run it with debug to see where its failing/stuck internally. Stack trace could tell us something.

Might be due to Cobra's support with MINGW64 @weikanglim @ellismg ?

weikanglim commented 2 months ago

Was able to reproduce this. We may need to adjust the interactive detection logic to include isatty.IsCygwinTerminal to include cygwin/mindw64 detection. Should be a quick fix.