Skip to content

Bug on Powershell when ctrl+l pressed #4987

@ManikantaVital

Description

@ManikantaVital

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/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 200 Keys:
 x - c l u s t e r i p - s e r v i c e Enter
 UpArrow UpArrow DownArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow s v c Space Enter
 UpArrow UpArrow UpArrow Enter
 UpArrow Backspace Backspace Backspace o d s Enter
 UpArrow Backspace Backspace Backspace p o d s Enter
 k u b e c t l Space d e l e t e Space p o d Space n g i n x - d e p l o y m e n t - 9 6 b 9 d 6 9 5 - h g z f m Enter
 UpArrow UpArrow Enter
 UpArrow Enter
 k u b e c t l Space d e l e t e Space d e p l o y m e n t Space n g i n x - d e p l o y m e n t Enter
 UpArrow UpArrow Enter
 Ctrl+l Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Ctrl+l Ctrl+l Ctrl+l c l e a r Enter
 Ctrl+l

Exception:
System.IO.IOException: The parameter is incorrect.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Console.SetWindowPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------

Screenshot

Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new

Last 200 Keys:
x - c l u s t e r i p - s e r v i c e Enter
UpArrow UpArrow DownArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow s v c Space Enter
UpArrow UpArrow UpArrow Enter
UpArrow Backspace Backspace Backspace o d s Enter
UpArrow Backspace Backspace Backspace p o d s Enter
k u b e c t l Space d e l e t e Space p o d Space n g i n x - d e p l o y m e n t - 9 6 b 9 d 6 9 5 - h g z f m Enter
UpArrow UpArrow Enter
UpArrow Enter
k u b e c t l Space d e l e t e Space d e p l o y m e n t Space n g i n x - d e p l o y m e n t Enter
UpArrow UpArrow Enter
Ctrl+l Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Ctrl+l Ctrl+l Ctrl+l c l e a r Enter
Ctrl+l

Exception:
System.IO.IOException: The parameter is incorrect.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.Console.SetWindowPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

Environment data

Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 200 Keys:
 x - c l u s t e r i p - s e r v i c e Enter
 UpArrow UpArrow DownArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow s v c Space Enter
 UpArrow UpArrow UpArrow Enter
 UpArrow Backspace Backspace Backspace o d s Enter
 UpArrow Backspace Backspace Backspace p o d s Enter
 k u b e c t l Space d e l e t e Space p o d Space n g i n x - d e p l o y m e n t - 9 6 b 9 d 6 9 5 - h g z f m Enter
 UpArrow UpArrow Enter
 UpArrow Enter
 k u b e c t l Space d e l e t e Space d e p l o y m e n t Space n g i n x - d e p l o y m e n t Enter
 UpArrow UpArrow Enter
 Ctrl+l Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Enter
 Ctrl+l Ctrl+l Ctrl+l c l e a r Enter
 Ctrl+l

Exception:
System.IO.IOException: The parameter is incorrect.

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Console.SetWindowPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
-----------------------------------------------------------------------

Steps to reproduce

Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new

Last 200 Keys:
x - c l u s t e r i p - s e r v i c e Enter
UpArrow UpArrow DownArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow s v c Space Enter
UpArrow UpArrow UpArrow Enter
UpArrow Backspace Backspace Backspace o d s Enter
UpArrow Backspace Backspace Backspace p o d s Enter
k u b e c t l Space d e l e t e Space p o d Space n g i n x - d e p l o y m e n t - 9 6 b 9 d 6 9 5 - h g z f m Enter
UpArrow UpArrow Enter
UpArrow Enter
k u b e c t l Space d e l e t e Space d e p l o y m e n t Space n g i n x - d e p l o y m e n t Enter
UpArrow UpArrow Enter
Ctrl+l Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Ctrl+l Ctrl+l Ctrl+l c l e a r Enter
Ctrl+l

Exception:
System.IO.IOException: The parameter is incorrect.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.Console.SetWindowPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

Expected behavior

Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new

Last 200 Keys:
x - c l u s t e r i p - s e r v i c e Enter
UpArrow UpArrow DownArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow s v c Space Enter
UpArrow UpArrow UpArrow Enter
UpArrow Backspace Backspace Backspace o d s Enter
UpArrow Backspace Backspace Backspace p o d s Enter
k u b e c t l Space d e l e t e Space p o d Space n g i n x - d e p l o y m e n t - 9 6 b 9 d 6 9 5 - h g z f m Enter
UpArrow UpArrow Enter
UpArrow Enter
k u b e c t l Space d e l e t e Space d e p l o y m e n t Space n g i n x - d e p l o y m e n t Enter
UpArrow UpArrow Enter
Ctrl+l Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Ctrl+l Ctrl+l Ctrl+l c l e a r Enter
Ctrl+l

Exception:
System.IO.IOException: The parameter is incorrect.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.Console.SetWindowPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

Actual behavior

Oops, something went wrong. Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new

Last 200 Keys:
x - c l u s t e r i p - s e r v i c e Enter
UpArrow UpArrow DownArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow s v c Space Enter
UpArrow UpArrow UpArrow Enter
UpArrow Backspace Backspace Backspace o d s Enter
UpArrow Backspace Backspace Backspace p o d s Enter
k u b e c t l Space d e l e t e Space p o d Space n g i n x - d e p l o y m e n t - 9 6 b 9 d 6 9 5 - h g z f m Enter
UpArrow UpArrow Enter
UpArrow Enter
k u b e c t l Space d e l e t e Space d e p l o y m e n t Space n g i n x - d e p l o y m e n t Enter
UpArrow UpArrow Enter
Ctrl+l Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Enter
Ctrl+l Ctrl+l Ctrl+l c l e a r Enter
Ctrl+l

Exception:
System.IO.IOException: The parameter is incorrect.

at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.Console.SetWindowPosition(Int32 left, Int32 top)
at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

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