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
{{ message }}
Repository navigation
PowerShell mysteriously freezes then asks to report the bug #5214
Search the existing issues, especially the pinned issues.
Exception report
Oops, something went wrong.Please report this bug with ALL the details below, including both the 'Environment' and 'Exception' sections.Please report on GitHub: https://github.com/PowerShell/PSReadLine/issues/new?template=Bug_Report.yamlThank you!### EnvironmentPSReadLine: 2.4.5PowerShell: 7.6.6OS: Microsoft Windows 10.0.26200BufferWidth: 120BufferHeight: 30Last 200 Keys: (I deleted these to paste into Discord and that copy is unfortunately all I have left now. It was mostly just a huge amount of arrow keys.)### ExceptionSystem.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension. (Parameter 'top')Actual value was 40. at System.ConsolePal.SetCursorPosition(Int32 left, Int32 top) at Microsoft.PowerShell.PSConsoleReadLine.BackwardChar(Nullable`1 key, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.InputLoop() at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken, Nullable`1 lastRunStatus)
Screenshot
Unfortunately the session in which the error occurred is now lost.
Environment data
PS Version: 7.6.6PS HostName: ConsoleHost (Windows Terminal)PSReadLine Version: 2.4.5PSReadLine EditMode: WindowsOS: 10.0.26100.1 (WinBuild.160101.0800)BufferWidth: 156BufferHeight: 41NOTE: I lost the session in which the error occurred, so the buffer details may not be accurate.
Steps to reproduce
I was trying to copy earlier output while scrolled up, but clicking kept sending me back to the bottom. I had opted to select everything from the bottom up to the text I wanted to copy and was adjusting the selection position with the arrow keys when the error occurred.
Expected behavior
PowerShell should not freeze for a moment, becoming unresponsive for some seconds, then spit out the error.
Actual behavior
PowerShell froze for a moment, becoming unresponsive for some seconds, then spat out the error.
Activity