Skip to content

System.ArgumentOutOfRangeException #5049

@cry2003

Description

@cry2003

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 5 tasti:
 & Space C : /

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
   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

Image

Environment data

PS Version: 5.1.19041.6456
PS HostName: ConsoleHost
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.19041.4522 (WinBuild.160101.0800)
BufferWidth: 219
BufferHeight: 12

Steps to reproduce

print()

Expected behavior

& C:/Python314/python.exe {path}/prova.py

Actual behavior

PS [path]

Si è verificato un problema. Segnala il bug con i dettagli riportati di seguito.
Segnala su GitHub: https://github.com/lzybkr/PSReadLine/issues/new

Ultimi 6 tasti:
& Space C : / P

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
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)

PS {path] & C:/Python314/python.exe {path}/prova.py

PS {path}

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