-
Notifications
You must be signed in to change notification settings - Fork 320
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
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:
# 1 Space } Space ; Space i f Space ( $ ? ) Space { Space . \ # 1 Space } Enter
3 0 Enter
1 2 0 Enter
c d Space " c : \ V S Space C o d e \ C o d e C h e f \ " Space ; Space i f Space ( $ ? ) Space { Space g + + Space # 1 . c p p Space - o Space # 1 Space } Space ; Space i f Space ( $ ? ) Space { Space . \ # 1 Space } Enter
3 0 Enter
1 2 0 Enter
; Enter
a ] ; ] a s ; Enter
c d Space " c : \ V S Space C o d e \ C o d e C h e f \ " Space ; Space i f Space ( $ ? ) Space { Space g + + Space # 1 . c p p Space - o Space # 1 Space } Space ; Space i f Space ( $ ? ) Space { Space . \ # 1 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: top
Actual value was -2.
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)Screenshot
n/a
Environment data
PS C:\Users\HP> cd "c:\VS Code\CodeChef\" ; if ($?) { g++ #1.cpp -o #1 } ; if ($?) { .\#1 }
>> 30
>> 120
>> 12
>>
>> 12
>> 12
>> 121
>> 2
>> 12
>> 1
Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 104 Keys:
c d Space " c : \ V S Space C o d e \ C o d e C h e f \ " Space ; Space i f Space ( $ ? ) Space { Space g + + Space # 1 . c p p Space - o Space # 1 Space } Space ; Space i f Space ( $ ? ) Space { Space . \ # 1 Space } Enter
3 0 Enter
1 2 0 Enter
1 2 Enter
Enter
1 2 Enter
1 2 Enter
1 2 1 Enter
2 Enter
1 2 Enter
1 2
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 -1.
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)
-----------------------------------------------------------------------
PS C:\Users\HP> cd "c:\VS Code\CodeChef\" ; if ($?) { g++ #1.cpp -o #1 } ; if ($?) { .\#1 }
>> 30
>> 120
>> 12
>>
>> 12
>> 12
>> 121
>> 2
>> 12
>> 12
Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 105 Keys:
c d Space " c : \ V S Space C o d e \ C o d e C h e f \ " Space ; Space i f Space ( $ ? ) Space { Space g + + Space # 1 . c p p Space - o Space # 1 Space } Space ; Space i f Space ( $ ? ) Space { Space . \ # 1 Space } Enter
3 0 Enter
1 2 0 Enter
1 2 Enter
Enter
1 2 Enter
1 2 Enter
1 2 1 Enter
2 Enter
1 2 Enter
1 2 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: top
Actual value was -1.
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.AcceptLineImpl(Boolean validate)
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\HP> cd "c:\VS Code\CodeChef\" ; if ($?) { g++ #1.cpp -o #1 } ; if ($?) { .\#1 }
>> 30
>> 120
>> 12
>>
>> 12
>> 12
>> 121
>> 2
>> 12
>> 12
>>
Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 106 Keys:
c d Space " c : \ V S Space C o d e \ C o d e C h e f \ " Space ; Space i f Space ( $ ? ) Space { Space g + + Space # 1 . c p p Space - o Space # 1 Space } Space ; Space i f Space ( $ ? ) Space { Space . \ # 1 Space } Enter
3 0 Enter
1 2 0 Enter
1 2 Enter
Enter
1 2 Enter
1 2 Enter
1 2 1 Enter
2 Enter
1 2 Enter
1 2 Enter
1
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 -2.
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)
-----------------------------------------------------------------------
PS C:\Users\HP> cd "c:\VS Code\CodeChef\" ; if ($?) { g++ #1.cpp -o #1 } ; if ($?) { .\#1 }
>> 30
>> 120
>> 12
>>
>> 12
>> 12
>> 121
>> 2
>> 12
>> 12
>> 1
Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 107 Keys:
c d Space " c : \ V S Space C o d e \ C o d e C h e f \ " Space ; Space i f Space ( $ ? ) Space { Space g + + Space # 1 . c p p Space - o Space # 1 Space } Space ; Space i f Space ( $ ? ) Space { Space . \ # 1 Space } Enter
3 0 Enter
1 2 0 Enter
1 2 Enter
Enter
1 2 Enter
1 2 Enter
1 2 1 Enter
2 Enter
1 2 Enter
1 2 Enter
1 2
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 -2.
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)
-----------------------------------------------------------------------
PS C:\Users\HP> cd "c:\VS Code\CodeChef\" ; if ($?) { g++ #1.cpp -o #1 } ; if ($?) { .\#1 }
>> 30
>> 120
>> 12
>>
>> 12
>> 12
>> 121
>> 2
>> 12
>> 12
>> 12Steps to reproduce
#include
using namespace std;
int main()
{
int x;
double y;
cont double fee;
cin>>x;
cin>>y;
if(x%5!=0)
cout<<y;
else if(y>x)
cout<<y;
else{
y-=x+fee;
cout<<fixed<<y;
}
return 0;
}
Expected behavior
30
120
89.500
Actual behavior
d "c:\VS Code\CodeChef" ; if ($?) { g++ #1.cpp -o #1 } ; if ($ ?) { .#1 }
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:
Space ; Space i f Space ( $ ? ) Space { Space . \ # 1 Space } Enter
3 0 Enter
1 2 0 Enter
c d Space " c : \ V S Space C o d e \ C o d e C h e f \ " Space ; Space i f Space ( $ ? ) Space { Space g + + Space # 1 . c p p
Space - o Space # 1 Space } Space ; Space i f Space ( $ ? ) Space { Space . \ # 1 Space } Enter
3 0 Enter
1 2 0 Enter
; Enter
a ] ; ] a s ; Enter
c d Space " c : \ V S Space C o d e \ C o d e C h e f \ " Space ; Space i f Space ( $ ? ) Space { Space g + + Space # 1 . c p p
Space - o Space # 1 Space } Space ; Space i f Space ( $ ? ) Space { Space . \ # 1 Space } Enter
DownArrow DownArrow UpArrow c
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 -3.
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(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)