Skip to content

Co-Pilot bug #5095

@CowbridgeChris

Description

@CowbridgeChris

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues, especially the pinned issues.

Exception report

Last 200 Keys:
 1 b 5 c 3 b 2 3 d 5 c d 2 8 5 a e = $ ? " Space } Space } Enter
 Ctrl+Enter t r y Space { Space e c h o Space u c i Enter
 Ctrl+Enter p e r f t Enter
 Ctrl+Enter q u i t Enter
 Ctrl+Enter Space | Space x 6 4 \ D e b u g \ O t t o . e x e Space } Space f i n a l l y Space { Space i f Space ( $ ? ) Space { Space e c h o Space " 9 3 6 1 9 1 1 d c 3 7 e 4 d 6 6 8 1 4 b 5 4 c 1 7 e 3 8 7 8 4 7 = $ ? " Space } Space e l s e Space { Space e c h o Space " 9 3 6 1 9 1 1 d c 3 7 e 4 d 6 6 8 1 4 b 5 4 c 1 7 e 3 8 7 8 4 7 = $ ? " Space } Space } Enter
 Ctrl+Enter

Screenshot

Failed during test for magic numbers

Environment data

no data

Steps to reproduce

running test

Expected behavior

no exception

Actual behavior

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.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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions