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

ConsoleHost in pwsh 7.3.4 gets an error when hitting pageUp in console window. Message asks to report this issue. #3842

Closed
3 tasks done
kurtrenner opened this issue Oct 20, 2023 · 2 comments
Labels
Needs-Repro There is no sufficient information on repro steps. Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.

Comments

@kurtrenner
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

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.4
PowerShell: 7.3.8
OS: Microsoft Windows 10.0.17763
BufferWidth: 172
BufferHeight: 9001

Last 24 Keys:

 LeftWindows UpArrow UpArrow UpArrow UpArrow UpArrow UpArrow UpArrow Enter
 $ c o n n Spacebar | Shift+Spacebar f l Enter
 LeftWindows PageUp PageDown PageUp

### Exception

System.IO.IOException: The parameter is incorrect.
   at System.ConsolePal.SetWindowPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.Internal.VirtualTerminal.SetWindowPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ScrollDisplayUp(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.8
PS HostName: ConsoleHost
PSReadLine Version: 2.3.4
PSReadLine EditMode: Windows
OS: 10.0.17763.1 (WinBuild.160101.0800)
BufferWidth: 172
BufferHeight: 9001

Steps to reproduce

issue commands in a pwsh session window that cause the content of the screen to scroll outside the window boundaries and then hit the pageUp key on the keyboard. Error message is produced and the screen content does not scroll up.

Expected behavior

Expect to see content on previous page(s) of the window output

Actual behavior

Error noted is displayed

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

daxian-dbw commented Oct 20, 2023

@kurtrenner thanks for reporting the issue! But I cannot reproduce the issue locally with the conhost (your image shows you were using conhost as the terminal). If you are able to consistently reproduce the issue, can you please provide more detailed steps (including operations like maximizing the window or snap the window to a side/cornor of the screen) for us to reproduce it in a fresh pwsh session? Thanks!

@daxian-dbw daxian-dbw added the Needs-Repro There is no sufficient information on repro steps. label Oct 20, 2023
@microsoft-github-policy-service
Copy link
Contributor

This issue is closed because it has been marked as requiring repro steps but has not had any activity for 7 days. If you think the issue is still relevant, please reopen and provide your feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Repro There is no sufficient information on repro steps. Needs-Triage 🔍 It's a new issue that core contributor team needs to triage.
Projects
None yet
Development

No branches or pull requests

2 participants