Skip to content

Crash when opening lazygit in a new tmux-window or pane #4529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Rocco-Gossmann opened this issue May 3, 2025 · 4 comments
Open

Crash when opening lazygit in a new tmux-window or pane #4529

Rocco-Gossmann opened this issue May 3, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@Rocco-Gossmann
Copy link

Describe the bug

I like to use lazygit in combination with tmux and NeoVim.
So I have a shortcut in neovim, to open lazygit in a new TMUX-Window.

!tmux new-window 'lazygit'

Unfortunately, for a while now, this does not work.
After a bit of testing, I was able to extract this error message here.

2025/05/03 07:19:17 An error occurred! Please create an issue at: https://github.com/jesseduffield/lazygit/issues

*exec.ExitError exit status 1
github.com/jesseduffield/lazygit/pkg/app/app.go:55 (0x104d208c4)
github.com/jesseduffield/lazygit/pkg/app/entry_point.go:168 (0x104d223c0)
github.com/jesseduffield/lazygit/main.go:23 (0x104d235e8)
internal/runtime/atomic/types.go:194 (0x1045b4fe4)
runtime/asm_arm64.s:1223 (0x1045f2b54)

To Reproduce
1.) Start a TMUX-Session.
2.) Enter:

tmux split-pane 'lazygit || zsh'

Expected behavior
Not crash.

Screenshots
Image

Version info:
lazygit --version
commit=, build date=, build source=Homebrew, version=0.50.0, os=darwin, arch=arm64, git version=2.39.5 (Apple Git-154)

git --version
git version 2.39.5 (Apple Git-154)

tmux -V
tmux 3.5a

Additional context

I've also run the --debug mode, but I only got these logs here

May  3 07:35:55 |DEBU| RunCommand command="git --version"
May  3 07:35:55 |INFO| git --version (18.643666ms)
May  3 07:35:55 |DEBU| RunCommand command="git -C /Users/st/DEV/1_workspaces/PHP/playingaround rev-parse --path-format=absolute --show-toplevel --absolute-git-dir --git-common-dir --is-bare-repository --show-superproject-working-tree"
May  3 07:35:55 |INFO| git -C /Users/st/DEV/1_workspaces/PHP/playingaround rev-parse --path-format=absolute --show-toplevel --absolute-git-dir --git-common-dir --is-bare-repository --show-superproject-working-tree (15.516666ms)
May  3 07:35:55 |ERRO| *exec.ExitError exit status 1
github.com/jesseduffield/lazygit/pkg/app/app.go:55 (0x1031a48c4)
github.com/jesseduffield/lazygit/pkg/app/entry_point.go:168 (0x1031a63c0)
github.com/jesseduffield/lazygit/main.go:23 (0x1031a75e8)
internal/runtime/atomic/types.go:194 (0x102a38fe4)
runtime/asm_arm64.s:1223 (0x102a76b54)
@Rocco-Gossmann Rocco-Gossmann added the bug Something isn't working label May 3, 2025
@drowning-cat
Copy link

Can you also try using the latest compiled version of tmux?

@Rocco-Gossmann
Copy link
Author

Can you also try using the latest compiled version of tmux?

What do you mean? The latest release, as of this time, is version 3.5a, which is what I'm using.
Is there any other official downloads?

@drowning-cat
Copy link

drowning-cat commented May 8, 2025

  1. Install tmux from version control (see README.md):

    From version control

    To get and build the latest version from source, note that this requires
    autoconf, automake, and pkg-config:

    git clone https://github.com/tmux/tmux.git  
    cd tmux  
    sh autogen.sh  
    ./configure && make  
  2. These commands will build the tmux binary inside the cloned folder.

  3. Terminate any running tmux sessions with: tmux kill-server

  4. You can test tmux with: ./tmux (./tmux --version tmux -V)

@Rocco-Gossmann
Copy link
Author

  1. Install tmux from version control (see README.md):
    > ### From version control
    > To get and build the latest version from source, note that this requires
    > autoconf, automake, and pkg-config:
    > git clone https://github.com/tmux/tmux.git
    > cd tmux
    > sh autogen.sh
    > ./configure && make

    1. These commands will build the tmux binary inside the cloned folder.

    2. Terminate any running tmux sessions with: tmux kill-server

    3. You can test tmux with: ./tmux (./tmux --version)

Sorry, don't have C Dev Environment set up. I'm just a TMUX user reporting an Issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants