Skip to content

Crazy Bug after running code #4240

@Bright-jasi

Description

@Bright-jasi

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:
 m e - E v o l u t i o n / n a m e _ e v o l u t i o n . p y " Enter
 Enter
 & Space " C : / U s e r s / B r i g h t Space J a s i / a n a c o n d a 3 / p y t h o n . e x e " Space " c : / U s e r s / B r i g h t Space J a s i / N a m e s / N a m e - E v o l u t i o n / n a m e _ e v o l u t i o n . p y " Enter
 c l s Enter
 g i t Space a d d . Backspace Space . Enter
 c l s Enter
 c l s Enter
 c l e a r Enter
 c l s Enter
 c l e a r Enter
 Enter
 Backspace c l e a r Enter
 c l e a r Enter
 c l s Enter
 Ctrl+v

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.Paste(Nullable`1 key, Object arg)
   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)
-----------------------------------------------------------------------

Screenshot

No images

Environment data

windows

Steps to reproduce

I dont know

Expected behavior

no

Actual behavior

no idea

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions