Skip to content
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

CTRL+L after running the previous command intermittently results in an error #2722

Closed
mj-crabtree opened this issue Aug 4, 2021 · 1 comment

Comments

@mj-crabtree
Copy link

mj-crabtree commented Aug 4, 2021

as per the title

  • issue occurs inside the vscode integrated terminal
  • unable to recreate the issue in powershell via windows terminal preview
  • issue exists in windows terminal
  • unable to recreate the issue in powershell.exe
  • i've redacted a few of the keystrokes but know that they were the title of a python script its argument.

if you need anything else from me then please, let me know!

thanks

-----------------------------------------------------------------------    
Last 54 Keys:
 p y Enter
 p y t h o n Tab Backspace Backspace Backspace Backspace Space * * * * * * * * Tab Space * * * * * Tab Enter
 UpArrow Enter
 Ctrl+l UpArrow Enter
 Ctrl+l UpArrow Enter
 UpArrow Enter
 UpArrow Ctrl+l Enter
 Ctrl+l UpArrow Escape Ctrl+l UpArrow Enter
 UpArrow Enter
 Ctrl+l

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: top
Actual value was -5.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

UPDATE: issue exists when using powershell via windows terminal preview

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: top
Actual value was -8.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Aug 4, 2021
@daxian-dbw
Copy link
Member

This issue was already fixed (see #1315). Please upgrade to the 2.1.0 version of PSReadLine from PowerShell Gallery.
See the upgrading section for instructions. Please let us know if you run into the same issue with the latest version.

@ghost ghost removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Sep 9, 2021
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