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 in Integrated Console when entering long input lines that wrap

See original GitHub issue

– EDIT FROM THE MAINTAINERS –

The PowerShell Preview extension has PSReadLine support and should resolve this issue. If you’re experiencing this, please give the preview extension a try. We’ve committed to delivering this fix in the stable extension release in January 2020.

– ORIGINAL ISSUE –

An error occurred while reading input:

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 3000.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.EditorServices.Console.ConsoleReadLine.InsertInput(StringBuilder inputLine, Int32 promptStartCol, Int32 promptStartRow, String inser
tedInput, Int32 cursorIndex, Int32 insertIndex, Int32 replaceLength, Int32 finalCursorIndex)
   at Microsoft.PowerShell.EditorServices.Console.ConsoleReadLine.<ReadLine>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Microsoft.PowerShell.EditorServices.Console.ConsoleService.<StartReplLoop>d__21.MoveNext()

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:27
  • Comments:65 (13 by maintainers)

github_iconTop GitHub Comments

4reactions
TylerLeonhardtcommented, Oct 14, 2019

@skeeler due to .NET Core 3.0 overhauling their Console APIs, we are going to wait til after PowerShell 7 GA ships to move what is in preview into stable.

The next preview will contain a huge refactor of the codebase that includes some perf/stability fixes. We will then address outstanding issues at that point until 7 is released.

4reactions
correcthorsebatterycommented, May 11, 2018

Just chiming in a little in case y’all might want to let the fix slip. Still impacted by this right now, and rather missing Powershell ISE.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Implementing a while loop to check for multiple exceptions in ...
I've come across this thread and many similar threads about running a loop while the input is invalid, and this example specifically using...
Read more >
Automate Desktop and Automate Plus/Ultimate - Fortra
Changing the Data Store credentials in the Server Management Console no longer clears the database instance and now informs the user to restart...
Read more >
Unity 2023.1.0a24
First seen in 2023.1.0a23. Fixed in 2023.1.0a25. IL2CPP: Linux IL2CPP builds fail with "BuildFailedException: Incremental Player build failed!" ...
Read more >
Exception Class (System) - Microsoft Learn
Instead, provide a retry mechanism so users can enter valid input. ... A class library that in turn wraps calls to methods in...
Read more >
What's new in Unity 2022.1.0 Beta 1
HD RP: HDRP Template fills the Console with "Shader ... UI Toolkit: Fixed an issue that pressing Enter on a focused ListView element...
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