Skip to content

Error when typing the " for a git commit message #1301

New issue

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

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

Already on GitHub? Sign in to your account

Closed
Fishezzz opened this issue Jan 16, 2020 · 2 comments
Closed

Error when typing the " for a git commit message #1301

Fishezzz opened this issue Jan 16, 2020 · 2 comments

Comments

@Fishezzz
Copy link

Fishezzz commented Jan 16, 2020

Environment data

PS version: 5.1.18362.145
PSReadline version: 2.0.0-beta2
os: 10.0.18362.356 (WinBuild.160101.0800)
PS file version: 10.0.18362.356 (WinBuild.160101.0800)
HostName: ConsoleHost
BufferWidth: 108
BufferHeight: 3000

Steps to reproduce or exception report

-----------------------------------------------------------------------
Last 59 Keys:
 g i t Space i n i t Enter
 g i t Space a d d Backspace Backspace Backspace s t a t u s Enter
 g i t Space a t Backspace d d Space R Tab Enter
 g i t Space c o m m i t Space - m Backspace S Space - m Space "

Exception:
System.ArgumentOutOfRangeException: De waarde moet groter zijn dan of gelijk zijn aan nul en minder zijn dan de buffergrootte van de console in die dimensie.
Parameternaam: left
Werkelijke waarde was -1.
   bij System.Console.SetCursorPosition(Int32 left, Int32 top)
   bij Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
   bij Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   bij Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   bij Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   bij Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
   bij Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   bij Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   bij Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------

This fills up the whole width of the window

PS C:\Users\xxxxx\OneDrive - Hogeschool VIVES\3 Derde Jaar\Mobile development\mobile_development_2-commands>

so on the next line there are the characters you type.

Maybe this has somethin to do with it, the working directory filling up the whole width of the screen. I don't have any idea tho. It's the first time I have an error that is from powershell itselve.

@Fishezzz
Copy link
Author

Fishezzz commented Jan 16, 2020

Might be fixed by #967 but I'm still able to recrate the same things here.

@daxian-dbw
Copy link
Member

This was fixed in recent versions of PSReadLine. Please try out the 2.0.0-rc2 from PowerShell Gallery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants