Closed ac710n closed 3 years ago
This is one bad, bad issue.
It is reproducible if you hold shift-return down for quite a while; the scroller on the side should start twitching up and down, slowly but surely getting further and further down before it goes back to the top; once it reaches the bottom, it starts printing exceptions. Reproduction takes a few minutes.
Windows 10 Home version: 2004 b19041.804 PowerShell version: 5.1.19041.610
Also happens to me when hold the up arrow key ^
This issue was already fixed (see #1306). Please upgrade to the 2.1.0 version of PSReadLine from PowerShell Gallery. See the upgrading section for instructions. Please let us know if you run into the same issue with the latest version.
PS C:\WINDOWS\system32> Oops, something went wrong. Please report this bug with the details below. Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Last 1 Keys: UpArrow
Exception: System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension. Parameter name: top Actual value was -2. at System.Console.SetCursorPosition(Int32 left, Int32 top) at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor) at Microsoft.PowerShell.PSConsoleReadLine.ForceRender() at Microsoft.PowerShell.PSConsoleReadLine.HistoryRecall(Int32 direction) at Microsoft.PowerShell.PSConsoleReadLine.PreviousHistory(Nullable
1 key, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary
2 dispatchTable, Boolean ignoreIfNoAction, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.InputLoop() at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)