Skip to content

Got an error after rendering a large output in the terminal #4881

@claude-jr

Description

@claude-jr

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

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
-----------------------------------------------------------------------
Dernières 200 touches :
 o m m i t Space - m Space ' i n s t a l l Backspace Backspace Backspace Backspace Backspace Backspace Backspace f Backspace a d d : Space Backspace Backspace Backspace Backspace Backspace f i x : Backspace Backspace x : Space i n s a Backspace t a l l l Backspace e d Space o p e n a i Ctrl+Alt+@ 5 . 1 1 . 0 Space a l o n g Backspace g s i d e Space w 
i t h Space z o d Ctrl+Alt+@ 3 . 2 3 . 8 Space r e Backspace Backspace Backspace Space ( r e m o v e d Space z o d Ctrl+Alt+@ 4 . 0 . 1 0 ) ' Enter
 g i t Space p u s h Space - u Space o r i g i n Space v 1 / f e a u Backspace t u r e / m e s s a g e - a c t i o n s Enter
 n o d e Ctrl+l Space s r Tab h Tab u Tab Enter
 UpArrow Enter
 UpArrow Enter
 UpArrow Enter
 UpArrow Enter
 Ctrl+l

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 -7.
   à System.Console.SetCursorPosition(Int32 left, Int32 top)
   à 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

N/A

Environment data

PS Version: 5.1.18362.1171
PS HostName: ConsoleHost
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.18362.2394 (WinBuild.160101.0800)
BufferWidth: 177
BufferHeight: 28

Steps to reproduce

N/A

Expected behavior

N/A

Actual behavior

The exception occurs but after rendering the output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions