Skip to content

System.IO.IOException: The parameter is incorrect at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) #5139

@francis-asi

Description

@francis-asi

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

PS C:\users\weblink> pg_restore -h alphalinx-qa-pg.postgres.database.azure.com -p 5432 -U weblink -d metrics_dev --no-owner --no-acl -v metricsdb_backup.dump
Oops, something went wrong.  Please report this bug with the details below.
Report on GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Last 190 Keys:
 Ctrl+v Escape Ctrl+v Enter
 Ctrl+v Backspace Ctrl+v Backspace Ctrl+V Backspace Backspace n s l i Backspace o o k u p Spacebar a l p h a l i n x - a Backspace q a - p g . p o s t
 g r e s . d a t a b a s e . a z u r e . c o m Enter
 Ctrl+v Enter
 c d Spacebar \ d e v Enter
 UpArrow UpArrow Enter
 UpArrow UpArrow UpArrow UpArrow UpArrow DownArrow DownArrow DownArrow DownArrow DownArrow DownArrow DownArrow UpArrow LeftArrow LeftArrow LeftArrow L
eftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow LeftArrow d b Backspace Backspace LeftArrow LeftArrow RightArrow d b En
ter
 d i r Enter
 d i r Spacebar * . d u m p Enter
 UpArrow Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace Backspace B
ackspace Backspace Backspace Backspace Backspace c d Spacebar \ u s e r s \ w e b l i n k Enter
 d i r Enter
 Enter
 UpArrow UpArrow UpArrow UpArrow UpArrow Backspace Backspace p Enter
 UpArrow Enter
 UpArrow Enter
 UpArrow Enter
 UpArrow

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

   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender()
   at Microsoft.PowerShell.PSConsoleReadLine.HistoryRecall(Int32 direction)
   at Microsoft.PowerShell.PSConsoleReadLine.PreviousHistory(Nullable`1 key, Object arg)
   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

Sorry I had already resized the window before I saw the request to file a bug, but here's a screenshot after I resized:

Image

Environment data

PS Version: 5.1.14393.9060
PS HostName: ConsoleHost
PSReadLine Version: 1.2
PSReadLine EditMode: Windows
OS: 10.0.14393.0 (rs1_release.160715-1616)
BufferWidth: 220
BufferHeight: 3000

Steps to reproduce

I ran a pg_restore, then tried to up arrow in the window to see the complete output from the command but there was too much output

Expected behavior

No bug

Actual behavior

Bug appeared

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-Triage 🔍It's a new issue that core contributor team needs to triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions