Closed wirtsi closed 3 years ago
I'll look into it. First we should correct some basic stuff though:
>>> conda initialize >>>
!! Contents within this block are managed by 'conda init' !!
eval /Users/wirtsi/miniforge3/bin/conda "shell.fish" "hook" | source
<<< conda initialize <<<
That is not valid fish syntax. Of course fish complains. Can you remove those conda initialize
lines? Might fix the issue.
EDIT: Just remove everything but the eval
line.
Hey ... cool, thanks a lot 👯
The above was a copy & paste error, there are comment hashes before every line except the eval one. Sorry about that. So it actually looks like this
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
eval /Users/wirtsi/miniforge3/bin/conda "shell.fish" "hook" $argv | source
# <<< conda initialize <<<
Are you still getting errors? If so, which ones?
Errors are
commandline: Can not set commandline in non-interactive mode ✔
~/.config/fish/functions/fish_prompt.fish (Zeile 30):
commandline --function force-repaint
^
in function '_tide_refresh_prompt' with arguments 'VARIABLE SET _tide_right_prompt_display_60780'
called on line 1 of file ~/.config/fish/functions/_tide_right_prompt.fish
in event handler: handler for variable '_tide_right_prompt_display_60780'
called on line 24 of file ~/.config/fish/functions/_tide_right_prompt.fish
(Type 'help commandline' for related documentation)
commandline: Can not set commandline in non-interactive mode
~/.config/fish/functions/fish_prompt.fish (Zeile 30):
commandline --function force-repaint
^
in function '_tide_refresh_prompt' with arguments 'VARIABLE ERASE _tide_right_prompt_display_60780'
called on line 1 of file ~/.config/fish/functions/fish_prompt.fish
in event handler: handler for variable '_tide_right_prompt_display_60780'
called on line 36 of file ~/.config/fish/functions/fish_prompt.fish
(Type 'help commandline' for related documentation)
Looks very similar to https://github.com/jorgebucaran/hydro/issues/6. Try this in your config.fish
:
status is-interactive && eval /Users/wirtsi/miniforge3/bin/conda "shell.fish" "hook" $argv | source
👍 That fixed it ... thank you very much, that was incredibly fast! Have a nice evening!
Describe the bug
tide doesn't like the way miniconda is hooking itself
Steps to reproduce
Add these lines to config.fish
And you get these errors
The conda init script outputs this and pipes it to fish, I guess there it clashes with the right prompt setup
Expected behavior
Tide play along with miniconda, spacefish managed to do it :-)
Environment (please complete the following information)
tide bug-report
: