powerlevel10k: gitstatus_query write error: broken pipe

Hi,

I found that after I execute some commands in CLI (e.g., echo, vim <file>), it sometimes shows gitstatus_query:echo:32: write error: broken pipe, and it shows the error in every result of CLI commands later if it is triggered once. . 螢幕快照 2019-07-19 上午2 06 03

I install this theme by oh-my-zsh, and my os is MacOSX 10.14.5. I use iTerm2 as my terminal emulator.

This is a copy of my .zshrc file Hope to help you replicate the error.

Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 55 (27 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks, the config the wizard suggested to me looks awesome!!

On master that job is disowned (started with &!), so it cannot be controlled with ZSH job control tools. On bg-zsh it’s not disowned (started with plain &), which is the reason you are seeing something like this when starting zsh:

[4] 21581

Let’s try to figure out what’s going on. This must be something unusual as I’ve never seen reports of this kind. Please do the following.

  1. Update powerlevel10k to the latest version. If you’ve installed at the standard location, you can update it like this:
( cd $ZSH_CUSTOM/themes/powerlevel10k && git pull )
  1. Enable logging by adding GITSTATUS_LOG_LEVEL=DEBUG to your ~/.zshrc.
echo 'GITSTATUS_LOG_LEVEL=DEBUG' >>!~/.zshrc
  1. Restart zsh and trigger the error the same way you did it before.

  2. Type the following command and copy its output to this issue.

() {
  emulate -L zsh && setopt xtrace
  echo $ZSH_VERSION $ZSH_PATCHLEVEL
  uname -a
  ps --pid $GITSTATUS_DAEMON_PID_POWERLEVEL9K
  lsof -p $$
  lsof -p $GITSTATUS_DAEMON_PID_POWERLEVEL9K
  cat $GITSTATUS_DAEMON_LOG_POWERLEVEL9K
}