question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ArgumentOutOfRangeException on VSCode terminal PS 7.0

See original GitHub issue

Environment

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:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tonybountycommented, Aug 29, 2020

try to upgrade : Install-Module -Name PSReadLine -Force

0reactions
daxian-dbwcommented, Mar 12, 2021

Mark this as a duplicate of #2298

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found