Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

OutOfRangeException #786

Closed
MCRusher opened this issue Oct 25, 2018 · 3 comments
Closed

OutOfRangeException #786

MCRusher opened this issue Oct 25, 2018 · 3 comments
Labels
OutOfRange Issues relating to System.ArgumentOutOfRangeException

Comments

@MCRusher
Copy link

PS C:\Users\XXX\Desktop\BC\implementation>

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

Last 2 Keys:
d Backspace

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 45.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender()
at Microsoft.PowerShell.PSConsoleReadLine.BackwardDeleteChar(Nullable1 key, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS C:\Users\XXX\Desktop\BC\implementation>

So, what I did was I resized the window into a square so that the blinking '_' was the only thing that could fit on that line, and then I typed d, then hit backspace, may have multitapped it on accident, then thing lagged out and crashed.
This did happen shortly after resizing, but has a different error.

Hope this helps.

Below is a screenshot of what my powershell window was like exactly:

pwrshll

@lzybkr
Copy link
Member

lzybkr commented Oct 25, 2018

Which version of PSReadLine? If it's 1.2, we can close as it's probably fixed in 2.0.

@jocgir
Copy link

jocgir commented Oct 29, 2018

I have this problem with version 2.0 on OSX.

The problem appeared when I updated my powershell to v6.1.

I noticed that the problem is also there within the docker image microsoft/powershell.

The problem only occurs when the cursor it at the first line.

@joeyaiello joeyaiello added the OutOfRange Issues relating to System.ArgumentOutOfRangeException label Jun 18, 2019
@daxian-dbw
Copy link
Member

Fixed by #979 and #967

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
OutOfRange Issues relating to System.ArgumentOutOfRangeException
Projects
None yet
Development

No branches or pull requests

5 participants