You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Search the existing issues, especially the pinned issues.
Exception report
Last 200 Keys: 1 b 5 c 3 b 2 3 d 5 c d 2 8 5 a e = $ ? " Space } Space } Enter Ctrl+Enter t r y Space { Space e c h o Space u c i Enter Ctrl+Enter p e r f t Enter Ctrl+Enter q u i t Enter Ctrl+Enter Space | Space x 6 4 \ D e b u g \ O t t o . e x e Space } Space f i n a l l y Space { Space i f Space ( $ ? ) Space { Space e c h o Space " 9 3 6 1 9 1 1 d c 3 7 e 4 d 6 6 8 1 4 b 5 4 c 1 7 e 3 8 7 8 4 7 = $ ? " Space } Space e l s e Space { Space e c h o Space " 9 3 6 1 9 1 1 d c 3 7 e 4 d 6 6 8 1 4 b 5 4 c 1 7 e 3 8 7 8 4 7 = $ ? " Space } Space } Enter Ctrl+Enter
Screenshot
Failed during test for magic numbers
Environment data
no data
Steps to reproduce
running test
Expected behavior
no exception
Actual behavior
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 -1.
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.Insert(Char c)
at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
This issue was already fixed (see #1306). Please upgrade to the 2.3.5 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.
Activity
github-actions commentedon Feb 22, 2026
This issue was already fixed (see #1306). Please upgrade to the 2.3.5 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.