Skip to content
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

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

Closed
adityapatwardhan opened this issue Nov 15, 2019 · 1 comment · Fixed by #11303
Closed

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

adityapatwardhan opened this issue Nov 15, 2019 · 1 comment · Fixed by #11303
Assignees
Labels
Issue-Bug Issue has been identified as a bug in the product WG-Engine core PowerShell engine, interpreter, and runtime
Milestone

Comments

@adityapatwardhan
Copy link
Member

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
@adityapatwardhan adityapatwardhan added the Issue-Bug Issue has been identified as a bug in the product label Nov 15, 2019
@iSazonov iSazonov added the WG-Engine core PowerShell engine, interpreter, and runtime label Nov 15, 2019
@SteveL-MSFT SteveL-MSFT added this to the 7.0-Consider milestone Nov 15, 2019
@SteveL-MSFT SteveL-MSFT self-assigned this Dec 9, 2019
@ghost
Copy link

ghost commented Dec 16, 2019

🎉This issue was addressed in #11303, which has now been successfully released as v7.0.0-rc.1.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Issue has been identified as a bug in the product WG-Engine core PowerShell engine, interpreter, and runtime
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants