-
Notifications
You must be signed in to change notification settings - Fork 318
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
Last 141 Keys:
c d Space " d : \ H r a d a y \ C p p _ l a n g u a g e \ C o d e f o r c e s _ C o n t e s t \ q u e s t i o n s \ " Space ; Space i f Space ( $ ? ) Space { Space g + + Space f i r s t K a S e c o n d . c p p Space - o Space f i r s t K a S e c o n d Space } Space ; Space i f Space ( $ ? ) Space { Space . \ f i r s t K a S e c o n d Space } Enter
Exception:
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Actual value was -2.
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
N/A
Environment data
Last 141 Keys:
c d Space " d : \ H r a d a y \ C p p _ l a n g u a g e \ C o d e f o r c e s _ C o n t e s t \ q u e s t i o n s \ " Space ; Space i f Space ( $ ? ) Space { Space g + + Space f i r s t K a S e c o n d . c p p Space - o Space f i r s t K a S e c o n d Space } Space ; Space i f Space ( $ ? ) Space { Space . \ f i r s t K a S e c o n d Space } Enter
Exception:
System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Actual value was -2.
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)Steps to reproduce
Run the cpp code using code runner in vs code
Expected behavior
To run the code normally
Actual behavior
Showing some weird error
Metadata
Metadata
Assignees
Labels
No labels