Skip to content

PSReadline crash when completing hashtable member #3624

@powercode

Description

@powercode

The issue surfaces in PSReadline but the root cause is in CompletionAnalysis.cs where
TokenKind.AtCurly is not handled properly.

Steps to reproduce

ls | ft @{<tab>

Expected behavior

Completion of Name, Expression, Width etc

Actual behavior

Oops, something went wrong.  Please report this bug with the details below
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 200 Keys:
 255 Backspace Backspace g i t Spacebar s t a t u s Enter
 g i t Spacebar s Enter
 g i 255 t Spacebar r e s e t Spacebar H E A D Spacebar p r o Tab Enter
 g i t 255 Spacebar s t a t u s Enter
 r i Spacebar p r o Tab Enter

Environment data

Core and 5.1

> $PSVersionTable

Metadata

Metadata

Assignees

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