Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OutOfRangeException #4268

Closed
3 tasks done
Airaat opened this issue Nov 12, 2024 · 1 comment
Closed
3 tasks done

OutOfRangeException #4268

Airaat opened this issue Nov 12, 2024 · 1 comment

Comments

@Airaat
Copy link

Airaat commented Nov 12, 2024

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

Последние клавиши 200:
 0 Enter
 g u i Backspace Backspace i t Space c h e c k o u t Space - b Space T 1 7 9 0 4 1 Space o r i g i n / r e l e a s e 1 5 0 Enter
 g i t Space p u l l Enter
 Ctrl+l g i t Space c g e Backspace Backspace h e c k o t u Space Backspace Backspace Backspace u t Space T 1 7 9 3 1 8 Enter
 Ctrl+l a r c Space l a Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace g i t Space l o g Enter
 Ctrl+l a r c Space l a n d Enter
 Ctrl+l g i t Space c h e c k o u t Space T 1 7 9 1 1 1 Enter
 a r c Space l a n d Enter
 g Backspace Backspace g i t Space c h e c k o u t Space r e l e a s e 1 5 Backspace 4 8 Enter
 Ctrl+l

Исключение:
System.ArgumentOutOfRangeException: Значение должно быть больше или равно нулю и меньше, чем размер буфера в данной размерности.
Имя параметра: top
Фактическое значение было -9.
   в System.Console.SetCursorPosition(Int32 left, Int32 top)
   в Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   в Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   в Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

Screenshot

image

Environment data

PS Version: 5.1.19041.5007
PS HostName: ConsoleHost
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.19041.4522 (WinBuild.160101.0800)
BufferWidth: 228
BufferHeight: 39

Steps to reproduce

just used git in powershell terminal

Expected behavior

No exception

Actual behavior

get a System.ArgumentOutOfRangeException

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Nov 12, 2024
Copy link

@Airaat, you were using a pretty old version of PSReadLine (2.0.0-beta2 or prior), and it's likely that the issue was fixed in a newer version.
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.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant