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 [keycodes error] VSCode #4142

Closed
3 tasks done
Math-Vov13 opened this issue Aug 27, 2024 · 1 comment
Closed
3 tasks done

System.ArgumentOutOfRangeException [keycodes error] VSCode #4142

Math-Vov13 opened this issue Aug 27, 2024 · 1 comment

Comments

@Math-Vov13
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

-----------------------------------------------------------------------
Dernières 92 touches :
 & Space " d : / P y t h o n / D i s c o r d Space L i b / . v e n v / S c r i p t s / p y t h o n . e x 
e " Space " d : / P y t h o n / D i s c o r d Space L i b / b o t / M y A I / M y A I . p y " Enter      


Exception :
System.ArgumentOutOfRangeException: La valeur doit être supérieure ou égale à zéro et inférieure à la taille de la mémoire tampon de la console dans cette dimension.
Nom du paramètre : top
   à System.Console.SetCursorPosition(Int32 left, Int32 top)
   à Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)     
   à Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   à Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   à Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
   à Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   à Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   à Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------

Screenshot

image

Environment data

PS Version: 5.1.19041.4780
PS HostName: ConsoleHost
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.19041.4522 (WinBuild.160101.0800)
BufferWidth: 80
BufferHeight: 14

Steps to reproduce

The program was stuck on a piece of code, so I decided to stop it with ‘Ctrl + C’.
When I ran it again, I got this error...

Expected behavior

Ran the program without errors.

Actual behavior

Ran the program with the error above.

Path to launch the program:
$ "d:/Python/Discord Lib/.venv/Scripts/python.exe" "d:/Python/Discord Lib/bot/MyAI/MyAI.py"

@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 Aug 27, 2024
Copy link

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

@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 Aug 27, 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

3 participants
@Math-Vov13 and others