question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

:monkey_face: - PSReadLine Failure

See original GitHub issue

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!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
balakrishnangithubcommented, Jun 8, 2016

For me also

Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 0 Keys:


Exception:
System.IO.IOException: The handle is invalid.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
   at Microsoft.PowerShell.Internal.ConhostConsole.get_CursorLeft()
   at Microsoft.PowerShell.PSConsoleReadLine.Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics)
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------
PS C:\Program Files\Sublime Text 3> 
Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 0 Keys:


Exception:
System.IO.IOException: The handle is invalid.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Console.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
   at Microsoft.PowerShell.Internal.ConhostConsole.get_CursorLeft()
   at Microsoft.PowerShell.PSConsoleReadLine.Initialize(Runspace runspace, EngineIntrinsics engineIntrinsics)
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------
0reactions
cwraucommented, Aug 29, 2017

Thanks, I’ll take a look when I’ve got some time 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

powershell - Re enable Import Module Psreadline warning
Import-Module PSReadLine to your $PROFILE file and doing so will re-enable PSReadLine for a rich command-line editing experience, but you'll ...
Read more >
Cause of Warning: PowerShell detected that you might be ...
No warning is displayed when PowerShell starts, since I am not using a screen reader. Workaround. Run the specified command Import-Module ...
Read more >
PowerShell "Update-Help"
Describes how to workaround the error when you try to update help for PSReadline in Windows PowerShell 5.1. Try this for the ConfigDefender ......
Read more >
qgeneration.txt
Firebug shows `` following '' error How do I make timeout not print any text ? GPU is not booting What does this...
Read more >
Not able to update-help in PowerShell - Microsoft Q&A
I've tried -Force switch. Tried save-help then run using -sourcepath still same error message. Any help really appreciated. Windows Server ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found