Skip to content

No completion for Properties of $Error[n] #16941

@nbros

Description

@nbros

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

N/A

Screenshot

image

Environment data

PS Version: 7.2.1
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.2.2
PSReadLine EditMode: Windows
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 245
BufferHeight: 67

Steps to reproduce

> Write-Error "an error"
> $Error[0]. <-- type <tab> or Ctrl+Space to try to complete Properties of System.Management.Automation.ErrorRecord

Expected behavior

Powershell should return completions of System.Management.Automation.ErrorRecord

Actual behavior

Powershell apparently returns completions of Array instead of ErrorRecord.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions