-
Notifications
You must be signed in to change notification settings - Fork 511
Get-Credential
throws exception instead of prompting for input in PowerShell 5.1
#3820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is further repro info needed? |
@csandfeld so I can repro it as you state, not sure why Get-Credential would have its parameters parsed differently in the PSIC than in regular console. @andschwa @SeeminglyScience any ideas? |
I noticed that the |
@andschwa It is because our PS Host is advertising NonInteractive mode. Read-Host has same problem. Is interactive mode possible with the new pipeline engine?
|
Oh, good find! I can dig into this. |
So yes, we've been passing |
Get-Credential
throws exception instead of prompting for input in Windows PowerShell
Get-Credential
throws exception instead of prompting for input in Windows PowerShellGet-Credential
throws exception instead of prompting for input in PowerShell 5.1
Ok so apparently we need |
Looks like we've got a fix! |
The fix for this is out in PowerShell Preview v2022.2.2! |
That's great news - thanks @andschwa and @JustinGrote |
Prerequisites
Summary
When using preview v2022.2.0 with Windows PowerShell 5.1, this exception is throw in the integrated console when running Get-Credential.
This is not the case when using PowerShell Extension v2021.12.0, or when using PowerShell 7.2.1 instead of Windows PowerShell.
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: