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.ArgumentOutOfRangeException in PSReadLine #4167

Closed
3 tasks done
superprogramer123 opened this issue Sep 10, 2024 · 1 comment
Closed
3 tasks done

System.ArgumentOutOfRangeException in PSReadLine #4167

superprogramer123 opened this issue Sep 10, 2024 · 1 comment

Comments

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

I encountered a `System.ArgumentOutOfRangeException` while using PSReadLine. The error message is as follows:
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console’s buffer size in that dimension. Parameter name: top Actual value was -2.

Screenshot

Capture

Environment data

PSReadLine Version:PSReadline 2.0.0
PowerShell Version:Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      19041  4780
Operating System Details:
CsName            : DESKTOP-618M4H9
OsName            : Microsoft Windows 10 Pro
OsArchitecture    : 64-bit
WindowsVersion    : 2009
WindowsBuildLabEx : 19041.1.amd64fre.vb_release.191206-1406

Steps to reproduce

  1. Open PowerShell.
  2. Execute a command that triggers the error.

Expected behavior

The command should execute without throwing an exception.

Actual behavior

The command throws 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 Sep 10, 2024
@superprogramer123
Copy link
Author

please help and solve this bug!

@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 Sep 10, 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