Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error received in PowerShell #932

Closed
milescw opened this issue Jun 3, 2019 · 2 comments
Closed

Error received in PowerShell #932

milescw opened this issue Jun 3, 2019 · 2 comments
Labels
OutOfRange Issues relating to System.ArgumentOutOfRangeException

Comments

@milescw
Copy link

milescw commented Jun 3, 2019

Environment data

PS version: 5.1.17763.503
PSReadline version: 2.0.0-beta2
os: 10.0.17763.1 (WinBuild.160101.0800)
PS file version: 10.0.17763.1 (WinBuild.160101.0800)

Steps to reproduce or exception report

All I did was start to type docker run -v and as soon as I pressed the letter "d" this error came up.
$d
Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new

Last 152 Keys:
c d Space C : \ U s e r s \ C h a r l e s \ D o c u m e n t s \ T r a i n i n g \ U d a c i t y \ N a n o d e g r e e \ B l o c k c h a i n - D e v e l o p e r \ T e r m 2 \ P r o j e c t s \ u d b c d - b l o c k c h a i n - c a p s t o n e Enter
p w d Enter
f u n c t i o n Space p r o m p t Space { " $ " } Enter
p w d Enter
d o

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(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)

$cker run

@daxian-dbw daxian-dbw added this to the 2.0.0-Consider milestone Jun 18, 2019
@joeyaiello joeyaiello added the OutOfRange Issues relating to System.ArgumentOutOfRangeException label Jun 18, 2019
@daxian-dbw
Copy link
Member

This one is a easy repro, it's because the prompt function was changed to produce a string that is shorter than the error prompt > .

@daxian-dbw
Copy link
Member

Fixed by #967

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
OutOfRange Issues relating to System.ArgumentOutOfRangeException
Projects
None yet
Development

No branches or pull requests

3 participants