Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Certain errors are not shown when all experimental features are disabled #11081

Copy link
Copy link
@adityapatwardhan

Description

@adityapatwardhan
Issue body actions

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
Reactions are currently unavailable

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.