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

Reporting this as was requested by the utility #4163

Open
3 tasks done
ValeZAA opened this issue Sep 10, 2024 · 0 comments
Open
3 tasks done

Reporting this as was requested by the utility #4163

ValeZAA opened this issue Sep 10, 2024 · 0 comments
Labels
Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.

Comments

@ValeZAA
Copy link

ValeZAA commented Sep 10, 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

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.yaml
Thank you!

### Environment
PSReadLine: 2.3.3
PowerShell: 7.4.5
OS: Microsoft Windows 10.0.26100
BufferWidth: 120
BufferHeight: 30

Last 135 Keys:

 Ctrl+c Ctrl+c Ctrl+r i n ) r a n g Ctrl+c Ctrl+c Ctrl+r i n - Ctrl+c Ctrl+r i n _ ) r a Ctrl+c Ctrl+c Ctrl+c Ctrl+c Ctrl+r a c c u r a t e Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+c Ctrl+c Ctrl+r a c c u r a t e r Backspace Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+r Ctrl+c Ctrl+c Ctrl+c Ctrl+c Ctrl+c Ctrl+r t h i s o n e Ctrl+c Ctrl+c Ctrl+r t h i s p o n e Ctrl+c Ctrl+c Ctrl+r d o e s i t Ctrl+c Ctrl+r t h i s Spacebar o n e Ctrl+r Ctrl+r Ctrl+c Ctrl+c Ctrl+r d o e s Spacebar Ctrl+c Ctrl+c UpArrow Ctrl+c Ctrl+c Ctrl+r f f m p e g Ctrl+Backspace

### 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 31.
   at System.ConsolePal.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.CalculateWhereAndWhatToRender(Boolean cursorMovedToInitialPos, RenderData renderData, LineInfoForRendering& lineInfoForRendering)
   at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   at Microsoft.PowerShell.PSConsoleReadLine.RenderWithPredictionQueryPaused()
   at Microsoft.PowerShell.PSConsoleReadLine.ClearStatusMessage(Boolean render)
   at Microsoft.PowerShell.PSConsoleReadLine.InteractiveHistorySearch(Int32 direction)
   at Microsoft.PowerShell.PSConsoleReadLine.ReverseSearchHistory(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.4.5
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.3.3
PSReadLine EditMode: Windows
OS: 10.0.26100.1735 (WinBuild.160101.0800)
BufferWidth: 131
BufferHeight: 46

Steps to reproduce

No idea, it just happened

Expected behavior

Well...

Actual behavior

That happens.

@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 Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.
Projects
None yet
Development

No branches or pull requests

1 participant