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

The prompt for environment name shows up twice (Windows, PowerShell 7)

Open karolz-ms opened this issue 3 years ago • 4 comments

Small but somewhat annoying

Repro steps Do azd init -t todo-nodejs-mongo

Expected Should see the prompt for environment name just once

Actual After entering the environment name the prompt (and the chosen environment name) is shown again above the next prompt (for location).

image

Additional notes

  • azd compiled from sources, commit 1b57d3da69dd51caffc77e4871adb4b32a10a2ef as of morning 8/5/2022
  • Powershell 7.2.5 on Windows 11 21H2 22000.795
  • Screenshot from Windows Terminal app, but I have observed this inside VS Code terminal as well

karolz-ms avatar Aug 05 '22 17:08 karolz-ms

Suspect this is due to https://github.com/AlecAivazis/survey/issues/368 (we use this library). I suspect that there is a windows specific bug that was introduced (the linked issue has a comment saying when it was introduced, but I have not confirmed)

ellismg avatar Aug 11 '22 17:08 ellismg