PSReadLine icon indicating copy to clipboard operation
PSReadLine copied to clipboard

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

Open MJunhaoChen opened this issue 4 years ago • 1 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest released version
  • [X] Search the existing issues, especially the pinned issues.

Exception report

Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 150 Keys:
 Space & Space ' C : \ P r o g r a m Space F i l e s \ E c l i p s e Space A d o p t i u m \ j d k - 1 1 . 0 . 1 3 . 8 - h o t s p o t \ b i n \ j a v a . e x e ' Space ' @ C : \ U s e r s \ J u n h a o \ A p p D a t a \ L o c a l \ T e m p \ c p _ b 2 1 x l 9 9 0 1 2 f w l h l 1 v 3 n a m s 6 z x . a r g f i l e ' Space '

Exception:
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Parameter name: left
Actual value was -1.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
   at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   at Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   at Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(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)
-----------------------------------------------------------------------

Screenshot

image

Environment data

window

Steps to reproduce

open vscode run gets error

Expected behavior

working code

Actual behavior

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

MJunhaoChen avatar Apr 12 '22 10:04 MJunhaoChen

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

github-actions[bot] avatar Apr 12 '22 10:04 github-actions[bot]