ITADN

Exception:

#5142Closedodedyar 创建于 2026-05-09
O
odedyarcommented
### Prerequisites - [x] Write a descriptive title. - [x] Make sure you are able to repro it on the [latest released version](https://www.powershellgallery.com/packages/PSReadLine) - [x] Search the existing issues, especially the pinned issues. ### Exception report ```console 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 -149. 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.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.InputLoop() at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics) ``` ### Screenshot Oops, something went wrong. Please report this bug with the details below. Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new ----------------------------------------------------------------------- Last 6 Keys: UpArrow DownArrow UpArrow UpArrow Ctrl+v Ctrl+z ### Environment data ```console PS Version: 5.1.19041.6456 PS HostName: ConsoleHost PSReadLine Version: 2.0.0-beta2 PSReadLine EditMode: Windows OS: 10.0.19041.320 (WinBuild.160101.0800) BufferWidth: 122 BufferHeight: 21 ``` ### Steps to reproduce Just happend once every week or so ### Expected behavior not crash ### Actual behavior some kind of system restart and I even lose stuff
关闭于 2026-05-10 1 条评论