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

Exception when pressing Ctrl+L #1437

Closed
anthonyvdotbe opened this issue Mar 31, 2020 · 5 comments
Closed

Exception when pressing Ctrl+L #1437

anthonyvdotbe opened this issue Mar 31, 2020 · 5 comments
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@anthonyvdotbe
Copy link
Contributor

anthonyvdotbe commented Mar 31, 2020

This occured in a standard PowerShell window inside VS Code's Terminal view, upon pressing Ctrl+L. Pressing it again worked as expected.

PSVersion = 5.1.18362.628

-----------------------------------------------------------------------
Last 200 Keys:
 e r c e p t o r Enter
 c d Space i a m Enter
 r g Space - Backspace m a s t e r Enter
 UpArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow - s Space Enter
 UpArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow Backspace Backspace Backspace Delete M Enter
 UpArrow UpArrow Home RightArrow RightArrow RightArrow Delete Delete Delete Enter
 UpArrow UpArrow UpArrow DownArrow Enter
 UpArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow Delete n Backspace m Enter
 UpArrow Home RightArrow RightArrow . e x e Enter
 UpArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow Enter
 c d Space . . Enter
 UpArrow UpArrow Enter
 c d Space i a m Enter
 UpArrow UpArrow Enter
 c d Space . . Enter
 Ctrl+l c d Space s o c Tab Enter
 r g Space m a s t e r Enter
 UpArrow UpArrow DownArrow Shift+Ctrl+LeftArrow Ctrl+c Ctrl+c c d Space . . Enter
 r g Space - s Space R e m o t e M a i l i n g S e r v i c e Enter
 UpArrow Shift+Ctrl+LeftArrow c r e a t e M a i l i n g Enter
 \ Backspace Backspace 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 -1.
   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 Mar 31, 2020
@iSazonov
Copy link

See #1306

@anthonyvdotbe
Copy link
Contributor Author

Thanks for the reference. My particular stack trace isn't in there though, so I'll leave this open for now

@daxian-dbw
Copy link
Member

From the bug report template:

The maintainer may close your issue without further explanation or engagement if:
- You delete this entire template and go your own path;

So, please follow the bug report template to provide environment data and repro step the next time.

Issues related to Ctrl+l has been fixed by avoid using SetCursorPosition, see #1315.

@ghost ghost removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Mar 31, 2020
@daxian-dbw daxian-dbw added the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Mar 31, 2020
@anthonyvdotbe
Copy link
Contributor Author

@daxian-dbw when I received the error in PowerShell, I used the provided link which opens this page. So I didn't "go my own path", since I never saw a template to begin with.
I opened #1440 and submitted #1441

@daxian-dbw
Copy link
Member

@anthonyvdotbe This is a good feedback, thanks for submitting the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

3 participants