Skip to content

Problem with powershell terminal on Visual Studio #4705

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
3 tasks done
Adam2475 opened this issue Apr 14, 2025 · 1 comment
Closed
3 tasks done

Problem with powershell terminal on Visual Studio #4705

Adam2475 opened this issue Apr 14, 2025 · 1 comment

Comments

@Adam2475
Copy link

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)

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Apr 14, 2025
Copy link

This issue was already fixed (see #1306). Please upgrade to the 2.3.5 version of PSReadLine from PowerShell Gallery.
See the upgrading section for instructions. Please let us know if you run into the same issue with the latest version.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Apr 14, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant