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

Pasting long function #1353

Closed
wonderplayer opened this issue Feb 14, 2020 · 2 comments
Closed

Pasting long function #1353

wonderplayer opened this issue Feb 14, 2020 · 2 comments

Comments

@wonderplayer
Copy link

Got the following error when pasting long function to terminal window in VS Code

Last 200 Keys:
" Enter
Space Space Space Space } Enter
Tab e l s e Enter
Tab { Enter
Tab Tab # Space A d d Space a Space + 1 Space h o u r Space t i m e s t a m p Space t o Space t h e Space O A u t h 2 Space t o k e n Space r e s p o n s e : Enter
Tab Tab $ s c r i p t : g r a p h A P I A u t h R e s u l t Space | Space A d d - M e m b e r Space - N o t e P r o p e r t y N a m e Space e x p i r a t i o n _ t i m e Space - N o t e P r o p e r t y V a l u e Space ( ( G e t - D a t e ) . A d d H o u r s ( 1 ) ) Enter
Tab } Enter
} Enter

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 -35.
at System.Console.SetCursorPosition(Int32 left, Int32 top)
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(Nullable1 key, Object arg) at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 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 Feb 14, 2020
@iSazonov
Copy link

iSazonov commented Feb 14, 2020

@wonderplayer Please use Issue template to report:

The maintainer may close your issue without further explanation or engagement if:

  • You delete this entire template and go your own path;

@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 steps the next time.

As for the exception you report here, check out the pinned issue #1306

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

3 participants