PowerShell / PSResourceGet

PSResourceGet is the package manager for PowerShell
https://www.powershellgallery.com/packages/Microsoft.PowerShell.PSResourceGet
MIT License
484 stars 92 forks source link

Index error in Install-Package installing PSReadLine 2.0.0 beta6 #66

Open sba923 opened 4 years ago

sba923 commented 4 years ago

Updating PSReadLine 2.0.0 to its latest beta (beta6) as of this writing fails due to an error in Install-Package.

This is reproducible in Windows PowerShell 5.1, PowerShell 6.2.3 and PowerShell 7 preview 5.

Steps to reproduce

Install-Module -Name PSReadLine -AllowPrerelease -force -verbose -Repository PSGallery -debug

Expected behavior

PSReadLine 2.0.0beta6 should get installed.

Actual behavior

PS 7.0.0-preview.5 C:/Windows/System32> Install-Module -Name PSReadLine -AllowPrerelease -force -verbose -Repository PSGallery -debug
DEBUG: 00:00:00.0000091 Trying provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.0000151 Trying provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.0000281 Trying provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00.0000097 Trying provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.0055359 Attempting loading of assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00.0056917 Attempting loading of assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.0057758 Attempting loading of assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.0067438 Attempting loading of assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.0563393 Registering providers via metaproviders for assembly Microsoft.PackageManagement.MetaProvider.PowerShell.Internal.PowerShellMetaProvider
DEBUG: 00:00:00.1372927 Initializing provider 'Bootstrap'
DEBUG: 00:00:00.1373082 Initializing provider 'zipfile'
DEBUG: 00:00:00.1374371 Initializing provider 'WebDownloader'
DEBUG: 00:00:00.1376007 Initializing provider 'NuGet'
DEBUG: 00:00:00.1541318 Trying to register metaprovider
DEBUG: 00:00:00.1817230 Initialize Bootstrapper
DEBUG: 00:00:00.1821640 Provider 'Bootstrap' Initialized
DEBUG: 00:00:00.1822351 Using Package Provider Bootstrap
DEBUG: 00:00:00.1825414 Initializing PowerShell MetaProvider
DEBUG: 00:00:00.1830110 Provider 'WebDownloader' Initialized
DEBUG: 00:00:00.1830137 Provider 'zipfile' Initialized
DEBUG: 00:00:00.1830712 Using Archiver Provider zipfile
DEBUG: 00:00:00.1830714 Using Downloader Provider WebDownloader
DEBUG: 00:00:00.1912800 Calling 'NuGet'::'InitializeProvider'.
DEBUG: 00:00:00.1913761 Provider 'NuGet' Initialized
DEBUG: 00:00:00.1914075 Using Package Provider NuGet
DEBUG: 00:00:00.2095506 Calling 'zipfile::GetFeatures'
DEBUG: 00:00:00.2105343 Calling 'NuGet'::'GetFeatures'.
DEBUG: 00:00:00.2116404 Calling 'Bootstrap::GetFeatures'
DEBUG: 00:00:00.2124814 SUCCESS provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.2126278 Calling 'WebDownloader::GetFeatures'
DEBUG: 00:00:00.2128619 The provider 'Bootstrap' is imported
DEBUG: 00:00:00.2130689 The provider 'NuGet' is imported
DEBUG: 00:00:00.2137349 SUCCESS provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.2137349 SUCCESS provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.4663935 Attempting to load PowerShell Provider Module [C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PowerShellGet\2.2.1\PSModule.psm1]
DEBUG: 00:00:00.6784833 Loaded PowerShell package provider: '[C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PowerShellGet\2.2.1\PSModule.psm1]'.
DEBUG: 00:00:00.6883479 Loaded PowerShell Provider: PowerShellGet
DEBUG: 00:00:00.6917685 Initializing provider 'PowerShellGet'
DEBUG: 00:00:00.7093995 Calling New() : MethodName = 'InitializeProvider'
DEBUG: 00:00:00.7094750 ErrorAction: SilentlyContinue
DEBUG: 00:00:00.7094976 WarningAction: SilentlyContinue
DEBUG: 00:00:00.7149803 INVOKING PowerShell Fn Initialize-Provider with args  that has length 0
DEBUG: 00:00:00.7370486 In PowerShellGet Provider - 'Initialize-Provider'.
DEBUG: 00:00:00.7375171 PowerShell Script 'PSModule' Function 'Initialize-Provider' returns null.
DEBUG: 00:00:00.7414203 Done calling powershell «Initialize-Provider» «PSModule»
DEBUG: 00:00:00.7415168 Provider 'PowerShellGet' Initialized
DEBUG: 00:00:00.7415390 Using Package Provider PowerShellGet
DEBUG: 00:00:00.7511005 Calling New() : MethodName = 'GetFeatures'
DEBUG: 00:00:00.7511922 ErrorAction: SilentlyContinue
DEBUG: 00:00:00.7512309 WarningAction: SilentlyContinue
DEBUG: 00:00:00.7528402 INVOKING PowerShell Fn Get-Feature with args  that has length 0
DEBUG: 00:00:00.7583299 In PowerShellGet Provider - 'Get-Feature'.
DEBUG: 00:00:00.7664479 Done calling powershell «Get-Feature» «PSModule»
DEBUG: 00:00:00.7666302 The provider 'PowerShellGet' is imported
DEBUG: 00:00:00.7684255 SUCCESS provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00.0000007 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0001950 ErrorVariable: ev
DEBUG: 00:00:00.0002381 Verbose: False
DEBUG: 00:00:00.0002692 Name: PSGallery
DEBUG: 00:00:00.0021231 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0108964 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.1042634 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.1095896 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.1454235 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.1454825 ErrorVariable: ev
DEBUG: 00:00:00.1455065 Verbose: False
DEBUG: 00:00:00.1455255 Name: PSGallery
DEBUG: 00:00:00.1467305 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.1557809 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.1681084 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.1747872 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.1748550 ErrorVariable: ev
DEBUG: 00:00:00.1748979 Verbose: False
DEBUG: 00:00:00.1749385 Name: PSGallery
DEBUG: 00:00:00.1759024 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.1768685 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.1804939 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.2516899 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.2553914 ErrorVariable: ev
DEBUG: 00:00:00.2571911 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.2587989 Verbose: False
DEBUG: 00:00:00.2606495 ProviderName: PowerShellGet
DEBUG: 00:00:00.2621942 Name: PSGallery
DEBUG: 00:00:00.2685079 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.2705996 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.2770474 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.2797270 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.2873028 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.2894210 ErrorVariable: ev
DEBUG: 00:00:00.2911272 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.2929586 Verbose: False
DEBUG: 00:00:00.2975969 ProviderName: PowerShellGet
DEBUG: 00:00:00.2996994 Name: PSGallery
DEBUG: 00:00:00.3016211 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.3039686 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.3085756 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.3106076 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0000004 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0000580 Debug: True
DEBUG: 00:00:00.0000913 Source: PSGallery
DEBUG: 00:00:00.0001199 Force: True
DEBUG: 00:00:00.0001480 Verbose: True
DEBUG: 00:00:00.0001751 Name: PSReadLine
DEBUG: 00:00:00.0021040 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0029426 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.0063165 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.0072509 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0261864 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0262297 Debug: True
DEBUG: 00:00:00.0262600 Source: PSGallery
DEBUG: 00:00:00.0262885 Force: True
DEBUG: 00:00:00.0263168 Verbose: True
DEBUG: 00:00:00.0263440 Name: PSReadLine
DEBUG: 00:00:00.0272760 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.0282135 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0300872 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0365331 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0365768 Debug: True
DEBUG: 00:00:00.0366078 Source: PSGallery
DEBUG: 00:00:00.0366461 Force: True
DEBUG: 00:00:00.0366768 Verbose: True
DEBUG: 00:00:00.0367063 Name: PSReadLine
DEBUG: 00:00:00.0376205 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.0384653 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0416849 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0472089 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0472557 Debug: True
DEBUG: 00:00:00.0472772 Source: PSGallery
DEBUG: 00:00:00.0472959 Force: True
DEBUG: 00:00:00.0473141 Verbose: True
DEBUG: 00:00:00.0473420 Name: PSReadLine
DEBUG: 00:00:00.0482870 INVOKING PowerShell Fn Get-DynamicOptions with args Package that has length 1
DEBUG: 00:00:00.0491116 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0609953 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0681707 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0682119 Debug: True
DEBUG: 00:00:00.0682406 Source: PSGallery
DEBUG: 00:00:00.0682685 Force: True
DEBUG: 00:00:00.0682962 Verbose: True
DEBUG: 00:00:00.0683223 Name: PSReadLine
DEBUG: 00:00:00.0692169 INVOKING PowerShell Fn Get-DynamicOptions with args Install that has length 1
DEBUG: 00:00:00.0700711 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0752844 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.1697497 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.1729658 Source: PSGallery
DEBUG: 00:00:00.1747410 AllowPrereleaseVersions: True
DEBUG: 00:00:00.1765625 Type: Module
DEBUG: 00:00:00.1784373 ProviderName: PowerShellGet
DEBUG: 00:00:00.1803745 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.1842793 Verbose: True
DEBUG: 00:00:00.1859262 Force: True
DEBUG: 00:00:00.1879273 Name: PSReadLine
DEBUG: 00:00:00.1899766 Debug: True
DEBUG: 00:00:00.1939774 Scope: CurrentUser
DEBUG: 00:00:00.1987393 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.2010790 In PowerShellGet Provider - 'Resolve-PackageSource'.
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2/'; IsTrusted = 'False'; IsRegistered = 'True'.
DEBUG: 00:00:00.2073149 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.2092226 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.2122716 Calling SearchForPackages. Name='PSReadLine'
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
DEBUG: 00:00:00.2260216 PackageProvider::FindPackage with name PSReadLine
DEBUG: 00:00:00.2273192 Calling SearchForPackages After Select 1
DEBUG: 00:00:00.2377979 Calling New() : MethodName = 'FindPackage'
DEBUG: 00:00:00.2394935 Source: PSGallery
DEBUG: 00:00:00.2410321 AllowPrereleaseVersions: True
DEBUG: 00:00:00.2423662 Type: Module
DEBUG: 00:00:00.2438730 ProviderName: PowerShellGet
DEBUG: 00:00:00.2475336 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.2495824 Verbose: True
DEBUG: 00:00:00.2513983 Force: True
DEBUG: 00:00:00.2531408 Name: PSReadLine
DEBUG: 00:00:00.2547636 Debug: True
DEBUG: 00:00:00.2587718 Scope: CurrentUser
DEBUG: 00:00:00.2605530 INVOKING PowerShell Fn Find-Package with args System.String[], , ,  that has length 4
DEBUG: 00:00:00.3112378 In PowerShellGet Provider - 'Find-Package'.
DEBUG: 00:00:00.3155646 OPTION: Source => PSGallery
DEBUG: 00:00:00.3172327 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:00.3187128 OPTION: Type => Module
DEBUG: 00:00:00.3204372 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:00.3245934 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.3269771 OPTION: Verbose => True
DEBUG: 00:00:00.3290242 OPTION: Force => True
DEBUG: 00:00:00.3306952 OPTION: Name => PSReadLine
DEBUG: 00:00:00.3322432 OPTION: Debug => True
DEBUG: 00:00:00.3366908 OPTION: Scope => CurrentUser
VERBOSE: Using the specified source names : 'PSGallery'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.
DEBUG: 00:00:00.3934884 PackageProvider::FindPackage with name PSReadLine
DEBUG: 00:00:00.4099804 Calling 'NuGet'::'FindPackage' - name='PSReadLine', requiredVersion='',minimumVersion='', maximumVersion='''.
DEBUG: 00:00:00.4161288 Iterating 'PSReadLine'.
DEBUG: 00:00:00.4325649 Calling 'NuGetRequest'::'RegisteredPackageSources', 'C:\Users\steph\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:00.4355748 Loading a configuration from file 'C:\Users\steph\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:00.4379928 Loaded a configuration from file 'C:\Users\steph\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:00.4417953 There are '2' registered sources in 'NuGet' provider.
DEBUG: 00:00:00.4452709 Source 'https://www.powershellgallery.com/api/v2/' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:02.0571418 Downloading 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:02.1525715 Completed downloading 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:02.1571028 Source 'https://www.powershellgallery.com/api/v2/' is validated.
DEBUG: 00:00:02.1605935 Calling 'NuGetRequest'::'GetPackageById', 'PSReadLine'.
DEBUG: 00:00:02.1634628 Calling 'NuGetPackageRepository'::'FindPackagesById', 'PSReadLine'.
DEBUG: 00:00:02.1682819 Calling 'NuGetPackageFeed2'::'FindPackage', 'PSReadLine'.
DEBUG: 00:00:02.1703763 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'' for ''.
DEBUG: 00:00:02.1883963 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:02.3121234 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:02.3207486 '13' packages received in the last request.
DEBUG: 00:00:02.3504265 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:02.4479539 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:02.4522152 '13' packages received in the last request.
VERBOSE: Total package yield:'1' for the specified package 'PSReadLine'.
DEBUG: 00:00:02.4854809 Completed iterating for 'PSReadLine'.
DEBUG: 00:00:02.6385199 Done calling powershell «Find-Package» «PSModule»
DEBUG: 00:00:02.6719033 Calling New() : MethodName = 'GetInstalledPackages'
DEBUG: 00:00:02.6752640 Source: PSGallery
DEBUG: 00:00:02.6770029 AllowPrereleaseVersions: True
DEBUG: 00:00:02.6785251 Type: Module
DEBUG: 00:00:02.6802473 ProviderName: PowerShellGet
DEBUG: 00:00:02.6818690 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:02.6864351 Verbose: True
DEBUG: 00:00:02.6883718 Force: True
DEBUG: 00:00:02.6902837 Name: PSReadLine
DEBUG: 00:00:02.6921188 Debug: True
DEBUG: 00:00:02.6940984 Scope: CurrentUser
DEBUG: 00:00:02.6982648 INVOKING PowerShell Fn Get-InstalledPackage with args PSReadLine, 2.0.0-beta6, ,  that has length 4
DEBUG: 00:00:02.7033663 In PowerShellGet Provider - 'Get-InstalledPackage'.
DEBUG: 00:00:02.7050180 OPTION: Source => PSGallery
DEBUG: 00:00:02.7085406 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:02.7116424 OPTION: Type => Module
DEBUG: 00:00:02.7139341 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:02.7156612 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:02.7207804 OPTION: Verbose => True
DEBUG: 00:00:02.7227600 OPTION: Force => True
DEBUG: 00:00:02.7250743 OPTION: Name => PSReadLine
DEBUG: 00:00:02.7272423 OPTION: Debug => True
DEBUG: 00:00:02.7315716 OPTION: Scope => CurrentUser
DEBUG: 00:00:03.1629474 PowerShell Script 'PSModule' Function 'Get-InstalledPackage' returns null.
DEBUG: 00:00:03.1680596 Done calling powershell «Get-InstalledPackage» «PSModule»

Confirm
Are you sure you want to perform this action?
Performing the operation "Install-Module" on target "Version '2.0.0-beta6' of module 'PSReadLine'".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): a
DEBUG: 00:00:05.5847801 Calling New() : MethodName = 'InstallPackage'                                                                                                       DEBUG: 00:00:05.5884687 Source: PSGallery                                                                                                                                   DEBUG: 00:00:05.5948433 AllowPrereleaseVersions: True                                                                                                                       DEBUG: 00:00:05.5984179 Type: Module                                                                                                                                        DEBUG: 00:00:05.6044486 ProviderName: PowerShellGet                                                                                                                         DEBUG: 00:00:05.6078383 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString                                                                    DEBUG: 00:00:05.6106573 Verbose: True                                                                                                                                       DEBUG: 00:00:05.6162571 Force: True                                                                                                                                         DEBUG: 00:00:05.6192920 Name: PSReadLine                                                                                                                                    DEBUG: 00:00:05.6223862 Debug: True                                                                                                                                         DEBUG: 00:00:05.6278458 Scope: CurrentUser                                                                                                                                  DEBUG: 00:00:05.6315851 INVOKING PowerShell Fn Install-Package with args NuGet|PSReadLine|2.0.0-beta6|https://www.powershellgallery.com/api/v2/|Module that has length 1    DEBUG: 00:00:05.6355948 In PowerShellGet Provider - 'Install-Package'.                                                                                                      DEBUG: 00:00:05.6886502 In PowerShellGet Provider - 'Install-PackageUtility'.                                                                                               DEBUG: 00:00:05.6935985 The FastPackageReference is 'NuGet|PSReadLine|2.0.0-beta6|https://www.powershellgallery.com/api/v2/|Module'.                                        DEBUG: 00:00:05.7410407 OPTION: Source => PSGallery                                                                                                                         DEBUG: 00:00:05.7461847 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:05.7476891 OPTION: Type => Module
DEBUG: 00:00:05.7492145 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:05.7514580 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:05.7549196 OPTION: Verbose => True
DEBUG: 00:00:05.7566778 OPTION: Force => True
DEBUG: 00:00:05.7587412 OPTION: Name => PSReadLine
DEBUG: 00:00:05.7612266 OPTION: Debug => True
DEBUG: 00:00:05.7656173 OPTION: Scope => CurrentUser
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules'.
DEBUG: 00:00:05.7776957 ArtifactType is Module
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PSReadLine' with version '2.0.0-beta6' from the repository 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:05.8898801 Calling 'NuGet'::'InstallPackage', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\UFNSZWFkTGluZQ==\Mi4wLjAtYmV0YTY=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:05.8940987 Calling 'NuGetRequest'::'GetPackageByFastpath', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\UFNSZWFkTGluZQ==\Mi4wLjAtYmV0YTY=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:05.8974498 Calling 'NuGetRequest'::'ResolvePackageSource', 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:05.8994347 Calling 'NuGetRequest'::'FindRegisteredSource', 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:05.9015305 Source 'https://www.powershellgallery.com/api/v2/' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:06.2908712 Calling 'NuGetPackageRepository'::'FindPackage', 'PSReadLine'.
DEBUG: 00:00:06.2945225 Calling 'NuGetPackageFeed2'::'FindPackage', 'PSReadLine'.
DEBUG: 00:00:06.2967481 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'' for ''.
DEBUG: 00:00:06.3007353 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:06.6922501 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:06.6954843 '13' packages received in the last request.
DEBUG: 00:00:06.6978217 'Package version' is '2.0.0-beta6'.
DEBUG: 00:00:06.6996386 'Request's Destination' is 'C:\Users\steph\AppData\Local\Temp\1785064749'.
DEBUG: 00:00:06.7026683 Calling 'NuGetPackageRepository'::'InstallPackage'.
DEBUG: 00:00:06.7061374 Calling 'NuGetFilesFeed2'::'InstallPackage'.
DEBUG: 00:00:06.7078551 Calling 'NuGetFilesFeed2'::'InstallPackage', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\UFNSZWFkTGluZQ==\Mi4wLjAtYmV0YTY=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:06.7209159 Calling 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:06.7311845 Returning the call 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:06.7388948 Calling 'NuGetClient'::'InstallPackage'.
VERBOSE: InstallPackage' - name='PSReadLine', version='2.0.0-beta6',destination='C:\Users\steph\AppData\Local\Temp\1785064749'
VERBOSE: DownloadPackage' - name='PSReadLine', version='2.0.0-beta6',destination='C:\Users\steph\AppData\Local\Temp\1785064749\PSReadLine.2.0.0-beta6\PSReadLine.2.0.0-beta6.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PSReadLine/2.0.0-beta6'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PSReadLine/2.0.0-beta6'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PSReadLine/2.0.0-beta6'.
VERBOSE: Completed downloading 'PSReadLine'.
DEBUG: 00:00:07.4587929 Calling 'NuGetClient'::'InstallPackageLocal'.
VERBOSE: InstallPackageLocal' - name='PSReadLine', version='2.0.0-beta6',destination='C:\Users\steph\AppData\Local\Temp\1785064749'
DEBUG: 00:00:07.4742902 C:\Users\steph\AppData\Local\Temp\1785064749\PSReadLine.2.0.0-beta6\PSReadLine.2.0.0-beta6.nupkg
DEBUG: 00:00:07.5841816 Returning the call 'NuGetClient'::'InstallPackageLocal'.
DEBUG: 00:00:07.6016793 Returning the call 'NuGetClient'::'InstallSinglePackage'.
DEBUG: 00:00:07.6063457 Returning the call 'NuGetFilesFeed2'::'InstallPackage'.
VERBOSE: Validating the 'PSReadLine' module contents under 'C:\Users\steph\AppData\Local\Temp\1785064749\PSReadLine.2.0.0-beta6' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\steph\AppData\Local\Temp\1785064749\PSReadLine.2.0.0-beta6'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'PSReadLine'.
DEBUG: 00:00:09.2213916 Found the catalog file 'PSReadLine.cat' in the module 'PSReadLine' contents.
DEBUG: 00:00:09.2297693 Using the previously-installed module 'PSReadLine' with version '2.0.0' under 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PSReadLine\2.0.0' for getting the publisher details.
DEBUG: 00:00:09.2318008 Using the 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PSReadLine\2.0.0\PSReadLine.cat' file for getting the authenticode signature.
DEBUG: 00:00:09.6686177 For publisher validation, using the previously-installed module 'PSReadLine' with version '2.0.0' under 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PSReadLine\2.0.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: Found the catalog file 'PSReadLine.cat' in the module 'PSReadLine' contents.
VERBOSE: Valid authenticode signature found in the catalog file 'PSReadLine.cat' for the module 'PSReadLine'.
VERBOSE: Validating the 'PSReadLine' module files for catalog signing using the catalog file 'PSReadLine.cat'.
VERBOSE: The catalog signature in 'PSReadLine.cat' of the module 'PSReadLine' is valid and matches with the hash generated from the module contents.
DEBUG: 00:00:10.3348867 For publisher validation, current module 'PSReadLine' with version '2.0.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: For publisher validation, current module 'PSReadLine' with version '2.0.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: For publisher validation, using the previously-installed module 'PSReadLine' with version '2.0.0' under 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PSReadLine\2.0.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
DEBUG: 00:00:10.3512201 Previously-installed module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
DEBUG: 00:00:10.3533841 Current module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
DEBUG: 00:00:10.3553825 Is previously-installed module signed by Microsoft: True
DEBUG: 00:00:10.3597306 Is current module signed by Microsoft: True
VERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'PSReadLine' with version '2.0.0' matches with the authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'PSReadLine' with version '2.0.0'.
VERBOSE: Checking for possible command collisions for the module 'PSReadLine' commands.
DEBUG: 00:00:10.6566225 PowerShell Script 'PSModule' Function 'Install-Package' returns null.
Install-Package: C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PowerShellGet\2.2.1\PSModule.psm1
Line |
9683 |             $installedPackages = PackageManagement\Install-Package @PSBoundParameters
     |                                  ^ Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      7.0.0-preview.5
PSEdition                      Core
GitCommitId                    7.0.0-preview.5
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
> Get-Module -ListAvailable PowerShellGet,PackageManagement
    Directory: C:\Users\steph\OneDrive\Documents\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     2.2.1                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}

    Directory: C:\program files\powershell\7-preview\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     1.4.5                 PackageManagement                   Desk      {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource…}
Script     2.2.1                 PowerShellGet                       Desk      {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability…}
> Get-PackageProvider -ListAvailable
Name                     Version          DynamicOptions
----                     -------          --------------
Gist                     1.6.0.0
NuGet                    3.0.0.1          Destination, ExcludeVersion, Scope, SkipDependencies, Headers, FilterOnTag, Contains, AllowPrereleaseVersions, ConfigFile, SkipV…
PowerShellGet            2.2.1.0          PackageManagementProvider, Type, Scope, AllowClobber, SkipPublisherCheck, InstallUpdate, NoPathUpdate, AllowPrereleaseVersions, …
TSD                      0.2.0.0          Destination
SteveL-MSFT commented 4 years ago

@sba923 can you give output of: gmo psreadline -listavailable?

sba923 commented 4 years ago

Here you go:

    Directory: C:\Users\steph\OneDrive\Documents\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     2.0.0      beta5      PSReadLine                          Desk      {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSRea…

    Directory: C:\Program Files\PowerShell\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     2.0.0      beta5      PSReadLine                          Desk      {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSRea…

    Directory: C:\program files\powershell\7-preview\Modules

ModuleType Version    PreRelease Name                                PSEdition ExportedCommands
---------- -------    ---------- ----                                --------- ----------------
Script     2.0.0      beta5      PSReadLine                          Desk      {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSRea…
alerickson commented 4 years ago

@sba923 Can you try opening up a PowerShell session, rename the PSReadLine folder(s), then try installing again?

sba923 commented 4 years ago

I have renamed the following folders to PSReadLine.old, and retried:

C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PSReadLine
C:\Program Files\PowerShell\Modules\PSReadLine
C:\program files\powershell\7-preview\Modules\PSReadLine
PS 7.0.0-preview.5 C:/Windows/System32> Install-Module -Name PSReadLine -AllowPrerelease -force -verbose -Repository PSGallery -debug
DEBUG: 00:00:00.0000069 Trying provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00.0000142 Trying provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.0000067 Trying provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.0000141 Trying provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.0051847 Attempting loading of assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.0053011 Attempting loading of assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.0053744 Attempting loading of assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00.0060192 Attempting loading of assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
VERBOSE: Acquiring providers for assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.0614868 Registering providers via metaproviders for assembly Microsoft.PackageManagement.MetaProvider.PowerShell.Internal.PowerShellMetaProvider
DEBUG: 00:00:00.0962140 Initializing provider 'zipfile'
DEBUG: 00:00:00.0962139 Initializing provider 'Bootstrap'
DEBUG: 00:00:00.0963381 Initializing provider 'WebDownloader'
DEBUG: 00:00:00.0966625 Initializing provider 'NuGet'
DEBUG: 00:00:00.1118929 Trying to register metaprovider
DEBUG: 00:00:00.1321929 Provider 'zipfile' Initialized
DEBUG: 00:00:00.1322134 Provider 'WebDownloader' Initialized
DEBUG: 00:00:00.1322477 Using Archiver Provider zipfile
DEBUG: 00:00:00.1322813 Using Downloader Provider WebDownloader
DEBUG: 00:00:00.1326355 Initialize Bootstrapper
DEBUG: 00:00:00.1333259 Initializing PowerShell MetaProvider
DEBUG: 00:00:00.1333781 Provider 'Bootstrap' Initialized
DEBUG: 00:00:00.1334448 Using Package Provider Bootstrap
DEBUG: 00:00:00.1374876 Calling 'NuGet'::'InitializeProvider'.
DEBUG: 00:00:00.1375605 Provider 'NuGet' Initialized
DEBUG: 00:00:00.1375802 Using Package Provider NuGet
DEBUG: 00:00:00.1581320 Calling 'Bootstrap::GetFeatures'
DEBUG: 00:00:00.1585281 Calling 'zipfile::GetFeatures'
DEBUG: 00:00:00.1591010 Calling 'NuGet'::'GetFeatures'.
DEBUG: 00:00:00.1595491 Calling 'WebDownloader::GetFeatures'
DEBUG: 00:00:00.1601272 The provider 'Bootstrap' is imported
DEBUG: 00:00:00.1606760 SUCCESS provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.1608074 SUCCESS provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.1610178 The provider 'NuGet' is imported
DEBUG: 00:00:00.1610972 SUCCESS provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.3471469 Attempting to load PowerShell Provider Module [C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PowerShellGet\2.2.1\PSModule.psm1]
DEBUG: 00:00:00.5179956 Loaded PowerShell package provider: '[C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PowerShellGet\2.2.1\PSModule.psm1]'.
DEBUG: 00:00:00.5251662 Loaded PowerShell Provider: PowerShellGet
DEBUG: 00:00:00.5271216 Initializing provider 'PowerShellGet'
DEBUG: 00:00:00.5348070 Calling New() : MethodName = 'InitializeProvider'
DEBUG: 00:00:00.5348685 ErrorAction: SilentlyContinue
DEBUG: 00:00:00.5471763 WarningAction: SilentlyContinue
DEBUG: 00:00:00.5513605 INVOKING PowerShell Fn Initialize-Provider with args  that has length 0
DEBUG: 00:00:00.5610055 In PowerShellGet Provider - 'Initialize-Provider'.
DEBUG: 00:00:00.5613185 PowerShell Script 'PSModule' Function 'Initialize-Provider' returns null.
DEBUG: 00:00:00.5625574 Done calling powershell «Initialize-Provider» «PSModule»
DEBUG: 00:00:00.5626344 Provider 'PowerShellGet' Initialized
DEBUG: 00:00:00.5626544 Using Package Provider PowerShellGet
DEBUG: 00:00:00.5699408 Calling New() : MethodName = 'GetFeatures'
DEBUG: 00:00:00.5699971 ErrorAction: SilentlyContinue
DEBUG: 00:00:00.5700423 WarningAction: SilentlyContinue
DEBUG: 00:00:00.5713561 INVOKING PowerShell Fn Get-Feature with args  that has length 0
DEBUG: 00:00:00.5755252 In PowerShellGet Provider - 'Get-Feature'.
DEBUG: 00:00:00.5823460 Done calling powershell «Get-Feature» «PSModule»
DEBUG: 00:00:00.5824984 The provider 'PowerShellGet' is imported
DEBUG: 00:00:00.5837531 SUCCESS provider assembly: C:\program files\powershell\7-preview\Modules\PackageManagement\coreclr\netstandard2.0\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00.0000004 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0001696 Name: PSGallery
DEBUG: 00:00:00.0002039 ErrorVariable: ev
DEBUG: 00:00:00.0002242 Verbose: False
DEBUG: 00:00:00.0019540 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0081012 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.0801664 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.0841242 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.1061400 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.1061886 Name: PSGallery
DEBUG: 00:00:00.1062121 ErrorVariable: ev
DEBUG: 00:00:00.1062308 Verbose: False
DEBUG: 00:00:00.1071737 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.1138480 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.1220763 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.1263012 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.1263312 Name: PSGallery
DEBUG: 00:00:00.1263507 ErrorVariable: ev
DEBUG: 00:00:00.1263746 Verbose: False
DEBUG: 00:00:00.1271317 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.1285482 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.1350199 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.3396936 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.3437735 Name: PSGallery
DEBUG: 00:00:00.3459230 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.3480607 ProviderName: PowerShellGet
DEBUG: 00:00:00.3495650 ErrorVariable: ev
DEBUG: 00:00:00.3514556 Verbose: False
DEBUG: 00:00:00.3556378 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.3582995 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.3649814 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.3675469 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.3736690 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.3762914 Name: PSGallery
DEBUG: 00:00:00.3782344 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.3802000 ProviderName: PowerShellGet
DEBUG: 00:00:00.3841619 ErrorVariable: ev
DEBUG: 00:00:00.3865357 Verbose: False
DEBUG: 00:00:00.3892089 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.3912459 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.3954588 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.3976073 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0000007 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.0000491 Debug: True
DEBUG: 00:00:00.0000775 Name: PSReadLine
DEBUG: 00:00:00.0000960 Force: True
DEBUG: 00:00:00.0001137 Source: PSGallery
DEBUG: 00:00:00.0001308 Verbose: True
DEBUG: 00:00:00.0016602 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0024249 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.0046219 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.0055604 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0193291 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0193590 Debug: True
DEBUG: 00:00:00.0193784 Name: PSReadLine
DEBUG: 00:00:00.0193956 Force: True
DEBUG: 00:00:00.0194132 Source: PSGallery
DEBUG: 00:00:00.0194306 Verbose: True
DEBUG: 00:00:00.0202662 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.0209767 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0223562 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0262256 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0262544 Debug: True
DEBUG: 00:00:00.0262733 Name: PSReadLine
DEBUG: 00:00:00.0262918 Force: True
DEBUG: 00:00:00.0263098 Source: PSGallery
DEBUG: 00:00:00.0263272 Verbose: True
DEBUG: 00:00:00.0270712 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.0278002 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0301229 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0339101 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0339449 Debug: True
DEBUG: 00:00:00.0339655 Name: PSReadLine
DEBUG: 00:00:00.0339839 Force: True
DEBUG: 00:00:00.0340018 Source: PSGallery
DEBUG: 00:00:00.0340291 Verbose: True
DEBUG: 00:00:00.0347773 INVOKING PowerShell Fn Get-DynamicOptions with args Package that has length 1
DEBUG: 00:00:00.0355210 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0428918 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0485198 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0485490 Debug: True
DEBUG: 00:00:00.0485687 Name: PSReadLine
DEBUG: 00:00:00.0485864 Force: True
DEBUG: 00:00:00.0486046 Source: PSGallery
DEBUG: 00:00:00.0486218 Verbose: True
DEBUG: 00:00:00.0494659 INVOKING PowerShell Fn Get-DynamicOptions with args Install that has length 1
DEBUG: 00:00:00.0501665 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0538971 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.1290210 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:00.1362846 Verbose: True
DEBUG: 00:00:00.1392700 Scope: CurrentUser
DEBUG: 00:00:00.1461502 Name: PSReadLine
DEBUG: 00:00:00.1486072 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.1527783 Debug: True
DEBUG: 00:00:00.1551556 Type: Module
DEBUG: 00:00:00.1576817 ProviderName: PowerShellGet
DEBUG: 00:00:00.1597014 Source: PSGallery
DEBUG: 00:00:00.1626803 Force: True
DEBUG: 00:00:00.1643788 AllowPrereleaseVersions: True
DEBUG: 00:00:00.1667086 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.1684998 In PowerShellGet Provider - 'Resolve-PackageSource'.
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2/'; IsTrusted = 'False'; IsRegistered = 'True'.
DEBUG: 00:00:00.1733910 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.1754431 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.1777258 Calling SearchForPackages. Name='PSReadLine'
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
DEBUG: 00:00:00.1884143 PackageProvider::FindPackage with name PSReadLine
DEBUG: 00:00:00.1895923 Calling SearchForPackages After Select 1
DEBUG: 00:00:00.1964005 Calling New() : MethodName = 'FindPackage'
DEBUG: 00:00:00.1986901 Verbose: True
DEBUG: 00:00:00.2022940 Scope: CurrentUser
DEBUG: 00:00:00.2052120 Name: PSReadLine
DEBUG: 00:00:00.2071762 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.2087707 Debug: True
DEBUG: 00:00:00.2102484 Type: Module
DEBUG: 00:00:00.2137676 ProviderName: PowerShellGet
DEBUG: 00:00:00.2152766 Source: PSGallery
DEBUG: 00:00:00.2164873 Force: True
DEBUG: 00:00:00.2176910 AllowPrereleaseVersions: True
DEBUG: 00:00:00.2189702 INVOKING PowerShell Fn Find-Package with args System.String[], , ,  that has length 4
DEBUG: 00:00:00.2574596 In PowerShellGet Provider - 'Find-Package'.
DEBUG: 00:00:00.2612596 OPTION: Verbose => True
DEBUG: 00:00:00.2640623 OPTION: Scope => CurrentUser
DEBUG: 00:00:00.2664180 OPTION: Name => PSReadLine
DEBUG: 00:00:00.2699145 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:00.2721257 OPTION: Debug => True
DEBUG: 00:00:00.2737803 OPTION: Type => Module
DEBUG: 00:00:00.2754183 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:00.2769247 OPTION: Source => PSGallery
DEBUG: 00:00:00.2804747 OPTION: Force => True
DEBUG: 00:00:00.2820253 OPTION: AllowPrereleaseVersions => True
VERBOSE: Using the specified source names : 'PSGallery'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.
DEBUG: 00:00:00.3261845 PackageProvider::FindPackage with name PSReadLine
DEBUG: 00:00:00.3411074 Calling 'NuGet'::'FindPackage' - name='PSReadLine', requiredVersion='',minimumVersion='', maximumVersion='''.
DEBUG: 00:00:00.3485271 Iterating 'PSReadLine'.
DEBUG: 00:00:00.3650127 Calling 'NuGetRequest'::'RegisteredPackageSources', 'C:\Users\steph\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:00.3696972 Loading a configuration from file 'C:\Users\steph\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:00.3730603 Loaded a configuration from file 'C:\Users\steph\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:00.3766336 There are '2' registered sources in 'NuGet' provider.
DEBUG: 00:00:00.3805563 Source 'https://www.powershellgallery.com/api/v2/' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:02.1025973 Downloading 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:02.2002370 Completed downloading 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:02.2058092 Source 'https://www.powershellgallery.com/api/v2/' is validated.
DEBUG: 00:00:02.2084569 Calling 'NuGetRequest'::'GetPackageById', 'PSReadLine'.
DEBUG: 00:00:02.2115509 Calling 'NuGetPackageRepository'::'FindPackagesById', 'PSReadLine'.
DEBUG: 00:00:02.2153625 Calling 'NuGetPackageFeed2'::'FindPackage', 'PSReadLine'.
DEBUG: 00:00:02.2179695 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'' for ''.
DEBUG: 00:00:02.2298664 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:02.3273652 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:02.3406975 '13' packages received in the last request.
DEBUG: 00:00:02.3881427 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:02.4848779 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:02.4955362 '13' packages received in the last request.
VERBOSE: Total package yield:'1' for the specified package 'PSReadLine'.
DEBUG: 00:00:02.5484457 Completed iterating for 'PSReadLine'.
DEBUG: 00:00:02.7127706 Done calling powershell «Find-Package» «PSModule»
DEBUG: 00:00:02.7370032 Calling New() : MethodName = 'GetInstalledPackages'
DEBUG: 00:00:02.7398527 Verbose: True
DEBUG: 00:00:02.7415873 Scope: CurrentUser
DEBUG: 00:00:02.7432650 Name: PSReadLine
DEBUG: 00:00:02.7449745 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:02.7469604 Debug: True
DEBUG: 00:00:02.7500938 Type: Module
DEBUG: 00:00:02.7513009 ProviderName: PowerShellGet
DEBUG: 00:00:02.7529691 Source: PSGallery
DEBUG: 00:00:02.7553354 Force: True
DEBUG: 00:00:02.7575343 AllowPrereleaseVersions: True
DEBUG: 00:00:02.7611201 INVOKING PowerShell Fn Get-InstalledPackage with args PSReadLine, 2.0.0-beta6, ,  that has length 4
DEBUG: 00:00:02.7652164 In PowerShellGet Provider - 'Get-InstalledPackage'.
DEBUG: 00:00:02.7678451 OPTION: Verbose => True
DEBUG: 00:00:02.7712212 OPTION: Scope => CurrentUser
DEBUG: 00:00:02.7727881 OPTION: Name => PSReadLine
DEBUG: 00:00:02.7742947 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:02.7755959 OPTION: Debug => True
DEBUG: 00:00:02.7768294 OPTION: Type => Module
DEBUG: 00:00:02.7781765 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:02.7816345 OPTION: Source => PSGallery
DEBUG: 00:00:02.7832616 OPTION: Force => True
DEBUG: 00:00:02.7846225 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:03.1385251 PowerShell Script 'PSModule' Function 'Get-InstalledPackage' returns null.
DEBUG: 00:00:03.1424317 Done calling powershell «Get-InstalledPackage» «PSModule»

