{"action":"created","issue":{"url":"https://api.github.com/repos/lzybkr/PSReadLine/issues/810","repository_url":"https://api.github.com/repos/lzybkr/PSReadLine","labels_url":"https://api.github.com/repos/lzybkr/PSReadLine/issues/810/labels{/name}","comments_url":"https://api.github.com/repos/lzybkr/PSReadLine/issues/810/comments","events_url":"https://api.github.com/repos/lzybkr/PSReadLine/issues/810/events","html_url":"https://github.com/lzybkr/PSReadLine/issues/810","id":379444081,"node_id":"MDU6SXNzdWUzNzk0NDQwODE=","number":810,"title":"PSCore 6.1.0-GA Linux and MacOS Ctrl-V large code giving System.ArgumentOutOfRangeException.","user":{"login":"MaximoTrinidad","id":19892435,"node_id":"MDQ6VXNlcjE5ODkyNDM1","avatar_url":"https://avatars1.githubusercontent.com/u/19892435?v=4","gravatar_id":"","url":"https://api.github.com/users/MaximoTrinidad","html_url":"https://github.com/MaximoTrinidad","followers_url":"https://api.github.com/users/MaximoTrinidad/followers","following_url":"https://api.github.com/users/MaximoTrinidad/following{/other_user}","gists_url":"https://api.github.com/users/MaximoTrinidad/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximoTrinidad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximoTrinidad/subscriptions","organizations_url":"https://api.github.com/users/MaximoTrinidad/orgs","repos_url":"https://api.github.com/users/MaximoTrinidad/repos","events_url":"https://api.github.com/users/MaximoTrinidad/events{/privacy}","received_events_url":"https://api.github.com/users/MaximoTrinidad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-10T17:49:22Z","updated_at":"2018-11-13T17:30:38Z","closed_at":"2018-11-13T17:30:39Z","author_association":"NONE","body":"<!--\r\nBefore submitting your bug report, please check for duplicates, and +1 the duplicate if you find one, adding additional details if you have any to add.\r\n\r\nThere are a few common issues that are commonly reported.\r\n\r\nIf there is an exception copying to/from the clipboard, it's probably the same as https://github.com/lzybkr/PSReadLine/issues/265\r\n\r\nIf there is an exception shortly after resizing the console, it's probably the same as https://github.com/lzybkr/PSReadLine/issues/292\r\n-->\r\n\r\nEnvironment data\r\n----------------\r\n\r\n<!-- provide the output of the following:\r\n```powershell\r\n& {\r\n    \"PS version: $($PSVersionTable.PSVersion)\"\r\n    $v = (Get-Module PSReadline).Version\r\n    $m = Get-Content \"$(Split-Path -Parent (Get-Module PSReadLine).Path)\\PSReadLine.psd1\" | Select-String \"Prerelease = '(.*)'\"\r\n    if ($m) {\r\n        $v = \"$v-\" + $m.Matches[0].Groups[1].Value\r\n    }\r\n    \"PSReadline version: $v\"\r\n    if ($IsLinux -or $IsMacOS) {\r\n        \"os: $(uname -a)\"\r\n    } else {\r\n        \"os: $((dir $env:SystemRoot\\System32\\cmd.exe).VersionInfo.FileVersion)\"\r\n    }\r\n    \"PS file version: $((dir $pshome\\p*[hl].exe).VersionInfo.FileVersion)\"\r\n}\r\n```\r\n-->\r\nLinux - Ubuntu 18.04\r\n```\r\nPS /home/maxt> cat /etc/os-release\r\nNAME=\"Ubuntu\"\r\nVERSION=\"18.04.1 LTS (Bionic Beaver)\"\r\nID=ubuntu\r\nID_LIKE=debian\r\nPRETTY_NAME=\"Ubuntu 18.04.1 LTS\"\r\nVERSION_ID=\"18.04\"\r\nHOME_URL=\"https://www.ubuntu.com/\"\r\nSUPPORT_URL=\"https://help.ubuntu.com/\"\r\nBUG_REPORT_URL=\"https://bugs.launchpad.net/ubuntu/\"\r\nPRIVACY_POLICY_URL=\"https://www.ubuntu.com/legal/terms-and-policies/privacy-policy\"\r\nVERSION_CODENAME=bionic\r\nUBUNTU_CODENAME=bionic\r\n\r\nPS version: 6.1.0\r\nPSReadline version: 2.0.0-beta3\r\nos: Linux mars 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\nPS file version: \r\n```\r\nMacOS High Sierra\r\n```\r\nPS version: 6.1.0\r\nPSReadline version: 2.0.0-beta2\r\nos: Darwin kronos.local 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64\r\nPS file version: \r\n```\r\n\r\nSteps to reproduce or exception report\r\n--------------------------------------\r\n\r\nCopy/Paste a modified code code from the following link: https://docs.microsoft.com/en-us/powershell/azure/uninstall-azurerm-ps?view=azurermps-6.12.0.\r\n```\r\nfunction Uninstall-AllModules\r\n{\r\n\t[CmdletBinding(SupportsShouldProcess)]\r\n\tparam (\r\n\t\t[Parameter(Mandatory = $true)]\r\n\t\t[string]\r\n\t\t$TargetModule,\r\n\t\t[Parameter(Mandatory = $true)]\r\n\t\t[string]\r\n\t\t$Version,\r\n\t\t[switch]\r\n\t\t$Force\r\n\t)\r\n\t\r\n\t$AllModules = @()\r\n\t\r\n\t'Creating list of dependencies...'\r\n\t$target = Find-Module $TargetModule -RequiredVersion $version\r\n\t$target.Dependencies | ForEach-Object {\r\n\t\t$AllModules += New-Object -TypeName psobject -Property @{ name = $_.name; version = $_.minimumVersion }\r\n\t}\r\n\t$AllModules += New-Object -TypeName psobject -Property @{ name = $TargetModule; version = $Version }\r\n\t\r\n\t$cnt = 1;\r\n\tforeach ($module in $AllModules)\r\n\t{\r\n\t\tWrite-Host (\"[$cnt] - \" + 'Uninstalling {0} version {1}' -f $module.name, $module.version);\r\n\t\t$cnt++;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif ($PSCmdlet.ShouldProcess($_.name, 'Uninstall'))\r\n\t\t\t{\r\n\t\t\t\t$_ | Select-Object Name, Version;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tUninstall-Module -Name $module.name -RequiredVersion $module.version -Force:$Force -ErrorAction Stop\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch\r\n\t\t{\r\n\t\t\tWrite-Host (\"`t\" + $_.Exception.Message)\r\n\t\t}\r\n\t}\r\n};\r\n\r\n```\r\n\r\nIt will generate the following error:\r\n```\r\nOops, something went wrong.  Please report this bug with the details below.\r\nReport on GitHub: https://github.com/lzybkr/PSReadLine/issues/new\r\n-----------------------------------------------------------------------\r\nLast 200 Keys:\r\n```\r\n ; Enter\r\n Tab Tab Tab } Enter\r\n Tab Tab Tab e l s e Enter\r\n Tab Tab Tab { Enter\r\n Tab Tab Tab Tab U n i n s t a l l - M o d u l e Space - N a m e Space $ m o d u l e . n a m e Space - R e q u i r e d V e r s i o n Space $ m o d u l e . v e r s i o n Space - F o r c e : $ F o r c e Space - E r r o r A c t i o n Space S t o p Enter\r\n Tab Tab Tab } Enter\r\n Tab Tab } Enter\r\n Tab Tab c a t c h Enter\r\n Tab Tab { Enter\r\n Tab Tab Tab W r i t e - H o s t Space ( \" ` t \" Space + Space $ _ . E x c e p t i o n . M e s s a g e ) Enter\r\n Tab Tab } Enter\r\n Tab } Enter\r\n } Enter\r\n Enter\r\n\r\n```\r\n\r\nException:\r\n```\r\nSystem.ArgumentOutOfRangeException: The value must be greater than or equal to zero and less than the console's buffer size in that dimension.\r\nParameter name: top\r\nActual value was -7.\r\n   at System.Console.SetCursorPosition(Int32 left, Int32 top)\r\n   at Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)\r\n   at Microsoft.PowerShell.PSConsoleReadLine.ForceRender()\r\n   at Microsoft.PowerShell.PSConsoleReadLine.AcceptLineImpl(Boolean validate)\r\n   at Microsoft.PowerShell.PSConsoleReadLine.AcceptLine(Nullable`1 key, Object arg)\r\n   at Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)\r\n   at Microsoft.PowerShell.PSConsoleReadLine.InputLoop()\r\n   at Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics, CancellationToken cancellationToken)\r\n```\r\n-----------------------------------------------------------------------\r\n```\r\n![psreadline_issue_01_2018-11-10_12-44-09](https://user-images.githubusercontent.com/19892435/48304393-01963680-e4e7-11e8-8287-8ebc126c44a5.jpg)\r\n![psreadline_issue_02_2018-11-10_12-44-09](https://user-images.githubusercontent.com/19892435/48304397-078c1780-e4e7-11e8-8121-78b32fc91e64.jpg)\r\n"},"comment":{"url":"https://api.github.com/repos/lzybkr/PSReadLine/issues/comments/438361455","html_url":"https://github.com/lzybkr/PSReadLine/issues/810#issuecomment-438361455","issue_url":"https://api.github.com/repos/lzybkr/PSReadLine/issues/810","id":438361455,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODM2MTQ1NQ==","user":{"login":"lzybkr","id":2148248,"node_id":"MDQ6VXNlcjIxNDgyNDg=","avatar_url":"https://avatars3.githubusercontent.com/u/2148248?v=4","gravatar_id":"","url":"https://api.github.com/users/lzybkr","html_url":"https://github.com/lzybkr","followers_url":"https://api.github.com/users/lzybkr/followers","following_url":"https://api.github.com/users/lzybkr/following{/other_user}","gists_url":"https://api.github.com/users/lzybkr/gists{/gist_id}","starred_url":"https://api.github.com/users/lzybkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lzybkr/subscriptions","organizations_url":"https://api.github.com/users/lzybkr/orgs","repos_url":"https://api.github.com/users/lzybkr/repos","events_url":"https://api.github.com/users/lzybkr/events{/privacy}","received_events_url":"https://api.github.com/users/lzybkr/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T17:30:38Z","updated_at":"2018-11-13T17:30:38Z","author_association":"OWNER","body":"Duplicate of #663"}}
{"actor":{"display_login":"lzybkr"}}