Skip to content

Problem with powershell terminal on Visual Studio #4705

@Adam2475

Description

@Adam2475

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

Ultimi 11 tasti:
 d Backspace c d Space c Tab Tab Enter
 d o

Eccezione:
System.ArgumentOutOfRangeException: Il valore deve essere maggiore o uguale a zero e minore della grandezza del buffer della console in tale dimensione.
Nome parametro: left
Valore effettivo: -1.
   in System.Console.SetCursorPosition(Int32 left, Int32 top)
   in Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
   in Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   in Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   in Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   in Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
   in Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   in Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   in Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

Screenshot

last issue with this exeptions is closed on january 2020

Environment data

Ps Version 5.1

Steps to reproduce

using powershell inside visual studio and simply using various commands

Expected behavior

no error while digiting

Actual behavior

Ultimi 200 tasti:
g ) Enter
Ctrl+Enter Space Space Space i n Space M i c r o s o f t . P o w e r S h e l l . P S C o n s o l e R e a d L i n e . I n p u t L o o p ( ) Enter
Ctrl+Enter Space Space Space i n Space M i c r o s o f t . P o w e r S h e l l . P S C o n s o l e R e a d L i n e . R e a d L i n e ( R u n s p a c e Space r u n s p a c e , Space E n g i n e I n t r i n s i c s Space e n g i n e I n t r i n s i c s ) c l e a r Enter
UpArrow UpArrow UpArrow UpArrow UpArrow DownArrow UpArrow Ctrl+c c l e a r Enter
d o Ctrl+c c l e a r Enter
d o

Eccezione:
System.ArgumentOutOfRangeException: Il valore deve essere maggiore o uguale a zero e minore della grandezza del buffer della console in tale dimensione.
Nome parametro: left
Valore effettivo: -1.
in System.Console.SetCursorPosition(Int32 left, Int32 top)
in Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
in Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
in Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
in Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
in Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) in Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
in Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
in Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

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