Confirm
Are you sure you want to perform this action?
Performing the operation "Install-Module" on target "Version '2.0.0-beta6' of module 'PSReadLine'".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): a
DEBUG: 00:00:05.0068153 Calling New() : MethodName = 'InstallPackage'                                                                                                       DEBUG: 00:00:05.0094275 Verbose: True                                                                                                                                       DEBUG: 00:00:05.0141062 Scope: CurrentUser                                                                                                                                  DEBUG: 00:00:05.0166879 Name: PSReadLine                                                                                                                                    DEBUG: 00:00:05.0189380 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString                                                                    DEBUG: 00:00:05.0205270 Debug: True                                                                                                                                         DEBUG: 00:00:05.0232205 Type: Module                                                                                                                                        DEBUG: 00:00:05.0245809 ProviderName: PowerShellGet                                                                                                                         DEBUG: 00:00:05.0276243 Source: PSGallery                                                                                                                                   DEBUG: 00:00:05.0289546 Force: True                                                                                                                                         DEBUG: 00:00:05.0303936 AllowPrereleaseVersions: True                                                                                                                       DEBUG: 00:00:05.0337290 INVOKING PowerShell Fn Install-Package with args NuGet|PSReadLine|2.0.0-beta6|https://www.powershellgallery.com/api/v2/|Module that has length 1    DEBUG: 00:00:05.0368445 In PowerShellGet Provider - 'Install-Package'.                                                                                                      DEBUG: 00:00:05.0723379 In PowerShellGet Provider - 'Install-PackageUtility'.                                                                                               DEBUG: 00:00:05.0759742 The FastPackageReference is 'NuGet|PSReadLine|2.0.0-beta6|https://www.powershellgallery.com/api/v2/|Module'.                                        DEBUG: 00:00:05.0932590 OPTION: Verbose => True                                                                                                                             DEBUG: 00:00:05.1027785 OPTION: Scope => CurrentUser
DEBUG: 00:00:05.1081571 OPTION: Name => PSReadLine
DEBUG: 00:00:05.1153177 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:05.1237892 OPTION: Debug => True
DEBUG: 00:00:05.1295980 OPTION: Type => Module
DEBUG: 00:00:05.1393156 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:05.1500236 OPTION: Source => PSGallery
DEBUG: 00:00:05.1554979 OPTION: Force => True
DEBUG: 00:00:05.1643366 OPTION: AllowPrereleaseVersions => True
VERBOSE: The installation scope is specified to be 'CurrentUser'.
VERBOSE: The specified module will be installed in 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules'.
DEBUG: 00:00:05.1928366 ArtifactType is Module
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PSReadLine' with version '2.0.0-beta6' from the repository 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:05.3462085 Calling 'NuGet'::'InstallPackage', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\UFNSZWFkTGluZQ==\Mi4wLjAtYmV0YTY=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:05.3528933 Calling 'NuGetRequest'::'GetPackageByFastpath', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\UFNSZWFkTGluZQ==\Mi4wLjAtYmV0YTY=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:05.3560691 Calling 'NuGetRequest'::'ResolvePackageSource', 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:05.3578448 Calling 'NuGetRequest'::'FindRegisteredSource', 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:05.3611127 Source 'https://www.powershellgallery.com/api/v2/' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:05.7446419 Calling 'NuGetPackageRepository'::'FindPackage', 'PSReadLine'.
DEBUG: 00:00:05.7539828 Calling 'NuGetPackageFeed2'::'FindPackage', 'PSReadLine'.
DEBUG: 00:00:05.7641049 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'' for ''.
DEBUG: 00:00:05.7813309 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:06.1890120 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:06.1983485 '13' packages received in the last request.
DEBUG: 00:00:06.2079527 'Package version' is '2.0.0-beta6'.
DEBUG: 00:00:06.2141486 'Request's Destination' is 'C:\Users\steph\AppData\Local\Temp\205336609'.
DEBUG: 00:00:06.2237758 Calling 'NuGetPackageRepository'::'InstallPackage'.
DEBUG: 00:00:06.2332745 Calling 'NuGetFilesFeed2'::'InstallPackage'.
DEBUG: 00:00:06.2403483 Calling 'NuGetFilesFeed2'::'InstallPackage', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\UFNSZWFkTGluZQ==\Mi4wLjAtYmV0YTY=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:06.2654166 Calling 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:06.2883926 Returning the call 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:06.3029876 Calling 'NuGetClient'::'InstallPackage'.
VERBOSE: InstallPackage' - name='PSReadLine', version='2.0.0-beta6',destination='C:\Users\steph\AppData\Local\Temp\205336609'
VERBOSE: DownloadPackage' - name='PSReadLine', version='2.0.0-beta6',destination='C:\Users\steph\AppData\Local\Temp\205336609\PSReadLine.2.0.0-beta6\PSReadLine.2.0.0-beta6.nupkg', uri='https://www.powershellgallery.com/api/v2/package/PSReadLine/2.0.0-beta6'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PSReadLine/2.0.0-beta6'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PSReadLine/2.0.0-beta6'.
VERBOSE: Completed downloading 'PSReadLine'.
DEBUG: 00:00:07.0692863 Calling 'NuGetClient'::'InstallPackageLocal'.
VERBOSE: InstallPackageLocal' - name='PSReadLine', version='2.0.0-beta6',destination='C:\Users\steph\AppData\Local\Temp\205336609'
DEBUG: 00:00:07.0989224 C:\Users\steph\AppData\Local\Temp\205336609\PSReadLine.2.0.0-beta6\PSReadLine.2.0.0-beta6.nupkg
DEBUG: 00:00:07.2952837 Returning the call 'NuGetClient'::'InstallPackageLocal'.
DEBUG: 00:00:07.3369139 Returning the call 'NuGetClient'::'InstallSinglePackage'.
DEBUG: 00:00:07.3627218 Returning the call 'NuGetFilesFeed2'::'InstallPackage'.
VERBOSE: Validating the 'PSReadLine' module contents under 'C:\Users\steph\AppData\Local\Temp\205336609\PSReadLine.2.0.0-beta6' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\steph\AppData\Local\Temp\205336609\PSReadLine.2.0.0-beta6'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'PSReadLine'.
VERBOSE: Found the catalog file 'PSReadLine.cat' in the module 'PSReadLine' contents.
VERBOSE: Valid authenticode signature found in the catalog file 'PSReadLine.cat' for the module 'PSReadLine'.
VERBOSE: Validating the 'PSReadLine' module files for catalog signing using the catalog file 'PSReadLine.cat'.
VERBOSE: The catalog signature in 'PSReadLine.cat' of the module 'PSReadLine' is valid and matches with the hash generated from the module contents.
DEBUG: 00:00:09.2066045 For publisher validation, current module 'PSReadLine' with version '2.0.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: Checking for possible command collisions for the module 'PSReadLine' commands.
VERBOSE: Module 'PSReadLine' was installed successfully to path 'C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PSReadLine\2.0.0'.
DEBUG: 00:00:09.7801173 Done calling powershell «Install-Package» «PSModule»

