interactive icon indicating copy to clipboard operation
interactive copied to clipboard

Powershell read-host is not showing input dialog

Open bronthulke opened this issue 2 years ago • 1 comments

Describe the bug

When I run a read-host command, such as the following, no input dialog is shown (sorry I can't recall what the formal name is for it). This was working until sometime recently.

$fqdn = Read-Host -Prompt "Fully-qualified domain name e.g. www.yourdomain.com"

It says it's running, but never stops itself. If I hit stop, I see an error (see below for screenshot):

Error: System.OperationCanceledException: Command :SubmitCode: $fqdn = Read-Host -Prompt "Fully-qualified domain  ... cancelled.

I've tried installing the "pre-release" version of Jupyter, as it was suggesting that I do that (I'm running VS Code Insiders).

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

  • OS
    • [ ] Windows 11
    • [X ] Windows 10
    • [ ] macOS
    • [ ] Linux (Please specify distro)
    • [ ] iOS
    • [ ] Android
  • Frontend
    • [ ] Jupyter Notebook
    • [ ] Jupyter Lab
    • [ ] nteract
    • [ ] Visual Studio Code
    • [X ] Visual Studio Code Insiders
    • [ ] Visual Studio
    • [ ] Other (please specify)

Screenshots

image

bronthulke avatar Jul 04 '22 23:07 bronthulke

Oh I've just changed my input to set the variable directly rather than using read-host, and the same thing is happening. I had to restart my VSCode in order to do even the simple setting of variables. image

bronthulke avatar Jul 04 '22 23:07 bronthulke