Closed Vaintti closed 4 years ago
It's caused by this package since I don't get the errors anymore when I uninstall this
Other packages I have installed are these (in case this is caused by some conflict)
edc/bass fishpkg/fish-prompt-metro
Did you install using fisher? It should have installed that dependency for you
Yeah I ran "fisher add franciscolourenco/done". I think it somehow doesn't install the dependency of fish-humanize-duration
@Vaintti Did reinstalling and installing done fix the problem?
fisher rm franciscolourenco/done
fisher add franciscolourenco/done
@jorgebucaran any idea about this?
@franciscolourenco @Vaintti Tried it here and everything works as usual. If you have any ideas how to reproduce this, I'm happy to try again, but without more info, there's nothing actionable here.
thanks, waiting for @Vaintti
After trying to run fisher rm and fisher add and fisher multiple times it installed the humanize package. I think it's a bug in fisher
Running fisher again after it's fixed breaks if 😂
@Vaintti I would say that this is out of the scope of this package. Would you mind re-opening in https://github.com/jorgebucaran/fisher? Thanks!
Yeah I guess it's out of this project's scope. I'll do that
This happened to me as well.
In my case it worked after installing fish-humanize-duration
manually.
fisher add fishpkg/fish-humanize-duration
This is the error log:
$ fisher add franciscolourenco/done
fetching https://codeload.github.com/jorgebucaran/fish-bax/tar.gz/master
fetching https://codeload.github.com/fishpkg/fish-prompt-mono/tar.gz/master
fetching https://codeload.github.com/jethrokuan/fzf/tar.gz/master
fetching https://codeload.github.com/franciscolourenco/done/tar.gz/master
linking ~/.config/fish/functions/bax.fish
linking ~/.config/fish/functions/fish_prompt.fish
linking ~/.config/fish/functions/fish_right_prompt.fish
linking ~/.config/fish/functions/__fzf_cd.fish
linking ~/.config/fish/functions/__fzf_complete.fish
linking ~/.config/fish/functions/__fzf_complete_preview.fish
linking ~/.config/fish/functions/__fzf_find_file.fish
linking ~/.config/fish/functions/__fzf_get_dir.fish
linking ~/.config/fish/functions/__fzf_open.fish
linking ~/.config/fish/functions/__fzf_parse_commandline.fish
linking ~/.config/fish/functions/__fzf_reverse_isearch.fish
linking ~/.config/fish/functions/__fzfcmd.fish
linking ~/.config/fish/conf.d/fzf.fish
linking ~/.config/fish/conf.d/fzf_key_bindings.fish
linking ~/.config/fish/conf.d/done.fish
fetching https://codeload.github.com/fishpkg/fish-git-util/tar.gz/master
fetching https://codeload.github.com/fishpkg/fish-pwd-is-home/tar.gz/master
fetching https://codeload.github.com/fishpkg/fish-pwd-info/tar.gz/master
fetching https://codeload.github.com/fishpkg/fish-host-info/tar.gz/master
fetching https://codeload.github.com/fishpkg/fish-last-job-id/tar.gz/master
fetching https://codeload.github.com/fishpkg/fish-humanize-duration/tar.gz/master
fetching https://codeload.github.com/fishpkg/fish-humanize-duration/tar.gz/master
usage: mv [-f | -i | -n] [-v] source target
mv [-f | -i | -n] [-v] source ... directory
cp: /Users/hugh/.cache/fisher/github.com/fishpkg/fish-humanize-duration: No such file or directory
linking ~/.config/fish/functions/git_ahead.fish
linking ~/.config/fish/functions/git_branch_name.fish
linking ~/.config/fish/functions/git_is_detached_head.fish
linking ~/.config/fish/functions/git_is_dirty.fish
linking ~/.config/fish/functions/git_is_empty.fish
linking ~/.config/fish/functions/git_is_repo.fish
linking ~/.config/fish/functions/git_is_staged.fish
linking ~/.config/fish/functions/git_is_stashed.fish
linking ~/.config/fish/functions/git_is_tag.fish
linking ~/.config/fish/functions/git_is_touched.fish
linking ~/.config/fish/functions/git_repository_root.fish
linking ~/.config/fish/functions/git_untracked_files.fish
linking ~/.config/fish/functions/pwd_is_home.fish
linking ~/.config/fish/functions/pwd_info.fish
linking ~/.config/fish/functions/host_info.fish
linking ~/.config/fish/functions/last_job_id.fish
updated 9 packages in 2.89s
fish: Unknown command: humanize_duration
~/.config/fish/functions/fish_right_prompt.fish (line 1):
echo "$duration" | humanize_duration
^
in command substitution
called on line 30 of file ~/.config/fish/functions/fish_right_prompt.fish
in function 'fish_right_prompt'
in command substitution
~/.config/fish/functions/fish_right_prompt.fish: Unknown error while evaluating command substitution
in function 'fish_right_prompt'
in command substitution
Whenever I run a command I get this error message
fish: Unknown command: humanize_duration ~/.config/fish/functions/fish_right_prompt.fish (line 1): echo $CMD_DURATION | humanize_duration ^ in command substitution called on line 28 of file ~/.config/fish/functions/fish_right_prompt.fish in function 'fish_right_prompt' in command substitution ~/.config/fish/functions/fish_right_prompt.fish: Unknown error while evaluating command substitution in function 'fish_right_prompt' in command substitution