PSReadLine: 7.0.0-preview.2 PSReadLine stops working after Get-Help or other commands

Overview

Certain (possibly just full-screen overlayed) commands or operations cause PSReadLine to stop working afterwards, and in some cases, for the console (process) to become completely unresponsive.

I have a reliable reproduction below, although it only reproduces one aspect of the problem I’ve surfaced (I don’t have a reliable repro for the console becoming unresponsive).

Steps to reproduce

pwsh-preview -NoProfile
help Get-Alias
(press 'q' to quit)
(press Up-Arrow / Down-Arrow to cycle through history)

Expected behavior

History is cycled

Actual behavior

History is not cycled / input sometimes unresponsive

Environment data

Name                           Value
----                           -----
PSVersion                      7.0.0-preview.2
PSEdition                      Core
GitCommitId                    7.0.0-preview.2
OS                             Darwin 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 20 18:42:21 PDT 2019; root:xnu-4903.270.47~4/RELEASE_X86_64
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 22 (11 by maintainers)

Most upvoted comments

The fix was included in .NET Core RC1 and available with 7.0.0-preview.4

This looks like a regression in .NET Core 3.0. Using 6.2.1 w/ same PSReadLine doesn’t repro. I’ll have to see about getting them a simpler repro.

I can repro this easily. Doing a cls to clear the screen seems to make it work again.

Just checked that the .NET Core fix is not included in .NET Core Preview 9.