FWIW, $env:PSModulePath is set to C:\Users\steph\OneDrive\Documents\PowerShell\Modules;C:\Program Files\PowerShell\Modules;c:\program files\powershell\7-preview\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules

In case you're wondering why I have so many identical copies of PSReadLine lying around, I've started to overwrite all copies with the latest beta ever since the preview of the VScode extension for PowerShell has started requiring the very latest PSReadLine beta in order to properly work with my French keyboards (see https://github.com/PowerShell/vscode-powershell/issues/1570)

Now I have only one accessible copy of PSReadLine from PS7:

PS 7.0.0-preview.5 C:/Windows/System32> CheckPSReadLineOnPSModulePath.ps1

Path         : C:\Users\steph\OneDrive\Documents\PowerShell\Modules\PSReadLine
Found        : True
Version      : 2.0.0
IsPrerelease : True
Prerelease   : beta6

But (as expected) this broke PSReadLine in VScode when using Windows PowerShell 5.1:

2019-11-19 21:44:41.655: 's:\PowerShell\CheckPSReadLineStatus.ps1' starting...
PSReadline version 2.0.0 beta5 is loaded
Unwanted PSReadLine version, loaded from 'C:\Users\steph\.vscode\extensions\ms-vscode.powershell-preview-2019.11.0\modules\PSReadLine\2.0.0\PSReadLine.psm1'
2019-11-19 21:44:41.680: 's:\PowerShell\CheckPSReadLineStatus.ps1' exiting.
2019-11-19 21:44:41.711: 'C:\Users\steph\OneDrive\Documents\WindowsPowerShell\Microsoft.VSCode_profile.ps1' starting...
2019-11-19 21:44:41.764: 's:\PowerShell\CheckPSReadLineStatus.ps1' starting...
PSReadline version 2.0.0 beta5 is loaded
Unwanted PSReadLine version, loaded from 'C:\Users\steph\.vscode\extensions\ms-vscode.powershell-preview-2019.11.0\modules\PSReadLine\2.0.0\PSReadLine.psm1'
2019-11-19 21:44:41.773: 's:\PowerShell\CheckPSReadLineStatus.ps1' exiting.
PSReadline version 2.0.0 beta5 is loaded
sba923 commented 4 years ago

More globally, Windows PowerShell 5.1 has reverted to an older beta of PSReadLine, and it's (AFAIK) not possible to update to beta6 "the normal way" from there:

2019-11-19 21:44:51.883: 's:\PowerShell\CheckPSReadLineStatus.ps1' starting...
PSReadline version 2.0.0 beta5 is loaded
Unwanted PSReadLine version, loaded from 'C:\Users\steph\OneDrive\Documents\WindowsPowerShell\Modules\PSReadline\2.0.0\PSReadLine.psm1'
2019-11-19 21:44:51.911: 's:\PowerShell\CheckPSReadLineStatus.ps1' exiting.
Loading personal and system profiles took 5639ms.
PS 5.1.18362.145 C:/WINDOWS/system32> Install-Module -Name PSReadLine -AllowPrerelease -force -verbose -Repository PSGallery -debug
Install-Module : A parameter cannot be found that matches parameter name 'AllowPrerelease'.
At line:1 char:33
+ Install-Module -Name PSReadLine -AllowPrerelease -force -verbose -Rep ...
+                                 ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Install-Module], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Install-Module

