Skip to content

🐵 - PSReadLine Failure #397

@ciriarte

Description

@ciriarte

Hello There,

I was working on my terminal (ConEmu) and botched PSReadLine, the console output sent me here:

Last 200 Keys:
 i t Backspace Backspace Backspace g i t Spacebar p u l l Spacebar - - r e b a s e Enter
 g i t Spacebar s t a s h Enter
 UpArrow UpArrow Enter
 g i Spacebar p u s Backspace Backspace Backspace Backspace t Spacebar p u s h Enter
 UpArrow UpArrow UpArrow UpArrow UpArrow DownArrow Enter
 g i t Spacebar p u l l Spacebar - - r e b a s e Enter
 g i t Spacebar p u l l Spacebar - - r e b a s e Enter
 g i t Spacebar s t Backspace t a s h Enter
 UpArrow UpArrow Enter
 b i Backspace Backspace Backspace g i t Spacebar p u s h Enter
 c o d e Backspace Backspace Backspace Backspace c d Spacebar s r c \ w Backspace e 2 Tab Enter
 c o d e Spacebar . Enter
 c l e a r Enter
 c p Spacebar Backspace Backspace Backspace Backspace g i t Spacebar p u l l Spacebar - - r e b a s e Enter
 g i t Spacebar p r o t r a c t o r Ctrl+y Backspace

Exception:
System.ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds.
   at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   at System.Array.Copy(Array sourceArray, Array destinationArray, Int32 length)
   at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender()
   at Microsoft.PowerShell.PSConsoleReadLine.BackwardDeleteChar(Nullable`1 key, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics

For context, I was trying to git pull --rebase and then look for a particular command in my history with arrow up.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-DuplicateThere's another issue on the tracker that's pretty much the same thing.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions