Skip to content

bugg #4999

Closed
Closed

Description

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

System.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.

Screenshot

Image

Environment data

...

Steps to reproduce

...

Expected behavior

......

Actual behavior

.....

Activity

  1. arpan3t commented on Nov 2, 2025

    @arpan3t
    • 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.

    Someone went through the trouble of setting up a nice issue template, use it...

    Run this is the terminal of your VS Code:

    & {
        $hostName = $Host.Name
        if ($hostName -eq "ConsoleHost" -and (Get-Command Get-CimInstance -ErrorAction SilentlyContinue)) {
            $id = $PID; $inWindowsTerminal = $false
            while ($true) {
                $p = Get-CimInstance -ClassName Win32_Process -Filter "ProcessId Like $id"
                if (!$p -or !$p.Name) { break }
                if ($p.Name -eq "WindowsTerminal.exe") { $inWindowsTerminal = $true; break }
                $id = $p.ParentProcessId
            }
            if ($inWindowsTerminal) { $hostName += " (Windows Terminal)" }
        }
    
        $m = Get-Module PSReadline
        $v = $m.Version; $pre = $m.PrivateData.PSData.Prerelease
        if ($pre) { $v = "$v-$pre" }
        $os = if ($IsLinux -or $IsMacOS) { uname -a } else { (dir $env:SystemRoot\System32\cmd.exe).VersionInfo.FileVersion }
    
        Write-Host ''
        Write-Host "PS Version: $($PSVersionTable.PSVersion)"
        Write-Host "PS HostName: $hostName"
        Write-Host "PSReadLine Version: $v"
        Write-Host "PSReadLine EditMode: $((Get-PSReadLineOption).EditMode)"
        Write-Host "OS: $os"
        Write-Host "BufferWidth: $([console]::BufferWidth)"
        Write-Host "BufferHeight: $([console]::BufferHeight)"
        Write-Host ''
    }

    What are the results? For all we know you could be running a very outdated version and this could be a duplicate issue.

  2. daxian-dbw commented on Nov 3, 2025

    @daxian-dbw
    Member

    Close as the Issue report is missing environment data and repro steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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