PS 5.1.18362.145 C:/WINDOWS/system32> CheckPSReadLineOnPSModulePath.ps1

Path         : C:\Users\steph\OneDrive\Documents\WindowsPowerShell\Modules\PSReadLine
Found        : True
Version      : 2.0.0
IsPrerelease : True
Prerelease   : beta5

Path         : C:\Program Files\WindowsPowerShell\Modules\PSReadLine
Found        : True
Version      : 2.0.0
IsPrerelease : True
Prerelease   : beta5
SteveL-MSFT commented 4 years ago

@sba923 for Windows PowerShell, you'll need to update PackageManagement and PowerShellGet to get the -AllowPrerelease switch

sba923 commented 4 years ago

OK, but getting that to work wasn't straighforward at all ;-)

PS 5.1.18362.145 C:/WINDOWS/system32> install-module PackageManagement
WARNING: 'PackageManagement' matched module 'PackageManagement/1.4.5' from provider: 'PowerShellGet', repository
'OneGetTestSource'.
WARNING: 'PackageManagement' matched module 'PackageManagement/1.4.5' from provider: 'PowerShellGet', repository
'PSGallery'.
PackageManagement\Install-Package : Unable to install, multiple modules matched 'PackageManagement'. Please specify a
single -Repository.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
+ ...          $null = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], E
   xception
    + FullyQualifiedErrorId : DisambiguateForInstall,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

