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 when using PSReadLine in VS Code #4196

Closed
3 tasks done
superprogramer123 opened this issue Sep 28, 2024 · 0 comments
Closed
3 tasks done

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 in Visual Studio Code. The error message indicates that the value must be greater than or equal to zero and less than the console's buffer size. The actual value was -2.

Screenshot

Capture
3
2

Environment data

Psreadline version: PSReadline 2.0.0
powershell vesrion:Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      19041  4894
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 Visual Studio Code.
  2. Open the integrated terminal.
  3. Click the play button to run the script.
  4. Observe the error message.

Expected behavior

the code runs without displaying error messages

Actual behavior

When I clicked the play button in VS Code, I received a System.ArgumentOutOfRangeException error. The error message indicated that the value must be greater than or equal to zero and less than the console's buffer size. The actual value was -2.

@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 28, 2024
@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 28, 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