Skip to content

issue in powershell opening in vscode terminal (in secondary sidebar) #4825

@traumasv

Description

@traumasv

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

Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/PowerShell/PSReadLine/issues/new
### Environment
PSReadLine: 2.0.0
PowerShell: 5.1.26100.4202
OS: Microsoft Windows 10.0.26100
Last 200 Keys

 p o r a r y Spacebar t r a n s f o r m e r Spacebar w e i g h t s Spacebar f o r Spacebar a u g Backspace t o r e g r e s s i v e Spacebar e v a l u a t i o n ' Enter
 g i t Spacebar p u s h Spacebar o r i g i n Spacebar m a i n Enter
 p y h o Backspace Backspace t h o n Spacebar r u n _ p i p e l i n e Tab Enter
 Ctrl+a Ctrl+d DownArrow Escape p y t h o n Spacebar r u n Tab Spacebar - - u s - Backspace e - p p o - m o d e l s Spacebar . / p p o Tab Backspace Backspace Backspace Backspace Backspace Backspace m o d e l s Tab p p o Tab Spacebar . \ m o d e l s Tab p p o Tab Tab Spacebar . \ m o d e l s Tab p p o Tab Tab Tab Enter
 UpArrow DownArrow UpArrow UpArrow


### 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.HistoryRecall(Int32 direction)
   at Microsoft.PowerShell.PSConsoleReadLine.PreviousHistory(Nullable`1 key, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(PSKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()     
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)

Screenshot

N/A

Environment data

PSReadLine: 2.0.0
PowerShell: 5.1.26100.4202
OS: Microsoft Windows 10.0.26100
Last 200 Keys

 p o r a r y Spacebar t r a n s f o r m e r Spacebar w e i g h t s Spacebar f o r Spacebar a u g Backspace t o r e g r e s s i v e Spacebar e v a l u a t i o n ' Enter
 g i t Spacebar p u s h Spacebar o r i g i n Spacebar m a i n Enter
 p y h o Backspace Backspace t h o n Spacebar r u n _ p i p e l i n e Tab Enter
 Ctrl+a Ctrl+d DownArrow Escape p y t h o n Spacebar r u n Tab Spacebar - - u s - Backspace e - p p o - m o d e l s Spacebar . / p p o Tab Backspace Backspace Backspace Backspace Backspace Backspace m o d e l s Tab p p o Tab Spacebar . \ m o d e l s Tab p p o Tab Tab Spacebar . \ m o d e l s Tab p p o Tab Tab Tab Enter
 UpArrow DownArrow UpArrow UpArrow


### 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.HistoryRecall(Int32 direction)
   at Microsoft.PowerShell.PSConsoleReadLine.PreviousHistory(Nullable`1 key, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(PSKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()     
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)

Steps to reproduce

N/A

Expected behavior

N/A

Actual behavior

N/A

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