-
Notifications
You must be signed in to change notification settings - Fork 311
System.ArgumentOutOfRangeException even on 2.0.0-beta2 #1170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@VimalShekar, Your environment states 'ConsoleHost', but your description mentions VS Code. Can you clarify this? Can you also clarify your environment in VS Code? It may not be the same as when you collected the environment in ConsoleHost. The signature of this exception exactly matches one fixed in beta 5. I cannot repeat the exception at this time. I also note that the exception report claims that ReallyRender attempted to set the cursor position to -38, with an environment of 29 lines, and a sample paste that is only 33 lines long. If you can reproduce this, can you get the environment, and the exact exception report including the previous 200 keys (minus any privacy items), and report what you were doing at the time, so the scenario can be matched up better? |
@VimalShekar Are you using the |
@VimalShekar I will close this issue for now. Note that |
I still see the error with PSReadline version: 2.0.0-beta5
Environment:
PS version: 5.1.18362.145
PSReadline version: 2.0.0-beta5
os: 10.0.18362.356 (WinBuild.160101.0800)
PS file version: 10.0.18362.356 (WinBuild.160101.0800)
HostName: ConsoleHost
BufferWidth: 219
BufferHeight: 29
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: top
Actual value was -38.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
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)
Steps to reproduce or exception report
Copy some thing big and paste it into the integrated terminal of Visual studio code.
All I had to do was copy the below script that grabs the environment data, This was sufficient to break PSReadline
The text was updated successfully, but these errors were encountered: