Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to run [email protected] #263

Open
owenstake opened this issue Mar 12, 2024 · 3 comments
Open

Fail to run [email protected] #263

owenstake opened this issue Mar 12, 2024 · 3 comments

Comments

@owenstake
Copy link

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
@kelleyma49
Copy link
Owner

What version of PowerShell are you using?

@owenstake
Copy link
Author

@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

@kelleyma49
Copy link
Owner

Can you try again? I believe this is fixed in the recent version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants