tide: Conda causes BrokenPipeError

Describe the bug

After installing the package I started getting this message when opening the terminal (terminal or iterm):

Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe

As far as I can see, everything works fine, but couldn’t finde the solution on my own.

Steps to reproduce

  1. Install fish
  2. Install fisher
  3. Install tide

Environment

  • Operating system: Mac Os 10.15.5
  • Terminal emulator: Iterm2

Additional context

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 2
  • Comments: 17 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Yes, you can solve this problem by adding status is-interactive && before the conda init:

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
status is-interactive && eval /Users/ilan/opt/anaconda3/bin/conda "shell.fish" "hook" $argv | source
# <<< conda initialize <<<

Yes, you can solve this problem by adding status is-interactive && before the conda init:

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
status is-interactive && eval /Users/ilan/opt/anaconda3/bin/conda "shell.fish" "hook" $argv | source
# <<< conda initialize <<<

Confirmed that it works!

This can be reproduced by fast tapping some ENTERs.

I’m seeing this issue without conda. I’m using pyenv and pipenv