lazygit: "panic: close of nil channel" running lazygit in zsh

Describe the bug Basically just the title… running lazygit in zsh 5.8 on macOS. It could be something with my go config - I’m a total go newbie.

To Reproduce Steps to reproduce the behavior:

  1. Install lazygit via homebrew (brew install lazygit)
  2. Run lazygit
  3. Receive the following error:
panic: close of nil channel

goroutine 1 [running]:
github.com/jesseduffield/lazygit/pkg/gui.(*Gui).RunWithSubprocesses(0xc0001984e0, 0x0, 0x0)
        /Users/gary/code/go/src/github.com/jesseduffield/lazygit/pkg/gui/gui.go:382 +0x115
github.com/jesseduffield/lazygit/pkg/app.(*App).Run(0xc00027fc70, 0xc0000d8800, 0x0)
        /Users/gary/code/go/src/github.com/jesseduffield/lazygit/pkg/app/app.go:165 +0x6b
main.main()
        /Users/gary/code/go/src/github.com/jesseduffield/lazygit/main.go:70 +0x7f3

Expected behavior lazygit should open my repo

Desktop (please complete the following information): macOS 10.15.5 lazygit 0.20.4

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 21

Most upvoted comments

@mjarkk @nagy135 Mine ended up being an issue with my $TERM setting- sorry I didn’t update the post!

Adding set -g default-terminal "xterm-256color" to .tmux.conf worked 🙂

So little summary: it started happening after 50day uptime reboot (so it might be anything there) happens in any terminal, any shell happens inside tmux only, yielding exception in first comment happens on any version I tried on my Arch : lazygit, lazygit-git, also installed by go get

  • git version 2.26.2
  • go version go1.14.3 linux/amd64
  • tmux 3.1b
  • Happens in both sshkey case, also in case where I use login/pass

If you d like to see something else feel free to ask. So far I m clueless …reboot does not help but is not a really big deal, I m just used to use tmux so its sad to need separate terminal