-
Notifications
You must be signed in to change notification settings - Fork 503
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
PowerShell not showing correct error #1666
Comments
Not sure what this means. Can you provide more information? Please see our troubleshooting docs. |
Sorry, something turned that whole thing into nonsense. Let me write it out again. This is something I've noticed with the AD modules, but I think I've seen similar posts somewhere (I couldn't find them). If I run this command in VSCode Insiders 1.31.0: New-ADGroup -Name $deptGrp -Path $grpPath There's the error it dumps:
If I do the same thing in ISE, it prompts me for the other mandatory switch, -groupScope. |
Can you try getting the result of It sounds like you might be experiencing an invocation error that is by design but that PSReadLine and the ISE step in to catch and prompt for more input in some way. What happens when you run this in the PowerShell console (not the Integrated Console and not ISE) |
Here's the output of the $error[0] command:
When I open up a PowerShell console and run it, it prompts me for the mandatory parameter GroupScope. Thanks! |
Yeah I think PSReadLine is handling this in a user-friendly way. If you do:
in a PowerShell console, I'd expect the same error (provided PSReadLine is actually unloaded). In which case, this might well be fixed by #535, and if not, would be much easier to fix after that's in. |
Closing this as PSReadline is now available in the PowerShell Preview extension, will re-open if this doesn't solve the probelm..also tracking the lack of PS Readline in the PowerShell extension with this issue #1793 |
We have written the needed data into your clipboard because it was too large to send. Please paste.
The text was updated successfully, but these errors were encountered: