Skip to content

A bug in while pasting in the docker cli (poweshell windows) #5177

Description

@mukisapaulk

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.
Parameter name: top
Actual value was -1.
   at System.Console.SetCursorPosition(Int32 left, Int32 top)
   at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor) 
   at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   at Microsoft.PowerShell.PSConsoleReadLine.Paste(Nullable`1 key, Object arg)
   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTa
ble, Boolean ignoreIfNoAction, Object arg)

Screenshot

Image

Environment data

PS Version: 5.1.19041.7417
PS HostName: ConsoleHost
PSReadLine Version: 2.0.0-beta2
PSReadLine EditMode: Windows
OS: 10.0.19041.1 (WinBuild.160101.0800)
BufferWidth: 106
BufferHeight: 16

Steps to reproduce

when you paste this

docker run -it --rm --publish 20080:20080
--volume /var/run/docker.sock:/var/run/docker.sock --volume ${pwd}/appwrite:/usr/src/code/appwrite:rw
--entrypoint="install" `
appwrite/appwrite:1.9.5

Expected behavior

run on with out throwing a bug first

Actual behavior

it throws an error then continues to paste
which is unable to paste
Last 1 Keys:
Ctrl+v

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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