PSFzf
PSFzf copied to clipboard
Fail to run [email protected]
After intall the [email protected], and run Import-Module psfzf, I got the error messages as follows. How to fix it?
At D:\owen\scoop\modules\psfzf\PSFzf.psm1:1432 char:61
+ Bind = @('ctrl-/:change-preview-window(down,50%,bord ...
+ ~
Missing argument in parameter list.
At D:\owen\scoop\modules\psfzf\PSFzf.psm1:1432 char:84
+ ... = @('ctrl-/:change-preview-window(down,50%,border-top|hidden|)')
+ ~
An empty pipe element is not allowed.
At D:\owen\scoop\modules\psfzf\PSFzf.psm1:1581 char:43
+ if ($_ -match '\d\d-\d\d-\d\d\s+([a-f0-9]+)\s+') {
+ ~
Missing ] at end of attribute or type literal.
At D:\owen\scoop\modules\psfzf\PSFzf.psm1:1581 char:49
+ if ($_ -match '\d\d-\d\d-\d\d\s+([a-f0-9]+)\s+') {
+ ~
Unexpected token ']' in expression or statement.
At D:\owen\scoop\modules\psfzf\PSFzf.psm1:1581 char:49
+ if ($_ -match '\d\d-\d\d-\d\d\s+([a-f0-9]+)\s+') {
+ ~
Missing closing ')' in expression.
At D:\owen\scoop\modules\psfzf\PSFzf.psm1:1340 char:9
+ try {
+ ~
Missing closing '}' in statement block or type definition.
At D:\owen\scoop\modules\psfzf\PSFzf.psm1:1581 char:51
+ if ($_ -match '\d\d-\d\d-\d\d\s+([a-f0-9]+)\s+') {
+ ~
The Try statement is missing its Catch or Finally block.
At D:\owen\scoop\modules\psfzf\PSFzf.psm1:1332 char:32
+ function Invoke-PsFzfRipgrep() {
+ ~
Missing closing '}' in statement block or type definition.
At D:\owen\scoop\modules\psfzf\PSFzf.psm1:1581 char:51
+ if ($_ -match '\d\d-\d\d-\d\d\s+([a-f0-9]+)\s+') {
+ ~
Unexpected token ')' in expression or statement.
At D:\owen\scoop\modules\psfzf\PSFzf.psm1:1600 char:43
+ $fzfArguments['PreviewWindow'] = 'down,border-top,40%'
+ ~
Missing argument in parameter list.
Not all parse errors were reported. Correct the reported errors and try again.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument
Import-Module : The module to process 'PSFzf.psm1', listed in field 'ModuleToProcess/RootModule' of module manifest
'D:\owen\scoop\modules\psfzf\psfzf.psd1' was not processed because no valid module was found in any module directory.
At D:\.dotfiles\etc\profile\lib-cli.ps1:154 char:5
+ Import-Module psfzf
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (psfzf:String) [Import-Module], PSInvalidOperationException
+ FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
Set-PsFzfOption : The 'Set-PsFzfOption' command was found in the module 'PSFzf', but the module could not be loaded. For more information, run
'Import-Module PSFzf'.
At D:\.dotfiles\etc\profile\lib-cli.ps1:155 char:5
+ Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChor ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Set-PsFzfOption:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
Set-PSFzfOption : The 'Set-PSFzfOption' command was found in the module 'PSFzf', but the module could not be loaded. For more information, run
'Import-Module PSFzf'.
At D:\.dotfiles\etc\profile\lib-cli.ps1:156 char:5
+ Set-PSFzfOption -EnableAliasFuzzyGitStatus # fgs
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Set-PSFzfOption:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule
What version of PowerShell are you using?
@kelleyma49 powershell 5.1
PS D:\> host
Name : ConsoleHost
Version : 5.1.19041.3803
InstanceId : 03d9d07b-5962-437a-b9de-6018ccdc3180
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : zh-CN
CurrentUICulture : zh-CN
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace