-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Milestone
Description
When all experimental features are disabled, certain errors are not shown at all. It also seems that the "PSErrorView" experimental feature is always enabled, even after explicitly disabling it.
This does not repro in Preview.5
PS> $PSVersionTable
Name Value
---- -----
PSVersion 7.0.0-preview.5
PSEdition Core
GitCommitId 7.0.0-preview.5
OS Microsoft Windows 10.0.19516
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
PS C:\Users\adityap> $EnabledExperimentalFeatures
PS C:\Users\adityap> "".$dsfs()
Method invocation failed because [System.String] does not contain a method named ''.
At line:1 char:1
+ "".$dsfs()
+ ~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
Steps to reproduce
PS C:\Windows\System32> $EnabledExperimentalFeatures
PS> "".$dsfs()
PS> $Error[0]
PS> $Error[0] | fl *
PS> $Error[0] | fl * -Force
PSMessageDetails :
Exception : System.Management.Automation.RuntimeException: Method invocation failed because [System.String] does not contain a method named ''.
at CallSite.Target(Closure , CallSite , String , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at System.Management.Automation.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
TargetObject :
CategoryInfo : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : MethodNotFound
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}Expected behavior
Error is shown in default error view
Actual behavior
No error shown
Environment data
Name Value
---- -----
PSVersion 7.0.0-daily.20191114
PSEdition Core
GitCommitId 7.0.0-daily.20191114
OS Microsoft Windows 10.0.19516
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productWG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime