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

The module could not be loaded. #220

Open
Lws77 opened this issue Mar 28, 2023 · 1 comment
Open

The module could not be loaded. #220

Lws77 opened this issue Mar 28, 2023 · 1 comment

Comments

@Lws77
Copy link

Lws77 commented Mar 28, 2023

Import-Module -name psfzf

位於 C:\Users\8724\scoop\modules\psfzf\PSFzf.psm1:1408 字元:61

  •     Bind          = @('ctrl-/:change-preview-window(down,50%,bord ...
    
  •                                                         ~
    

Missing argument in parameter list.
位於 C:\Users\8724\scoop\modules\psfzf\PSFzf.psm1:1408 字元:84

  • ... = @('ctrl-/:change-preview-window(down,50%,border-top|hidden|)')
  •                                                                   ~
    

Empty pipeline elements are not allowed.
位於 C:\Users\8724\scoop\modules\psfzf\PSFzf.psm1:1557 字元:43

  •     if ($_ -match '\d\d-\d\d-\d\d\s+([a-f0-9]+)\s+') {
    
  •                                       ~
    

Missing ] at the end of a property or type constant.
位於 C:\Users\8724\scoop\modules\psfzf\PSFzf.psm1:1557 字元:49

  •     if ($_ -match '\d\d-\d\d-\d\d\s+([a-f0-9]+)\s+') {
    
  •                                             ~
    

Unexpected ']' primitive in expression or statement.
位於 C:\Users\8724\scoop\modules\psfzf\PSFzf.psm1:1557 字元:49

  •     if ($_ -match '\d\d-\d\d-\d\d\s+([a-f0-9]+)\s+') {
    
  •                                             ~
    

Missing ')' in expression.
位於 C:\Users\8724\scoop\modules\psfzf\PSFzf.psm1:1316 字元:9

  • try {
    
  •     ~
    

Missing '}' in declarative block or type definition.
位於 C:\Users\8724\scoop\modules\psfzf\PSFzf.psm1:1557 字元:51

  •     if ($_ -match '\d\d-\d\d-\d\d\s+([a-f0-9]+)\s+') {
    
  •                                               ~
    

Try statements leave out Catch blocks or Finally blocks.
位於 C:\Users\8724\scoop\modules\psfzf\PSFzf.psm1:1308 字元:32

  • function Invoke-PsFzfRipgrep() {
  •                            ~
    

Missing '}' in declarative block or type definition.
位於 C:\Users\8724\scoop\modules\psfzf\PSFzf.psm1:1557 字元:51

  •     if ($_ -match '\d\d-\d\d-\d\d\s+([a-f0-9]+)\s+') {
    
  •                                               ~
    

Unexpected ')' primitive in expression or statement.
位於 C:\Users\8724\scoop\modules\psfzf\PSFzf.psm1:1576 字元:43

  • $fzfArguments['PreviewWindow'] = 'down,border-top,40%'
    
  •                                       ~
    

Missing argument in parameter list.
Not all parsing errors were reported. Please correct the reported error and try again.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument

Import-Module : Unprocessed module information list 'C:\Users\8724\scoop\modules\psfzf\psfzf.psd1' Pending modules listed in column 'ModuleToProcess/RootModule''
PSFzf.psm1' because no valid mod was found in any mod directory.
at line:1 character:1

  • Import-Module -name psfzf
  •   + CategoryInfo          : ResourceUnavailable: (psfzf:String) [Import-Module], PSInvalidOperationException
      + FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
    
@owenstake
Copy link

For user using in powershell 5.1 , should roll back to old version psfzf 2.0.0

reference #190

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