Getting a bunch of errors after installing "!"
g0rdonL opened this issue · 2 comments
g0rdonL commented
What did you expect to happen?
There should be no errors?
What actually happened?
There is a bunch of errors after installation as shown below. I have installed fzy. The funny thing is enhancd still works after uninstalling it and the error outputs are gone. Am I missing any prerequesites?
Output
~/.config/fish/conf.d/enhancd.fish (line 14):
if ! set -q ENHANCD_COMMAND; set -gx ENHANCD_COMMAND "cd"; end
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd.fish (line 15):
if ! set -q ENHANCD_ROOT; set -gx ENHANCD_ROOT "$HOME/.config/fisher/github.com/b4b4r07/$name"; end
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd.fish (line 16):
if ! set -q ENHANCD_DIR; set -gx ENHANCD_DIR "$HOME/.enhancd"; end
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd.fish (line 17):
if ! set -q ENHANCD_DISABLE_DOT; set -gx ENHANCD_DISABLE_DOT 0; end
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd.fish (line 18):
if ! set -q ENHANCD_DISABLE_HYPHEN; set -gx ENHANCD_DISABLE_HYPHEN 0; end
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd.fish (line 19):
if ! set -q ENHANCD_DISABLE_HOME; set -gx ENHANCD_DISABLE_HOME 0; end
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd.fish (line 21):
if ! set -q ENHANCD_DOT_ARG; set -gx ENHANCD_DOT_ARG ".."; end
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd.fish (line 22):
if ! set -q ENHANCD_HYPHEN_ARG; set -gx ENHANCD_HYPHEN_ARG "-"; end
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd.fish (line 23):
if ! set -q ENHANCD_HYPHEN_NUM; set -gx ENHANCD_HYPHEN_NUM 10; end
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd.fish (line 24):
if ! set -q ENHANCD_HOME_ARG; set -gx ENHANCD_HOME_ARG ""; end
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd.fish (line 25):
if ! set -q ENHANCD_USE_FUZZY_MATCH; set -gx ENHANCD_USE_FUZZY_MATCH 1; end
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd.fish (line 27):
if ! set -q ENHANCD_COMPLETION_DEFAULT; set -gx ENHANCD_COMPLETION_DEFAULT 1; end
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd.fish (line 28):
if ! set -q ENHANCD_COMPLETION_BEHAVIOUR; set -gx ENHANCD_COMPLETION_BEHAVIOUR "default"; end
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd.fish (line 42):
if ! [ -d "$ENHANCD_DIR" ]
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd.fish (line 46):
if ! [ -f "$ENHANCD_DIR/enhancd.log" ]
^
from sourcing file ~/.config/fish/conf.d/enhancd.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
alias: Body cannot be empty
~/.config/fish/conf.d/enhancd_init.fish (line 11):
if ! set -q ENHANCD_COMMAND; set -gx ENHANCD_COMMAND "cd"; end
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd_init.fish (line 12):
if ! set -q ENHANCD_ROOT; set -gx ENHANCD_ROOT $path; end
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd_init.fish (line 13):
if ! set -q ENHANCD_DIR; set -gx ENHANCD_DIR $HOME/.enhancd; end
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd_init.fish (line 14):
if ! set -q ENHANCD_DISABLE_DOT; set -gx ENHANCD_DISABLE_DOT 0; end
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd_init.fish (line 15):
if ! set -q ENHANCD_DISABLE_HYPHEN; set -gx ENHANCD_DISABLE_HYPHEN 0; end
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd_init.fish (line 16):
if ! set -q ENHANCD_DISABLE_HOME; set -gx ENHANCD_DISABLE_HOME 0; end
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd_init.fish (line 18):
if ! set -q ENHANCD_DOT_ARG; set -gx ENHANCD_DOT_ARG ".."; end
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd_init.fish (line 19):
if ! set -q ENHANCD_HYPHEN_ARG; set -gx ENHANCD_HYPHEN_ARG "-"; end
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd_init.fish (line 20):
if ! set -q ENHANCD_HYPHEN_NUM; set -gx ENHANCD_HYPHEN_NUM 10; end
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd_init.fish (line 21):
if ! set -q ENHANCD_HOME_ARG; set -gx ENHANCD_HOME_ARG ""; end
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd_init.fish (line 22):
if ! set -q ENHANCD_USE_FUZZY_MATCH; set -gx ENHANCD_USE_FUZZY_MATCH 1; end
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd_init.fish (line 24):
if ! set -q ENHANCD_COMPLETION_DEFAULT; set -gx ENHANCD_COMPLETION_DEFAULT 1; end
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd_init.fish (line 25):
if ! set -q ENHANCD_COMPLETION_BEHAVIOUR; set -gx ENHANCD_COMPLETION_BEHAVIOUR "default"; end
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd_init.fish (line 39):
if ! [ -d "$ENHANCD_DIR" ]
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
~/.config/fish/conf.d/enhancd_init.fish (line 43):
if ! [ -f "$ENHANCD_DIR/enhancd.log" ]
^
from sourcing file ~/.config/fish/conf.d/enhancd_init.fish
called on line 250 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
called during startup
alias: Body cannot be empty
Additional context
Add any other context about the problem here.
questor commented
I had the same error and found out that my distribution by default uses an old fish-version (2.7.x), if you update to fish3 the error will disappear.
jorgebucaran commented
Fixed in 7085570. Please update to the latest enhancd
and let me know if you still have any issues. 👋