Repository navigation
Closed
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.WG-Interactive-HelpSystemhelp infrastructure and formatting of helphelp infrastructure and formatting of help
Description
Steps to reproduce
Set-StrictMode -Version Latest
helpor
Set-StrictMode -Version Latest
manExpected behavior
TOPIC
PowerShell Help System
SHORT DESCRIPTION
Displays help about PowerShell cmdlets and concepts.
...Actual behavior
PSMessageDetails :
Exception : System.Management.Automation.RuntimeException: The variable '$moreArgs' cannot be retrieved because it has not been set.
at System.Management.Automation.VariableOps.GetVariableValue(VariablePath variablePath, ExecutionContext executionContext, VariableExpressionAst varAst)
at System.Management.Automation.Interpreter.FuncCallInstruction`4.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
TargetObject : moreArgs
CategoryInfo : InvalidOperation: (moreArgs:String) [], RuntimeException
FullyQualifiedErrorId : VariableIsUndefined
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
ScriptStackTrace : at <ScriptBlock>, <No file>: line 24
at <ScriptBlock>, <No file>: line 69
at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}Environment data
Name Value
---- -----
PSVersion 6.1.0-preview.1
PSEdition Core
GitCommitId v6.1.0-preview.1
OS Microsoft Windows 10.0.16299
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Metadata
Metadata
Assignees
Labels
Issue-BugIssue has been identified as a bug in the productIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.The issue is fixed.WG-Interactive-HelpSystemhelp infrastructure and formatting of helphelp infrastructure and formatting of help
Activity
iSazonov commentedon Mar 26, 2018
It is seem related with
morefunction.mklement0 commentedon Mar 27, 2018
On a meta note: Implementation of RFC0003-Lexical-Strict-Mode.md would presumably make such problems go away.
[-]Help cmdlet fails in PS 6.1.0 Preview 1 when StrictMode is enabled [/-][+]Help cmdlet fails in PS 6.1.0-preview.1 when StrictMode is enabled [/+]iSazonov commentedon May 5, 2018
Kris Borowinski (@kborowinski) Can you confirm with latest build that the issue fixed?
kborowinski commentedon May 5, 2018
Ilya (@iSazonov) Works as expected on latest nightly build v6.1.0-preview.9301 on Windows 10.0.17134.1 x64
iSazonov commentedon May 5, 2018
Kris Borowinski (@kborowinski) Thanks for confirmation and contribution!