PS 5.1.18362.145 C:/WINDOWS/system32> install-module PackageManagement -Repository PSGallery

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'PSGallery'?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): a
WARNING: Version '1.0.0.1' of module 'PackageManagement' is already installed at 'C:\Program
Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1'. To install version '1.4.5', run Install-Module and add the
-Force parameter, this command will install version '1.4.5' in side-by-side with version '1.0.0.1'.
PS 5.1.18362.145 C:/WINDOWS/system32> install-module PackageManagement -Repository PSGallery -Force
PS 5.1.18362.145 C:/WINDOWS/system32> install-module PowerShellGet -Repository PSGallery -Force
PS 5.1.18362.145 C:/WINDOWS/system32> Install-Module -Name PSReadLine -AllowPrerelease -force -verbose -Repository PSGallery -debug
Install-Module : A parameter cannot be found that matches parameter name 'AllowPrerelease'.
At line:1 char:33
+ Install-Module -Name PSReadLine -AllowPrerelease -force -verbose -Rep ...
+                                 ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Install-Module], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Install-Module

PS 5.1.18362.145 C:/WINDOWS/system32> gmo PackageManagement

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Binary     1.0.0.1    PackageManagement                   {Find-Package, Find-PackageProvider, Get-Package, Get-PackageProvider...}

PS 5.1.18362.145 C:/WINDOWS/system32> Uninstall-Module PackageManagement
PackageManagement\Uninstall-Package : The module 'PackageManagement' of version '1.4.5' in module base folder 'C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5' cannot be
uninstalled, because one or more other modules 'PowerShellGet' are dependent on this module. Uninstall the modules that depend on this module before uninstalling module 'PackageManagement'.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:2194 char:21
+ ...        $null = PackageManagement\Uninstall-Package @PSBoundParameters
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power...ninstallPackage:UninstallPackage) [Uninstall-Package], Exception
    + FullyQualifiedErrorId : UnableToUninstallAsOtherModulesNeedThisModule,Uninstall-Package,Microsoft.PowerShell.PackageManagement.Cmdlets.UninstallPackage

PS 5.1.18362.145 C:/WINDOWS/system32> gmo PackageManagement -ListAvailable

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.4.5      PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}
Binary     1.0.0.1    PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}

PS 5.1.18362.145 C:/WINDOWS/system32> rm -rec -force 'C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1*'
rm : Cannot remove item C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.0.0.1\Microsoft.PackageManagement.ArchiverProviders.dll: Access to the path
'Microsoft.PackageManagement.ArchiverProviders.dll' is denied.
At line:1 char:1
+ rm -rec -force 'C:\Program Files\WindowsPowerShell\Modules\PackageMan ...
+

[...] # removed the folder outside of PS

PS 5.1.18362.145 C:/WINDOWS/system32> gmo PackageManagement -ListAvailable

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     1.4.5      PackageManagement                   {Find-Package, Get-Package, Get-PackageProvider, Get-PackageSource...}

PS 5.1.18362.145 C:/WINDOWS/system32> Install-Module -Name PSReadLine -AllowPrerelease -force -verbose -Repository PSGallery -debug
Install-Module : A parameter cannot be found that matches parameter name 'AllowPrerelease'.
At line:1 char:33
+ Install-Module -Name PSReadLine -AllowPrerelease -force -verbose -Rep ...
+                                 ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Install-Module], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Install-Module

PS 5.1.18362.145 C:/WINDOWS/system32> gmo PowerShellGet -ListAvailable

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     2.2.1      PowerShellGet                       {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability...}
Script     1.0.0.1    PowerShellGet                       {Install-Module, Find-Module, Save-Module, Update-Module...}

PS 5.1.18362.145 C:/WINDOWS/system32> rm -rec -force 'C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\'
PS 5.1.18362.145 C:/WINDOWS/system32> gmo PowerShellGet -ListAvailable

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     2.2.1      PowerShellGet                       {Find-Command, Find-DSCResource, Find-Module, Find-RoleCapability...}

PS 5.1.18362.145 C:/WINDOWS/system32> Install-Module -Name PSReadLine -AllowPrerelease -force -verbose -Repository PSGallery -debug
Install-Module : A parameter cannot be found that matches parameter name 'AllowPrerelease'.
At line:1 char:33
+ Install-Module -Name PSReadLine -AllowPrerelease -force -verbose -Rep ...
+                                 ~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Install-Module], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Install-Module

# exited WinPS and started a new session

[...]

2019-11-19 21:56:02.143: 's:\PowerShell\CheckPSReadLineStatus.ps1' starting...
PSReadline version 2.0.0 beta5 is loaded
Unwanted PSReadLine version, loaded from 'C:\Users\steph\OneDrive\Documents\WindowsPowerShell\Modules\PSReadline\2.0.0\PSReadLine.psm1'
2019-11-19 21:56:02.193: 's:\PowerShell\CheckPSReadLineStatus.ps1' exiting.
Loading personal and system profiles took 7146ms.
PS 5.1.18362.145 C:/WINDOWS/system32> Install-Module -Name PSReadLine -AllowPrerelease -force -verbose -Repository PSGallery -debug
DEBUG: 00:00:00.0000005 Current running environment: Windows PowerShell.

