-
Notifications
You must be signed in to change notification settings - Fork 319
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 200 Keys:
c c Space w h i l e l o o p . c Space - o Space w h i l e l o o p Space } Space ; Space i f Space ( $ ? ) Space { Space . \ w h i l e l o o p Space } Enter
c d Space " c : \ U s e r s \ S H U B H A M Space J H A \ D e s k t o p \ l e a r n i n g Space c \ 4 Space D e c i s i o n Space C o n t r o l Space S t r u c t u r e \ " Space ; Space i f Space ( $ ? ) Space { Space g c c Space w h i l e l o o p . c Space - o Space w h i l e l o o p Space } Space ; Space i f Space ( $ ? ) Space { Space . \ w h i l e l o o p 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.
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)
-----------------------------------------------------------------------
PS C:\Users\SHUBHAM JHA\Desktop\learning c\4 Decision Control Structure>
Oops, something went wrong. Please
report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 200 Keys:
c c Space w h i l e l o o p . c Space - o Space w h i l e l o o p Space } Space ; Space i f Space ( $ ? ) Space { Space . \ w h i l e l o o p Space } Enter
c d Space " c : \ U s e r s \ S H U B H A M Space J H A \ D e s k t o p \ l e a r n i n g Space c \ 4 Space D e c i s i o n Space C o n t r o l Space S t r u c t u r e \ " Space ; Space i f Space ( $ ? ) Space { Space g c c Space w h i l e l o o p . c Space - o Space w h i l e l o o p Space } Space ; Space i f Space ( $ ? ) Space { Space . \ w h i l e l o o p 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.
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)
-----------------------------------------------------------------------
PS C:\Users\SHUBHAM JHA\Desktop\learning c\4 Decision Control Structure>
Screenshot

Environment data
PS Version: 5.1.19041.6328
PS HostName: ConsoleHost
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 120
BufferHeight: 3000
Steps to reproduce
running the code in same terminal second time and i think it started after i run a infinite while loop condition
Expected behavior
it should run every time
Actual behavior
it did not run as expected
Metadata
Metadata
Assignees
Labels
No labels