PowerShell / PSReadLine

A bash inspired readline implementation for PowerShell
BSD 2-Clause "Simplified" License
3.77k stars 298 forks source link

Consol error (by vscode) #4151

Closed Gabizoc closed 3 months ago

Gabizoc commented 3 months ago

Prerequisites

Exception report

Oups, un problème s'est produit. Signalez ce bogue avec les détails ci-dessous.
Signaler sur GitHub : https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
 h t t p s : / / g i t h u b . c o m / S o c i a l l y I n e p t W e e b / A I C o v e r G e n . g i t Ctrl+z z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Ctrl+z Alt+v Ctrl+v

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
La valeur réelle était -1.
   à System.Console.SetCursorPosition(Int32 left, Int32 top)
   à Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   à Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   à Microsoft.PowerShell.PSConsoleReadLine.Paste(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_2024-09-02_191200511

Environment data

Windows 10

Steps to reproduce

juste ctrl+ z several times in the consol

Expected behavior

Stop the ctrl + z

Actual behavior

Send an error

github-actions[bot] commented 3 months ago

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.