jorgebucaran / fisher

A plugin manager for Fish
https://git.io/fisher
MIT License
7.71k stars 263 forks source link

Strange error on update #633

Closed make-github-pseudonymous-again closed 3 years ago

make-github-pseudonymous-again commented 3 years ago

I get the following (or similar) No matches for wildcard ... error at random (yes, at random) when updating:

fetching https://codeload.github.com/oh-my-fish/plugin-sudope/tar.gz/HEAD
fetching https://codeload.github.com/oh-my-fish/plugin-fasd/tar.gz/HEAD
fetching https://codeload.github.com/wfxr/forgit/tar.gz/HEAD
installing oh-my-fish/plugin-fasd
+/home/aureooms/.config/fish/functions/__fasd_print_completions.fish
+/home/aureooms/.config/fish/functions/a.fish
+/home/aureooms/.config/fish/functions/d.fish
+/home/aureooms/.config/fish/functions/f.fish
+/home/aureooms/.config/fish/functions/fasd_cd.fish
+/home/aureooms/.config/fish/functions/init.fish
+/home/aureooms/.config/fish/functions/s.fish
+/home/aureooms/.config/fish/functions/sd.fish
+/home/aureooms/.config/fish/functions/sf.fish
+/home/aureooms/.config/fish/functions/z.fish
+/home/aureooms/.config/fish/functions/zz.fish
+/home/aureooms/.config/fish/completions/a.fish
+/home/aureooms/.config/fish/completions/d.fish
+/home/aureooms/.config/fish/completions/f.fish
+/home/aureooms/.config/fish/completions/fasd.fish
+/home/aureooms/.config/fish/completions/fasd_cd.fish
+/home/aureooms/.config/fish/completions/s.fish
+/home/aureooms/.config/fish/completions/sd.fish
+/home/aureooms/.config/fish/completions/sf.fish
+/home/aureooms/.config/fish/completions/z.fish
+/home/aureooms/.config/fish/completions/zz.fish
/usr/share/fish/vendor_functions.d/fisher.fish (line 1): No matches for wildcard “$source/{functions,conf.d,completions}/*”. See `help expand`.
string replace $source $fisher_path $source/{functions,conf.d,completions}/*
                                    ^
in command substitution
    called on line 142 of file /usr/share/fish/vendor_functions.d/fisher.fish
in function 'fisher' with arguments 'update'
/usr/share/fish/vendor_functions.d/fisher.fish: Unknown error while evaluating command substitution
in function 'fisher' with arguments 'update'
installing oh-my-fish/plugin-sudope
+/home/aureooms/.config/fish/functions/__fasd_print_completions.fish
+/home/aureooms/.config/fish/functions/a.fish
+/home/aureooms/.config/fish/functions/d.fish
+/home/aureooms/.config/fish/functions/f.fish
+/home/aureooms/.config/fish/functions/fasd_cd.fish
+/home/aureooms/.config/fish/functions/init.fish
+/home/aureooms/.config/fish/functions/s.fish
+/home/aureooms/.config/fish/functions/sd.fish
+/home/aureooms/.config/fish/functions/sf.fish
+/home/aureooms/.config/fish/functions/z.fish
+/home/aureooms/.config/fish/functions/zz.fish
+/home/aureooms/.config/fish/completions/a.fish
+/home/aureooms/.config/fish/completions/d.fish
+/home/aureooms/.config/fish/completions/f.fish
+/home/aureooms/.config/fish/completions/fasd.fish
+/home/aureooms/.config/fish/completions/fasd_cd.fish
+/home/aureooms/.config/fish/completions/s.fish
+/home/aureooms/.config/fish/completions/sd.fish
+/home/aureooms/.config/fish/completions/sf.fish
+/home/aureooms/.config/fish/completions/z.fish
+/home/aureooms/.config/fish/completions/zz.fish
installing wfxr/forgit
+/home/aureooms/.config/fish/conf.d/forgit.plugin.fish
3 updated plugin/s

My workaround so far is to run the update again until it succeeds without hiccups:

fetching https://codeload.github.com/wfxr/forgit/tar.gz/HEAD
fetching https://codeload.github.com/oh-my-fish/plugin-sudope/tar.gz/HEAD
fetching https://codeload.github.com/oh-my-fish/plugin-fasd/tar.gz/HEAD
installing oh-my-fish/plugin-fasd
+/home/aureooms/.config/fish/functions/__fasd_print_completions.fish
+/home/aureooms/.config/fish/functions/a.fish
+/home/aureooms/.config/fish/functions/d.fish
+/home/aureooms/.config/fish/functions/f.fish
+/home/aureooms/.config/fish/functions/fasd_cd.fish
+/home/aureooms/.config/fish/functions/init.fish
+/home/aureooms/.config/fish/functions/s.fish
+/home/aureooms/.config/fish/functions/sd.fish
+/home/aureooms/.config/fish/functions/sf.fish
+/home/aureooms/.config/fish/functions/z.fish
+/home/aureooms/.config/fish/functions/zz.fish
+/home/aureooms/.config/fish/completions/a.fish
+/home/aureooms/.config/fish/completions/d.fish
+/home/aureooms/.config/fish/completions/f.fish
+/home/aureooms/.config/fish/completions/fasd.fish
+/home/aureooms/.config/fish/completions/fasd_cd.fish
+/home/aureooms/.config/fish/completions/s.fish
+/home/aureooms/.config/fish/completions/sd.fish
+/home/aureooms/.config/fish/completions/sf.fish
+/home/aureooms/.config/fish/completions/z.fish
+/home/aureooms/.config/fish/completions/zz.fish
installing oh-my-fish/plugin-sudope
+/home/aureooms/.config/fish/functions/init.fish
+/home/aureooms/.config/fish/functions/key_bindings.fish
+/home/aureooms/.config/fish/functions/sudope.fish
installing wfxr/forgit
+/home/aureooms/.config/fish/conf.d/forgit.plugin.fish
3 updated plugin/s
jorgebucaran commented 3 years ago

Hey, @aureooms. I think you're using an old version of Fisher. Upgrade everything using fisher update.

Also, what plugins are you trying to install? I think there may be one or two that we don't support like plugin-fasd or plugin-sudope. Fortunately, there's a PR to add Fisher support to one of those here: https://github.com/oh-my-fish/plugin-sudope/pull/16.

make-github-pseudonymous-again commented 3 years ago

Hi @jorgebucaran. The output above is the one I get when I run fisher update. I am running Fisher version 4.1.0 (installed via the fisher AUR package).

The plugins I use are

oh-my-fish/plugin-sudope
oh-my-fish/plugin-fasd
wfxr/forgit
jorgebucaran commented 3 years ago

I know you're using and older Fisher because that output doesn't match the latest Fisher.

Upgrade to the latest Fisher and the problem should go away.

Note: I only officially support the installation method described in the README. I don't know how the AUR package works.

jorgebucaran commented 3 years ago

About the plugins:

jorgebucaran commented 3 years ago

Hey, @Scrumplex. Maybe you could shed some light here as the maintainer of the AUR package?

Scrumplex commented 3 years ago

Hi there. The AUR package uses the latest Git tag (in this case 4.1.0). I am sure that updating fisher itself via fisher install jorgebucaran/fisher would use the latest git commit instead. That might be why @aureooms might be using an older version.

In fact when using fisher-git from the AUR (which builds from the latest commit) the output matches the newest version. I would suggest that you just create a new release for fisher, so I can package that one in the AUR.

jorgebucaran commented 3 years ago

@Scrumplex Thanks for the clarification. I'll do that later today. 👍

make-github-pseudonymous-again commented 3 years ago

Thanks for the help @jorgebucaran and @Scrumplex. I will look into forking the plugins or contributing to them.

jorgebucaran commented 3 years ago

That's awesome @aureooms, let me know if you need help with anything. If you need me, you can find me here.