-
Notifications
You must be signed in to change notification settings - Fork 317
Closed
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues, especially the pinned issues.
Exception report
I encountered a `System.ArgumentOutOfRangeException` while using VS code and want to print("hellow world", "\n", "your computer is hacked" ), which occurred when setting the console's cursor position. Below is the error message I received:
Oops, something went wrong. Please report this bug with the details below. Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
Last 7 Keys: & Space C : / U s
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 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(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)Screenshot
Environment data
PS Version: Major- 5, Minor- 1,Build- 19041, Revision- 5007
PS HostName: ConsoleHost
PSReadLine Version: Module Type- Script, Version- 2.0.0, Name- PSReadline
PSReadLine EditMode: Windows
Os: Microsoft Windows [Version 10.0.19045.5011]
BufferWidth: 120
bufferheight: 3000Steps to reproduce

I just used the Fn in VS code in Pyhton language that print("hellow world", "\n" "your computer is hacked").
Please find the attached image for your better understanding
Expected behavior
hellow world
your computer is hacked
Actual behavior
Metadata
Metadata
Assignees
Labels
No labels

