Skip to content

Last 5 Keys: Space & Space ' c #4968

Description

@lovisfagerlund-beep

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

Last 5 Keys:
 Space & Space ' c

Exception:
System.ArgumentOutOfRangeException: Värdet måste vara större än eller lika med noll och mindre än konsolens buffertstorlek i dimensionen. 
Parameternamn: left
Det faktiska värdet var -2.
   vid System.Console.SetCursorPosition(Int32 left, Int32 top)       
   vid Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
   vid Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   vid Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   vid Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   vid Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
   vid Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   vid Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   vid Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------
PS C:\Users\pando\OneDrive\Dokument\GIK2UK_Programmering_Pythonfiler> :\Users\pando\AppData\Local\Programs\Python\Python313\python.exe' 'c:\Users\pando\.vscode\extensions\ms-python.debugpy-2025.14.0-win32-x64\bundled\libs\debugpy\launcher' '60023' '--' 'c:\Users\pando\OneDrive\Dokument\GIK2UK_Programmering_Pythonfiler\Program 1A.py'      
>>  'c

Screenshot

Last 5 Keys:
Space & Space ' c

Exception:
System.ArgumentOutOfRangeException: Värdet måste vara större än eller lika med noll och mindre än konsolens buffertstorlek i dimensionen.
Parameternamn: left
Det faktiska värdet var -2.
vid System.Console.SetCursorPosition(Int32 left, Int32 top)
vid Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
vid Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
vid Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
vid Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
vid Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) vid Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
vid Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
vid Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS C:\Users\pando\OneDrive\Dokument\GIK2UK_Programmering_Pythonfiler> :\Users\pando\AppData\Local\Programs\Python\Python313\python.exe' 'c:\Users\pando.vscode\extensions\ms-python.debugpy-2025.14.0-win32-x64\bundled\libs\debugpy\launcher' '60023' '--' 'c:\Users\pando\OneDrive\Dokument\GIK2UK_Programmering_Pythonfiler\Program 1A.py'

'c

Environment data

Last 5 Keys:
 Space & Space ' c

Exception:
System.ArgumentOutOfRangeException: Värdet måste vara större än eller lika med noll och mindre än konsolens buffertstorlek i dimensionen. 
Parameternamn: left
Det faktiska värdet var -2.
   vid System.Console.SetCursorPosition(Int32 left, Int32 top)       
   vid Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
   vid Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   vid Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   vid Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   vid Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
   vid Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   vid Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   vid Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------
PS C:\Users\pando\OneDrive\Dokument\GIK2UK_Programmering_Pythonfiler> :\Users\pando\AppData\Local\Programs\Python\Python313\python.exe' 'c:\Users\pando\.vscode\extensions\ms-python.debugpy-2025.14.0-win32-x64\bundled\libs\debugpy\launcher' '60023' '--' 'c:\Users\pando\OneDrive\Dokument\GIK2UK_Programmering_Pythonfiler\Program 1A.py'      
>>  'c

Steps to reproduce

Last 5 Keys:
Space & Space ' c

Exception:
System.ArgumentOutOfRangeException: Värdet måste vara större än eller lika med noll och mindre än konsolens buffertstorlek i dimensionen.
Parameternamn: left
Det faktiska värdet var -2.
vid System.Console.SetCursorPosition(Int32 left, Int32 top)
vid Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
vid Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
vid Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
vid Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
vid Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) vid Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
vid Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
vid Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS C:\Users\pando\OneDrive\Dokument\GIK2UK_Programmering_Pythonfiler> :\Users\pando\AppData\Local\Programs\Python\Python313\python.exe' 'c:\Users\pando.vscode\extensions\ms-python.debugpy-2025.14.0-win32-x64\bundled\libs\debugpy\launcher' '60023' '--' 'c:\Users\pando\OneDrive\Dokument\GIK2UK_Programmering_Pythonfiler\Program 1A.py'

'c

Expected behavior

Last 5 Keys:
Space & Space ' c

Exception:
System.ArgumentOutOfRangeException: Värdet måste vara större än eller lika med noll och mindre än konsolens buffertstorlek i dimensionen.
Parameternamn: left
Det faktiska värdet var -2.
vid System.Console.SetCursorPosition(Int32 left, Int32 top)
vid Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
vid Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
vid Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
vid Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
vid Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) vid Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
vid Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
vid Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS C:\Users\pando\OneDrive\Dokument\GIK2UK_Programmering_Pythonfiler> :\Users\pando\AppData\Local\Programs\Python\Python313\python.exe' 'c:\Users\pando.vscode\extensions\ms-python.debugpy-2025.14.0-win32-x64\bundled\libs\debugpy\launcher' '60023' '--' 'c:\Users\pando\OneDrive\Dokument\GIK2UK_Programmering_Pythonfiler\Program 1A.py'

'c

Actual behavior

Last 5 Keys:
Space & Space ' c

Exception:
System.ArgumentOutOfRangeException: Värdet måste vara större än eller lika med noll och mindre än konsolens buffertstorlek i dimensionen.
Parameternamn: left
Det faktiska värdet var -2.
vid System.Console.SetCursorPosition(Int32 left, Int32 top)
vid Microsoft.PowerShell.Internal.VirtualTerminal.set_CursorLeft(Int32 value)
vid Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
vid Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
vid Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
vid Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) vid Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
vid Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
vid Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS C:\Users\pando\OneDrive\Dokument\GIK2UK_Programmering_Pythonfiler> :\Users\pando\AppData\Local\Programs\Python\Python313\python.exe' 'c:\Users\pando.vscode\extensions\ms-python.debugpy-2025.14.0-win32-x64\bundled\libs\debugpy\launcher' '60023' '--' 'c:\Users\pando\OneDrive\Dokument\GIK2UK_Programmering_Pythonfiler\Program 1A.py'

'c

Activity

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