ArgumentOutOfRangeException on VSCode terminal PS 7.0
See original GitHub issueEnvironment
PSReadLine: 2.0.2 PowerShell: 7.0.3 OS: Microsoft Windows 10.0.18362 Last 200 Keys
n t e n t T y p e Spacebar " a p p l i c a t i o n / m s - e x c e l " Spacebar - A l l o w O v e r w r i t e = $ f a l s e Enter
UpArrow Escape d g d g s t Tab Enter
Spacebar Spacebar Spacebar Spacebar L i s t L o g Spacebar - C o n n S t r Spacebar ( G A S C o n n Spacebar X X X X X X X P r o d S t o r a g e C o n n ) Spacebar - P r e f i x Spacebar X X X X X X X X N i g h t l y R e p o r t A D L A P r o c e s s Spacebar - D a y s B a c k Spacebar 1 Enter
Spacebar Spacebar Spacebar Spacebar L i s t L o g Spacebar - C o n n S t r Spacebar ( G A S C 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 'top')
Actual value was 31.
at System.ConsolePal.SetCursorPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.CalculateWhereAndWhatToRender(Boolean cursorMovedToInitialPos, RenderData renderData, LineInfoForRendering& lineInfoForRendering)
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(PSKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
System.ArgumentOutOfRangeException: The value must ...
ArgumentOutOfRangeException : The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Read more >visual studio code - VScode Exception occur: System. ...
ArgumentOutOfRangeException : The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Read more >How can I fix VSCode crashing when opened as half a ...
ArgumentOutOfRangeException : The value must be greater than or equal to zero and less than the console's buffer size in that dimension.
Read more >Troubleshoot Terminal launch failures
To change this, open cmd.exe from the start menu, right-click the title bar, go to Properties and under the Options tab, uncheck Use...
Read more >PowerShell editing with Visual Studio Code
An Extension Terminal that can interact with the debugger (try Set-PSBreakpoint !) PowerShell ISE theme findable in the theme picker; Also try ISE...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
try to upgrade :
Install-Module -Name PSReadLine -Force
Mark this as a duplicate of #2298