Confirm
Continue with this operation?
[Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is "Y"): a
DEBUG: 00:00:00.1631210 Trying provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.1631210 Trying provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.MsiProvider.dll
DEBUG: 00:00:00.1632320 Trying provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.MsuProvider.dll
DEBUG: 00:00:00.1641659 Trying provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00.1644544 Trying provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.1646956 Trying provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.1668950 Attempting loading of assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.MsuProvider.dll
DEBUG: 00:00:00.1671741 Attempting loading of assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.1672328 Attempting loading of assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00.1672747 Attempting loading of assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.1673822 Attempting loading of assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.1676460 Attempting loading of assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.MsiProvider.dll
VERBOSE: Acquiring providers for assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.MsuProvider.dll
VERBOSE: Acquiring providers for assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
VERBOSE: Acquiring providers for assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.ArchiverProviders.dll
VERBOSE: Acquiring providers for assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.CoreProviders.dll
VERBOSE: Acquiring providers for assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.NuGetProvider.dll
VERBOSE: Acquiring providers for assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.MsiProvider.dll
DEBUG: 00:00:00.2227769 Registering providers via metaproviders for assembly Microsoft.PackageManagement.MetaProvider.PowerShell.Internal.PowerShellMetaProvider
DEBUG: 00:00:00.2756758 Initializing provider 'msi'
DEBUG: 00:00:00.2759370 Initializing provider 'Bootstrap'
DEBUG: 00:00:00.2759428 Initializing provider 'Programs'
DEBUG: 00:00:00.2760816 Initializing provider 'zipfile'
DEBUG: 00:00:00.2763542 Initializing provider 'NuGet'
DEBUG: 00:00:00.2764370 Initializing provider 'WebDownloader'
DEBUG: 00:00:00.2777020 Initializing provider 'msu'
DEBUG: 00:00:00.2990923 Trying to register metaprovider
DEBUG: 00:00:00.3019104 Provider 'zipfile' Initialized
DEBUG: 00:00:00.3019461 Using Archiver Provider zipfile
DEBUG: 00:00:00.3021516 Provider 'WebDownloader' Initialized
DEBUG: 00:00:00.3021794 Using Downloader Provider WebDownloader
DEBUG: 00:00:00.3114663 Calling 'Programs::InitializeProvider'
DEBUG: 00:00:00.3115266 Provider 'Programs' Initialized
DEBUG: 00:00:00.3117677 Using Package Provider Programs
DEBUG: 00:00:00.3121449 Calling 'NuGet'::'InitializeProvider'.
DEBUG: 00:00:00.3121919 Provider 'NuGet' Initialized
DEBUG: 00:00:00.3122180 Using Package Provider NuGet
DEBUG: 00:00:00.3156395 Initializing PowerShell MetaProvider
DEBUG: 00:00:00.3186785 Initialize Bootstrapper
DEBUG: 00:00:00.3186957 Calling 'msu::InitializeProvider'
DEBUG: 00:00:00.3186957 Calling 'msi::InitializeProvider'
DEBUG: 00:00:00.3187477 Provider 'msi' Initialized
DEBUG: 00:00:00.3187497 Provider 'msu' Initialized
DEBUG: 00:00:00.3187801 Using Package Provider msi
DEBUG: 00:00:00.3188267 Using Package Provider msu
DEBUG: 00:00:00.3204780 Calling 'zipfile::GetFeatures'
DEBUG: 00:00:00.3206872 Calling 'WebDownloader::GetFeatures'
DEBUG: 00:00:00.3209048 Calling 'Programs::GetFeatures'
DEBUG: 00:00:00.3223555 The provider 'Programs' is imported
DEBUG: 00:00:00.3233771 Provider 'Bootstrap' Initialized
DEBUG: 00:00:00.3234189 Using Package Provider Bootstrap
DEBUG: 00:00:00.3239747 SUCCESS provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.ArchiverProviders.dll
DEBUG: 00:00:00.3257268 Calling 'NuGet'::'GetFeatures'.
DEBUG: 00:00:00.3260491 Calling 'msu::GetFeatures'
DEBUG: 00:00:00.3263929 The provider 'msu' is imported
DEBUG: 00:00:00.3270962 Calling 'msi::GetFeatures'
DEBUG: 00:00:00.3272415 SUCCESS provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.MsuProvider.dll
DEBUG: 00:00:00.3274693 The provider 'msi' is imported
DEBUG: 00:00:00.3282498 SUCCESS provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.MsiProvider.dll
DEBUG: 00:00:00.3282861 The provider 'NuGet' is imported
DEBUG: 00:00:00.3297975 SUCCESS provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.NuGetProvider.dll
DEBUG: 00:00:00.3323950 Calling 'Bootstrap::GetFeatures'
DEBUG: 00:00:00.3333394 The provider 'Bootstrap' is imported
DEBUG: 00:00:00.3339656 SUCCESS provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.CoreProviders.dll
DEBUG: 00:00:00.4021789 Attempting to load PowerShell Provider Module [C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.1\PSModule.psm1]
DEBUG: 00:00:00.4398223 Calling 'WebDownloader::DownloadFile' 'https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409','C:\Users\steph\AppData\Local\Temp\Microsoft.PackageManagement\tdtbiqq4.5d5','40000','False'
DEBUG: 00:00:00.7131543 Calling 'WebDownloader::DownloadFile' 'https://onegetcdn.azureedge.net/providers/nuget-2.8.5.208.package.swidtag','C:\Users\steph\AppData\Local\Temp\Microsoft.PackageManagement\x1tndzz4.ufy','40000','False'
DEBUG: 00:00:00.7449614 Calling 'WebDownloader::DownloadFile' 'https://onegetcdn.azureedge.net/providers/psl-1.0.0.210.package.swidtag','C:\Users\steph\AppData\Local\Temp\Microsoft.PackageManagement\utz4y43z.cju','40000','False'
DEBUG: 00:00:00.7850376 Calling 'WebDownloader::DownloadFile'
'https://onegetcdn.azureedge.net/providers/ChocolateyPrototype-2.8.5.130.package.swidtag','C:\Users\steph\AppData\Local\Temp\Microsoft.PackageManagement\v3ivvyng.2xj','40000','False'
DEBUG: 00:00:00.7934204 Loaded PowerShell package provider: '[C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.1\PSModule.psm1]'.
DEBUG: 00:00:00.8022248 Loaded PowerShell Provider: PowerShellGet
DEBUG: 00:00:00.8046598 Initializing provider 'PowerShellGet'
DEBUG: 00:00:00.8130517 Calling New() : MethodName = 'InitializeProvider'
DEBUG: 00:00:00.8130900 ErrorAction: SilentlyContinue
DEBUG: 00:00:00.8131010 WarningAction: SilentlyContinue
DEBUG: 00:00:00.8165530 INVOKING PowerShell Fn Initialize-Provider with args  that has length 0
DEBUG: 00:00:00.8903761 In PowerShellGet Provider - 'Initialize-Provider'.
DEBUG: 00:00:00.8906583 PowerShell Script 'PSModule' Function 'Initialize-Provider' returns null.
DEBUG: 00:00:00.8921605 Done calling powershell «Initialize-Provider» «PSModule»
DEBUG: 00:00:00.8922191 Provider 'PowerShellGet' Initialized
DEBUG: 00:00:00.8922338 Using Package Provider PowerShellGet
DEBUG: 00:00:00.8997847 Calling New() : MethodName = 'GetFeatures'
DEBUG: 00:00:00.8998208 ErrorAction: SilentlyContinue
DEBUG: 00:00:00.8998376 WarningAction: SilentlyContinue
DEBUG: 00:00:00.9008502 INVOKING PowerShell Fn Get-Feature with args  that has length 0
DEBUG: 00:00:00.9584252 In PowerShellGet Provider - 'Get-Feature'.
DEBUG: 00:00:00.9746550 Done calling powershell «Get-Feature» «PSModule»
DEBUG: 00:00:00.9747360 The provider 'PowerShellGet' is imported
DEBUG: 00:00:00.9766974 SUCCESS provider assembly: C:\Program Files\WindowsPowerShell\Modules\PackageManagement\1.4.5\fullclr\Microsoft.PackageManagement.MetaProvider.PowerShell.dll
DEBUG: 00:00:00.0000005 Calling New() : MethodName = 'ResolvePackageSources'

Confirm
Continue with this operation?
[Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is "Y"): a
DEBUG: 00:00:00.0003034 Verbose: False
DEBUG: 00:00:00.0003336 Name: PSGallery
DEBUG: 00:00:00.0003498 ErrorVariable: ev
DEBUG: 00:00:00.0022706 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0663483 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.5446331 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.5494177 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.5734681 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.5735369 Verbose: False
DEBUG: 00:00:00.5735653 Name: PSGallery
DEBUG: 00:00:00.5735808 ErrorVariable: ev
DEBUG: 00:00:00.5746137 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.6700011 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.6926568 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.6965033 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.6965501 Verbose: False
DEBUG: 00:00:00.6965760 Name: PSGallery
DEBUG: 00:00:00.6965912 ErrorVariable: ev
DEBUG: 00:00:00.6974087 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.6983525 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.7006915 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:02.6667506 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:02.6690609 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:02.6704271 ProviderName: PowerShellGet
DEBUG: 00:00:02.6717388 Verbose: False
DEBUG: 00:00:02.6729316 Name: PSGallery
DEBUG: 00:00:02.6740463 ErrorVariable: ev
DEBUG: 00:00:02.7039860 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:02.7105572 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:02.7245200 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:02.7337623 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:02.7478930 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:02.7559344 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:02.7655617 ProviderName: PowerShellGet
DEBUG: 00:00:02.7719491 Verbose: False
DEBUG: 00:00:02.7803662 Name: PSGallery
DEBUG: 00:00:02.7890861 ErrorVariable: ev
DEBUG: 00:00:02.7933212 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:02.8007339 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:02.8052793 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:02.8116063 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0000001 Calling New() : MethodName = 'ResolvePackageSources'

