You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run .\temp.ps1 with no parameters, I get prompted to provided a value for Foo, which I immediately press ENTER, assigning False to Foo. When running in the powershell tab in VS Code, I see the following:
corm@CORMAC : ~\Documents : 10/3/2017 4:37:58 PM :
> .\temp.ps1
cmdlet temp.ps1 at command pipeline position 1
Supply values for the following parameters:
Foo:
False
However, when I run the same thing in the PowerShell Integrated Console tab in VS Code, I see the following:
PS C:\Users\corm\Documents> .\temp.ps1
cmdlet temp.ps1 at command pipeline position 1
Supply values for the following parameters:
Foo:
C:\Users\corm\Documents\temp.ps1 : Cannot process argument transformation on parameter 'Foo'. Cannot convert value "" to type "System.Boolean". Boolean parameters accept only Boolean values and
numbers, such as $True, $False, 1 or 0.
At line:1 char:1
+ .\temp.ps1
+ ~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [temp.ps1], ParameterBindingArgumentTransformationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,temp.ps1
I may be unaware of the underlying difference(s) between powershell and PowerShell Integrated Console, so please let me know if this is expected behavior 😃
Attached Logs
See above.
The text was updated successfully, but these errors were encountered:
Closing as PSReadLine is now available in the PowerShell Preview extension, tracking that PSReadLine is not available in the main PowerShell Extension here #1793
System Details
$PSVersionTable
:Issue Description
I have the following in a
temp.ps1
script:When I run
.\temp.ps1
with no parameters, I get prompted to provided a value forFoo
, which I immediately press ENTER, assigning False toFoo
. When running in thepowershell
tab in VS Code, I see the following:However, when I run the same thing in the
PowerShell Integrated Console
tab in VS Code, I see the following:I may be unaware of the underlying difference(s) between
powershell
andPowerShell Integrated Console
, so please let me know if this is expected behavior 😃Attached Logs
See above.
The text was updated successfully, but these errors were encountered: