Moeologist / scoop-completion

scoop tab completion, work with powershell
MIT License
172 stars 12 forks source link

pwsh: PSConsoleReadLine threw an exception #2

Closed Ash258 closed 5 years ago

Ash258 commented 5 years ago

pwsh: 6.1.0

Set-PSReadlineKeyHandler : The type initializer for 'Microsoft.PowerShell.PSConsoleReadLine' threw an exception.
At S:\Scoop\apps\scoop-auto-completion\current\scoop-completion.ps1:249 char:1
+ Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Set-PSReadLineKeyHandler], TypeInitializationException
+ FullyQualifiedErrorId : System.TypeInitializationException,Microsoft.PowerShell.SetPSReadLineKeyHandlerCommand
Moeologist commented 5 years ago

The issue not reproduce ( tested in powershell 6.1.0 win x64 ) This line of code only enable menu after pressing tab.