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

System.IO.IOException: The parameter is incorrect. #3658

Closed
3 tasks done
theunrealtarik opened this issue Apr 20, 2023 · 1 comment
Closed
3 tasks done

System.IO.IOException: The parameter is incorrect. #3658

theunrealtarik opened this issue Apr 20, 2023 · 1 comment

Comments

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

-----------------------------------------------------------------------
Last 200 Keys:
 LeftArrow RightArrow Backspace Backspace Backspace Backspace Space Ctrl+RightArrow Ctrl+RightArrow Space t o Enter
 UpArrow Backspace Backspace T O Enter
 c l e a r Enter
 P S > Space R e m o v e - I t e m Space E n v : I G N O R E _ C A S E Enter
 P S > Space R e m o v e - I t e m Space E n v : I G N O R E _ C A S E Enter
 c l e a r Enter
 R e m o v e - I t e m Space E n v : I G N O R E _ C A S E Enter
 c a r g o Space r u Backspace Backspace Ctrl+c Ctrl+Backspace c e Backspace l e a r Enter
 c a r g o Space r u n Space . / p o e Tab Space t e s t Enter
 UpArrow Backspace Backspace Backspace Backspace B o d y Enter
 c l e a r Enter
 UpArrow UpArrow Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Enter
 Ctrl+l c l e a r Enter
 Ctrl+l

Exception:
System.IO.IOException: The parameter is incorrect.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Console.SetWindowPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------


### Screenshot

N/A

### Environment data

```console
PS Version: 5.1.19041.2673
PS HostName: ConsoleHost
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 158
BufferHeight: 1000

Steps to reproduce

  • opened a new powershell instance
  • zoomed in a bit using Ctrl + Mouse Scroll
  • used the keyboard shortcut Ctrl + L to clear screen

Expected behavior

clear the terminal

Actual behavior

mentioned exception were thrown

@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Apr 20, 2023
@github-actions
Copy link

This issue was already fixed (see #1315). Please upgrade to the 2.2.6 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.

@ghost ghost removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Apr 20, 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

1 participant