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

idk, you said "Please report on GitHub [...] Thank you!" #3890

Closed
3 tasks done
leonheess opened this issue Dec 5, 2023 · 3 comments
Closed
3 tasks done

idk, you said "Please report on GitHub [...] Thank you!" #3890

leonheess opened this issue Dec 5, 2023 · 3 comments

Comments

@leonheess
Copy link

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

### Environment
PSReadLine: 2.2.6
PowerShell: 7.3.2
OS: Microsoft Windows 10.0.19044
BufferWidth: 75
BufferHeight: 59

Last 160 Keys:

 g i t Spacebar a a Spacebar & & Spacebar g i t Spacebar c i Spacebar - m 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 Backspace p n p m Spacebar Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace g i t Spacebar p u l l Spacebar RightArrow Enter
 UpArrow UpArrow DownArrow DownArrow g i t Spacebar a a Spacebar & & Spacebar g i t Spacebar c i Spacebar - m Spacebar " f e a t : Spacebar r e m o v 
e Spacebar s e r v i c e s Backspace Backspace Backspace Backspace Backspace Backspace Backspace t a t i s t i c s Spacebar v i e w " Enter
 g i t Spacebar p u s h Enter
 g i t Spacebar a a Spacebar "

### 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 'top')
Actual value was 59.
   at System.ConsolePal.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   at Microsoft.PowerShell.PSConsoleReadLine.Render()
   at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(PSKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken, Nullable`1 lastRunStatus)

Screenshot

image

Environment data

PS Version: 7.3.2
PS HostName: ConsoleHost
PSReadLine Version: 2.2.6
PSReadLine EditMode: Windows
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 167
BufferHeight: 59

Steps to reproduce

??

Expected behavior

??

Actual behavior

??

@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 Dec 5, 2023
@daxian-dbw
Copy link
Member

@leonheess Thanks for reporting the issue. Can you please provide steps to reproduce this issue?

@leonheess
Copy link
Author

Sorry, idk how to reproduce the issue

@daxian-dbw
Copy link
Member

No worries and thanks for the reply.

I cannot reproduce the issue based on the recorded keys shown in the exception (keys pressed right before the exception happened). Without the repro steps, there is no actionable investigation I can do at the moment, so I will close this issue.

But if you want, please upgrade to the latest v2.3.4 of PSReadLine module. It includes some more improvements in the reliability, which may have addressed the root cause of this issue.

@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 Dec 6, 2023
@daxian-dbw daxian-dbw added Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. and removed Needs-Attention 👋 Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. labels Dec 6, 2023
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

2 participants