Confirm
Continue with this operation?
[Y] Yes  [A] Yes to All  [H] Halt Command  [S] Suspend  [?] Help (default is "Y"): a
DEBUG: 00:00:00.0000313 Force: True
DEBUG: 00:00:00.0000466 Source: PSGallery
DEBUG: 00:00:00.0000604 Debug: True
DEBUG: 00:00:00.0000736 Name: PSReadLine
DEBUG: 00:00:00.0000869 Verbose: True
DEBUG: 00:00:00.0016000 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:00.0023932 In PowerShellGet Provider - 'Resolve-PackageSource'.
DEBUG: 00:00:00.0043342 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:00.0053177 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:00.0085365 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0085653 Force: True
DEBUG: 00:00:00.0085803 Source: PSGallery
DEBUG: 00:00:00.0085931 Debug: True
DEBUG: 00:00:00.0086062 Name: PSReadLine
DEBUG: 00:00:00.0086191 Verbose: True
DEBUG: 00:00:00.0094325 INVOKING PowerShell Fn Get-DynamicOptions with args Provider that has length 1
DEBUG: 00:00:00.0102837 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0115323 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0146135 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0146361 Force: True
DEBUG: 00:00:00.0146495 Source: PSGallery
DEBUG: 00:00:00.0146628 Debug: True
DEBUG: 00:00:00.0146757 Name: PSReadLine
DEBUG: 00:00:00.0146885 Verbose: True
DEBUG: 00:00:00.0154183 INVOKING PowerShell Fn Get-DynamicOptions with args Source that has length 1
DEBUG: 00:00:00.0163010 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0186857 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0218527 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0218775 Force: True
DEBUG: 00:00:00.0218916 Source: PSGallery
DEBUG: 00:00:00.0219056 Debug: True
DEBUG: 00:00:00.0219245 Name: PSReadLine
DEBUG: 00:00:00.0219387 Verbose: True
DEBUG: 00:00:00.0227345 INVOKING PowerShell Fn Get-DynamicOptions with args Package that has length 1
DEBUG: 00:00:00.0235922 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0372769 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:00.0461898 Calling New() : MethodName = 'GetDynamicOptions'
DEBUG: 00:00:00.0462589 Force: True
DEBUG: 00:00:00.0462993 Source: PSGallery
DEBUG: 00:00:00.0463389 Debug: True
DEBUG: 00:00:00.0463772 Name: PSReadLine
DEBUG: 00:00:00.0464272 Verbose: True
DEBUG: 00:00:00.0484485 INVOKING PowerShell Fn Get-DynamicOptions with args Install that has length 1
DEBUG: 00:00:00.0506744 In PowerShellGet Provider - 'Get-DynamicOptions'.
DEBUG: 00:00:00.0606559 Done calling powershell «Get-DynamicOptions» «PSModule»
DEBUG: 00:00:01.9056590 Calling New() : MethodName = 'ResolvePackageSources'
DEBUG: 00:00:01.9086451 ProviderName: PowerShellGet
DEBUG: 00:00:01.9099130 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:01.9120848 Type: Module
DEBUG: 00:00:01.9143716 Source: PSGallery
DEBUG: 00:00:01.9161844 Force: True
DEBUG: 00:00:01.9197831 Debug: True
DEBUG: 00:00:01.9224589 Scope: AllUsers
DEBUG: 00:00:01.9242468 Verbose: True
DEBUG: 00:00:01.9264017 AllowPrereleaseVersions: True
DEBUG: 00:00:01.9296807 Name: PSReadLine
DEBUG: 00:00:01.9326417 INVOKING PowerShell Fn Resolve-PackageSource with args  that has length 0
DEBUG: 00:00:01.9362519 In PowerShellGet Provider - 'Resolve-PackageSource'.
VERBOSE: Repository details, Name = 'PSGallery', Location = 'https://www.powershellgallery.com/api/v2/'; IsTrusted = 'False'; IsRegistered = 'True'.
DEBUG: 00:00:01.9427553 Yielding package source for PSGallery at location https://www.powershellgallery.com/api/v2/
DEBUG: 00:00:01.9455255 Done calling powershell «Resolve-PackageSource» «PSModule»
DEBUG: 00:00:01.9493427 Calling SearchForPackages. Name='PSReadLine'
VERBOSE: Using the provider 'PowerShellGet' for searching packages.
DEBUG: 00:00:01.9624746 PackageProvider::FindPackage with name PSReadLine
DEBUG: 00:00:01.9630263 Calling SearchForPackages After Select 1
DEBUG: 00:00:01.9769783 Calling New() : MethodName = 'FindPackage'
DEBUG: 00:00:01.9796235 ProviderName: PowerShellGet
DEBUG: 00:00:01.9815304 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:01.9832348 Type: Module
DEBUG: 00:00:01.9847909 Source: PSGallery
DEBUG: 00:00:01.9859649 Force: True
DEBUG: 00:00:01.9870601 Debug: True
DEBUG: 00:00:01.9911356 Scope: AllUsers
DEBUG: 00:00:01.9927045 Verbose: True
DEBUG: 00:00:01.9942433 AllowPrereleaseVersions: True
DEBUG: 00:00:01.9962614 Name: PSReadLine
DEBUG: 00:00:01.9981730 INVOKING PowerShell Fn Find-Package with args System.String[], , ,  that has length 4
DEBUG: 00:00:02.1065315 In PowerShellGet Provider - 'Find-Package'.
DEBUG: 00:00:02.1088601 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:02.1106060 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:02.1122803 OPTION: Type => Module
DEBUG: 00:00:02.1281906 OPTION: Source => PSGallery
DEBUG: 00:00:02.1311216 OPTION: Force => True
DEBUG: 00:00:02.1327378 OPTION: Debug => True
DEBUG: 00:00:02.1340553 OPTION: Scope => AllUsers
DEBUG: 00:00:02.1354356 OPTION: Verbose => True
DEBUG: 00:00:02.1372985 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:02.1389393 OPTION: Name => PSReadLine
VERBOSE: Using the specified source names : 'PSGallery'.
VERBOSE: Getting the provider object for the PackageManagement Provider 'NuGet'.
VERBOSE: The specified Location is 'https://www.powershellgallery.com/api/v2/' and PackageManagementProvider is 'NuGet'.
DEBUG: 00:00:02.2173629 PackageProvider::FindPackage with name PSReadLine
DEBUG: 00:00:02.2359631 Calling 'NuGet'::'FindPackage' - name='PSReadLine', requiredVersion='',minimumVersion='', maximumVersion='''.
DEBUG: 00:00:02.2433354 Iterating 'PSReadLine'.
DEBUG: 00:00:02.2769546 Calling 'NuGetRequest'::'RegisteredPackageSources', 'C:\Users\steph\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:02.2811461 Loading a configuration from file 'C:\Users\steph\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:02.2851365 Loaded a configuration from file 'C:\Users\steph\AppData\Roaming\NuGet\nuget.config'.
DEBUG: 00:00:02.2915951 There are '2' registered sources in 'NuGet' provider.
DEBUG: 00:00:02.2956557 Source 'https://www.powershellgallery.com/api/v2/' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:03.6785550 Downloading 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:03.7977216 Completed downloading 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:03.8062781 Source 'https://www.powershellgallery.com/api/v2/' is validated.
DEBUG: 00:00:03.8231533 Calling 'NuGetRequest'::'GetPackageById', 'PSReadLine'.
DEBUG: 00:00:03.8335195 Calling 'NuGetPackageRepository'::'FindPackagesById', 'PSReadLine'.
DEBUG: 00:00:03.8432469 Calling 'NuGetPackageFeed2'::'FindPackage', 'PSReadLine'.
DEBUG: 00:00:03.8536461 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'' for ''.
DEBUG: 00:00:03.8954957 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:04.0423521 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:04.0507906 '13' packages received in the last request.
DEBUG: 00:00:04.0994754 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:04.2252943 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:04.2335961 '13' packages received in the last request.
VERBOSE: Total package yield:'1' for the specified package 'PSReadLine'.
DEBUG: 00:00:04.3062859 Completed iterating for 'PSReadLine'.
DEBUG: 00:00:04.9880785 Done calling powershell «Find-Package» «PSModule»
DEBUG: 00:00:05.0203122 Calling New() : MethodName = 'GetInstalledPackages'
DEBUG: 00:00:05.0226469 ProviderName: PowerShellGet
DEBUG: 00:00:05.0245416 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:05.0262215 Type: Module
DEBUG: 00:00:05.0274677 Source: PSGallery
DEBUG: 00:00:05.0285260 Force: True
DEBUG: 00:00:05.0299728 Debug: True
DEBUG: 00:00:05.0311924 Scope: AllUsers
DEBUG: 00:00:05.0352390 Verbose: True
DEBUG: 00:00:05.0389563 AllowPrereleaseVersions: True
DEBUG: 00:00:05.0402046 Name: PSReadLine
DEBUG: 00:00:05.0416872 INVOKING PowerShell Fn Get-InstalledPackage with args PSReadLine, 2.0.0-beta6, ,  that has length 4
DEBUG: 00:00:05.1418764 In PowerShellGet Provider - 'Get-InstalledPackage'.
DEBUG: 00:00:05.1460314 OPTION: ProviderName => PowerShellGet
DEBUG: 00:00:05.1494473 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:05.1567593 OPTION: Type => Module
DEBUG: 00:00:05.1599798 OPTION: Source => PSGallery
DEBUG: 00:00:05.1623668 OPTION: Force => True
DEBUG: 00:00:05.1679343 OPTION: Debug => True
DEBUG: 00:00:05.1713963 OPTION: Scope => AllUsers
DEBUG: 00:00:05.1747763 OPTION: Verbose => True
DEBUG: 00:00:05.1804743 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:05.2007755 OPTION: Name => PSReadLine
DEBUG: 00:00:05.7238135 PowerShell Script 'PSModule' Function 'Get-InstalledPackage' returns null.
DEBUG: 00:00:05.7269138 Done calling powershell «Get-InstalledPackage» «PSModule»

Confirm
Are you sure you want to perform this action?
Performing the operation "Install-Module" on target "Version '2.0.0-beta6' of module 'PSReadLine'".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "Y"): a                                                                                                                                                    DEBUG: 00:00:06.7242905 Calling New() : MethodName = 'InstallPackage'                                                                                                                                                                        DEBUG: 00:00:06.7291100 ProviderName: PowerShellGet                                                                                                                                                                                          DEBUG: 00:00:06.7345067 MessageResolver: Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString                                                                                                                                     DEBUG: 00:00:06.7362582 Type: Module                                                                                                                                                                                                         DEBUG: 00:00:06.7379223 Source: PSGallery                                                                                                                                                                                                    DEBUG: 00:00:06.7396005 Force: True                                                                                                                                                                                                          DEBUG: 00:00:06.7421746 Debug: True                                                                                                                                                                                                          DEBUG: 00:00:06.7434247 Scope: AllUsers                                                                                                                                                                                                      DEBUG: 00:00:06.7448649 Verbose: True                                                                                                                                                                                                        DEBUG: 00:00:06.7459423 AllowPrereleaseVersions: True                                                                                                                                                                                        DEBUG: 00:00:06.7470210 Name: PSReadLine                                                                                                                                                                                                     DEBUG: 00:00:06.7483545 INVOKING PowerShell Fn Install-Package with args NuGet|PSReadLine|2.0.0-beta6|https://www.powershellgallery.com/api/v2/|Module that has length 1                                                                     DEBUG: 00:00:06.8036664 In PowerShellGet Provider - 'Install-Package'.                                                                                                                                                                       DEBUG: 00:00:06.8881062 In PowerShellGet Provider - 'Install-PackageUtility'.                                                                                                                                                                DEBUG: 00:00:06.8908041 The FastPackageReference is 'NuGet|PSReadLine|2.0.0-beta6|https://www.powershellgallery.com/api/v2/|Module'.                                                                                                         DEBUG: 00:00:06.9720650 OPTION: ProviderName => PowerShellGet                                                                                                                                                                                DEBUG: 00:00:06.9764172 OPTION: MessageResolver => Microsoft.PowerShell.PackageManagement.Cmdlets.GetMessageString
DEBUG: 00:00:06.9784000 OPTION: Type => Module
DEBUG: 00:00:06.9800432 OPTION: Source => PSGallery
DEBUG: 00:00:06.9816782 OPTION: Force => True
DEBUG: 00:00:06.9830683 OPTION: Debug => True
DEBUG: 00:00:06.9862819 OPTION: Scope => AllUsers
DEBUG: 00:00:06.9877078 OPTION: Verbose => True
DEBUG: 00:00:06.9892484 OPTION: AllowPrereleaseVersions => True
DEBUG: 00:00:06.9907770 OPTION: Name => PSReadLine
VERBOSE: The installation scope is specified to be 'AllUsers'.
VERBOSE: The specified module will be installed in 'C:\Program Files\WindowsPowerShell\Modules'.
DEBUG: 00:00:07.0071405 ArtifactType is Module
VERBOSE: The specified Location is 'NuGet' and PackageManagementProvider is 'NuGet'.
VERBOSE: Downloading module 'PSReadLine' with version '2.0.0-beta6' from the repository 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:07.3900105 Calling 'NuGet'::'InstallPackage', '$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\UFNSZWFkTGluZQ==\Mi4wLjAtYmV0YTY=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:07.3929272 Calling 'NuGetRequest'::'GetPackageByFastpath',
'$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\UFNSZWFkTGluZQ==\Mi4wLjAtYmV0YTY=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:07.3983125 Calling 'NuGetRequest'::'ResolvePackageSource', 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:07.4004678 Calling 'NuGetRequest'::'FindRegisteredSource', 'https://www.powershellgallery.com/api/v2/'.
DEBUG: 00:00:07.4028200 Source 'https://www.powershellgallery.com/api/v2/' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:07.8057323 Calling 'NuGetPackageRepository'::'FindPackage', 'PSReadLine'.
DEBUG: 00:00:07.8133932 Calling 'NuGetPackageFeed2'::'FindPackage', 'PSReadLine'.
DEBUG: 00:00:07.8212374 Calling 'NuGetClient'::'FindPackage'.
VERBOSE: Searching repository 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'' for ''.
DEBUG: 00:00:07.8458291 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:08.2706459 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='PSReadLine'&$skip=0&$top=40'.
DEBUG: 00:00:08.2785256 '13' packages received in the last request.
DEBUG: 00:00:08.2920771 'Package version' is '2.0.0-beta6'.
DEBUG: 00:00:08.3034836 'Request's Destination' is 'C:\Users\steph\AppData\Local\Temp\1103823736'.
DEBUG: 00:00:08.3115209 Calling 'NuGetPackageRepository'::'InstallPackage'.
DEBUG: 00:00:08.3208978 Calling 'NuGetFilesFeed2'::'InstallPackage'.
DEBUG: 00:00:08.3320365 Calling 'NuGetFilesFeed2'::'InstallPackage',
'$aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\UFNSZWFkTGluZQ==\Mi4wLjAtYmV0YTY=\aHR0cHM6Ly93d3cucG93ZXJzaGVsbGdhbGxlcnkuY29tL2FwaS92Mi8=\cG93ZXJzaGVsbGdldA=='.
DEBUG: 00:00:08.3633125 Calling 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:08.3858448 Returning the call 'NuGetClient'::'GetPackageDependencies'.
DEBUG: 00:00:08.4551628 Calling 'NuGetClient'::'InstallPackage'.
VERBOSE: InstallPackage' - name='PSReadLine', version='2.0.0-beta6',destination='C:\Users\steph\AppData\Local\Temp\1103823736'
VERBOSE: DownloadPackage' - name='PSReadLine', version='2.0.0-beta6',destination='C:\Users\steph\AppData\Local\Temp\1103823736\PSReadLine.2.0.0-beta6\PSReadLine.2.0.0-beta6.nupkg',
uri='https://www.powershellgallery.com/api/v2/package/PSReadLine/2.0.0-beta6'
VERBOSE: Downloading 'https://www.powershellgallery.com/api/v2/package/PSReadLine/2.0.0-beta6'.
VERBOSE: Completed downloading 'https://www.powershellgallery.com/api/v2/package/PSReadLine/2.0.0-beta6'.
VERBOSE: Completed downloading 'PSReadLine'.
VERBOSE: Hash for package 'PSReadLine' does not match hash provided from the server.
DEBUG: 00:00:09.7416387 Calling 'NuGetClient'::'InstallPackageLocal'.
VERBOSE: InstallPackageLocal' - name='PSReadLine', version='2.0.0-beta6',destination='C:\Users\steph\AppData\Local\Temp\1103823736'
DEBUG: 00:00:09.7607320 C:\Users\steph\AppData\Local\Temp\1103823736\PSReadLine.2.0.0-beta6\PSReadLine.2.0.0-beta6.nupkg
DEBUG: 00:00:09.9072364 Returning the call 'NuGetClient'::'InstallPackageLocal'.
DEBUG: 00:00:09.9435072 Returning the call 'NuGetClient'::'InstallSinglePackage'.
DEBUG: 00:00:09.9460305 Returning the call 'NuGetFilesFeed2'::'InstallPackage'.
VERBOSE: Validating the 'PSReadLine' module contents under 'C:\Users\steph\AppData\Local\Temp\1103823736\PSReadLine.2.0.0-beta6' path.
VERBOSE: Test-ModuleManifest successfully validated the module manifest file 'C:\Users\steph\AppData\Local\Temp\1103823736\PSReadLine.2.0.0-beta6'.
VERBOSE: Validating the authenticode signature and publisher of the catalog file or module manifest file of the module 'PSReadLine'.
DEBUG: 00:00:11.2302141 Found the catalog file 'PSReadLine.cat' in the module 'PSReadLine' contents.
DEBUG: 00:00:11.2359951 Using the previously-installed module 'PSReadLine' with version '2.0.0' under 'C:\Users\steph\OneDrive\Documents\WindowsPowerShell\Modules\PSReadLine\2.0.0' for getting the publisher details.
DEBUG: 00:00:11.2392876 Using the 'C:\Users\steph\OneDrive\Documents\WindowsPowerShell\Modules\PSReadLine\2.0.0\PSReadLine.cat' file for getting the authenticode signature.
DEBUG: 00:00:11.8211080 For publisher validation, using the previously-installed module 'PSReadLine' with version '2.0.0' under 'C:\Users\steph\OneDrive\Documents\WindowsPowerShell\Modules\PSReadLine\2.0.0' with publisher name
'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module
signed by Microsoft: 'True'.
VERBOSE: Found the catalog file 'PSReadLine.cat' in the module 'PSReadLine' contents.
VERBOSE: Valid authenticode signature found in the catalog file 'PSReadLine.cat' for the module 'PSReadLine'.
VERBOSE: Validating the 'PSReadLine' module files for catalog signing using the catalog file 'PSReadLine.cat'.
VERBOSE: The catalog signature in 'PSReadLine.cat' of the module 'PSReadLine' is valid and matches with the hash generated from the module contents.
DEBUG: 00:00:12.3373040 For publisher validation, current module 'PSReadLine' with version '2.0.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority
'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: For publisher validation, current module 'PSReadLine' with version '2.0.0' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft
Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
VERBOSE: For publisher validation, using the previously-installed module 'PSReadLine' with version '2.0.0' under 'C:\Users\steph\OneDrive\Documents\WindowsPowerShell\Modules\PSReadLine\2.0.0' with publisher name 'CN=Microsoft
Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by
Microsoft: 'True'.
DEBUG: 00:00:12.3512095 Previously-installed module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
DEBUG: 00:00:12.3552822 Current module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
DEBUG: 00:00:12.3569758 Is previously-installed module signed by Microsoft: True
DEBUG: 00:00:12.3582453 Is current module signed by Microsoft: True
VERBOSE: Authenticode issuer 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the new module 'PSReadLine' with version '2.0.0' matches with the authenticode issuer 'CN=Microsoft Corporation,
O=Microsoft Corporation, L=Redmond, S=Washington, C=US' of the previously-installed module 'PSReadLine' with version '2.0.0'.
VERBOSE: Checking for possible command collisions for the module 'PSReadLine' commands.
VERBOSE: Module 'PSReadLine' was installed successfully to path 'C:\Program Files\WindowsPowerShell\Modules\PSReadLine\2.0.0'.
DEBUG: 00:00:13.5540100 Done calling powershell «Install-Package» «PSModule»
PS 5.1.18362.145 C:/WINDOWS/system32> CheckPSReadLineOnPSModulePath.ps1

Path         : C:\Users\steph\OneDrive\Documents\WindowsPowerShell\Modules\PSReadLine
Found        : True
Version      : 2.0.0
IsPrerelease : True
Prerelease   : beta5

Cannot convert value "PSData" to type "System.Int32". Error: "Input string was not in a correct format."
At s:\PowerShell\CheckPSReadLineOnPSModulePath.ps1:15 char:17
+                 $prerelease = $privatedata['PSData']['Prerelease']
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvalidCastFromStringToInteger

Path         : C:\Program Files\WindowsPowerShell\Modules\PSReadLine
Found        : True
Version      : {2.0.0, 2.0.0}
IsPrerelease : True
Prerelease   :

PS 5.1.18362.145 C:/WINDOWS/system32> gmo PSReadLine -ListAvailable

    Directory: C:\Users\steph\OneDrive\Documents\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     2.0.0      PSReadLine                          {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption...}

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     2.0.0      PSReadline                          {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption...}
Script     2.0.0      PSReadline                          {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption...}

PS 5.1.18362.145 C:/WINDOWS/system32> ii C:\Program Files\WindowsPowerShell\Modules
Invoke-Item : A positional parameter cannot be found that accepts argument 'Files\WindowsPowerShell\Modules'.
At line:1 char:1
+ ii C:\Program Files\WindowsPowerShell\Modules
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Invoke-Item], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.InvokeItemCommand

PS 5.1.18362.145 C:/WINDOWS/system32> ii 'C:\Program Files\WindowsPowerShell\Modules'
PS 5.1.18362.145 C:/WINDOWS/system32> gmo PSReadLine -ListAvailable

    Directory: C:\Users\steph\OneDrive\Documents\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     2.0.0      PSReadLine                          {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption...}

    Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Script     2.0.0      PSReadline                          {Get-PSReadLineKeyHandler, Set-PSReadLineKeyHandler, Remove-PSReadLineKeyHandler, Get-PSReadLineOption...}

PS 5.1.18362.145 C:/WINDOWS/system32> CheckPSReadLineOnPSModulePath.ps1

Path         : C:\Users\steph\OneDrive\Documents\WindowsPowerShell\Modules\PSReadLine
Found        : True
Version      : 2.0.0
IsPrerelease : True
Prerelease   : beta5

Path         : C:\Program Files\WindowsPowerShell\Modules\PSReadLine
Found        : True
Version      : 2.0.0
IsPrerelease : True
Prerelease   : beta6

# manually got rid of the beta5 copy in C:\Users\steph\OneDrive\Documents\WindowsPowerShell\Modules\PSReadLine

Do you now have an idea of the cause of the original "Index error" issue and how to fix it?

sba923 commented 4 years ago

For now I've renamed C:\Users\steph\.vscode\extensions\ms-vscode.powershell-preview-2019.11.0\modules\PSReadLine to PSReadLine.200beta5

sba923 commented 4 years ago

@alerickson do you have enough information to determine whether this is an actual bug, its source, and how to fix it? I can help if needed...

@SteveL-MSFT I'm thinking of moving to a more reasonable way to ensure that the latest PSReadLine beta is what I use whatever the environment (without overwriting the various copies installed by PS7 previews, VScode extension previews etc.). What would you suggest? (I know, this is way off-topic, we can discuss that elsewhere, just tell me where ;-) )

SydneyhSmith commented 4 years ago

@sba923 thanks for providing all of this information! This issue comes from the fact that when you try to update PSReadline the module is currently in use--given that you are updating a preview module it must install in place which means that the folder must be deleted. Unfortunately, because the module is in use this is not possible...luckily because the issue stems from the module being in current use it effects a relatively small number of modules however is a painful experience when hit...we are currently determining how to best approach this issue but likely will focus on solving the issue around all prerelease modules rather than just ones currently in use

sba923 commented 4 years ago

You're very welcome! I must confess that the error message doesn't even remotely suggest a "module in use" condition.

I think I'm going to manually "repair" all my systems so that I don't have obsolete copies of PackageManagement and PowerShellGet, and will try to find a way to have PSReadLine 2.0.0beta6 active in all contexts (Windows PowerShell 5.1, PS6.2.3, PS7.0preview6, VScode) without overwriting the copies that normally get deployed in those environments. Any suggestions?

SteveL-MSFT commented 4 years ago

@sba923 besides psreadline.dll being in use, the other problem is that currently PowerShell and PSGet doesn't understand version folders that have labels, so PSRL 2.0.0-beta5 and PSRL 2.0.0-beta6 both are installed to a folder named 2.0.0. We'd like to support semver folders in the future so 2.0.0-x would be installed side-by-side and would take effect on restart of PowerShell. However, this is a non-trivial item that requires engine changes in PowerShell. The lack of an official semver type also makes this difficult, however, there is a chance a semver type shows up in .NET 5.

If you want to keep the default version, just in case, you can rename the version folder 2.0.0 to 2.0.0-old keeping in that if you want to revert back, you would have to rename that folder back and delete any newer one.

sba923 commented 4 years ago

@SteveL-MSFT Thanks for the additional information. What I don't understand though is that PSReadLine is not the only module that gets installed in a folder named after the version:

image

Next to that, I also don't understand why upgrading from PSReadLine 2.0.0beta5 to 2.0.0beta6 worked on my work laptop, and on none of my home PCs. How am I going to upgrade to 2.0.0beta7 when it gets out? By renaming the folders as suggested by @alerickson?

I'm not sure what you mean by "the default version." Because of the issues with the PowerShell extension in VScode, I have to use the latest preview, currently 2.0.0 beta6. And I'd rather use that everywhere. What do you suggest to implement this?

ThomasNieto commented 4 years ago

Is it planned to fix this and allow in-use module binaries to be upgraded from one prerelease version to the next? I ran into this issue trying to upgade PowerShellGet beta 6 to beta 8. The Install-PSResource -Name PowerShellGet -Prerelease did not install the module or throw an error.