Skip to content

[System.Management.Automation.CompletionCompleters]::CompleteVariable throw ArgumentNullException #11227

@LaurentDardenne

Description

@LaurentDardenne

Steps to reproduce

> [System.Management.Automation.CompletionCompleters]::CompleteVariable('p')

Expected behavior

Completes a variable name.

Actual behavior

Exception calling "CompleteVariable" with "1" argument(s): "Value cannot be null. (Parameter 'source')"
At line:1 char:1
+ [System.Management.Automation.CompletionCompleters]::CompleteVariable …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentNullException

Environment data

$PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.0.0-preview.6
PSEdition                      Core
GitCommitId                    7.0.0-preview.6
OS                             Microsoft Windows 10.0.18362
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0, 6.1.0, 6.2.0, 7.0.0-preview.6}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions