Closed chardskarth closed 6 months ago
Try updating tmux. I cannot reproduce on tmux 3.4
I'm getting the same issue on tmux v3.4. Neovim exits with a 134
with smart-splits v1.3.1, 0
on smart-splits v1.3.0.
I started investigating this in the first place because this seems to also be responsible for breaking things that open the $EDITOR in the middle of the command like git commit --amend
. Again, that all works on v1.3.0, but on v1.3.1 I get something like this:
$ git commit --amend
hint: Waiting for your editor to close the file... error: There was a problem with the editor 'nvim'.
Please supply the message using either -m or -F option.
I've also confirmed that commenting out the body of the on_exit
method fixes both of my problems. I'm not sure why, as the logs don't indicate that these tmux commands are failing and running them manually seems to work as expected.
I haven't updated my tmux config to use the new @pane-is-vim
stuff yet. Not sure if that's important or not.
Ah, I probably need to check if the vim loop has exited already before checking the error
Thanks for investigating!
@tlindsay could you please test #159 and let me know if that fixes the issue?
If that doesn't fix it we can try the workaround here: https://github.com/neovim/neovim/issues/21856#issuecomment-1514723887
@mrjones2014 Nope, still getting the error...
$ tmux -V
tmux 3.4
$ git commit --amend
hint: Waiting for your editor to close the file... error: There was a problem with the editor 'nvim'.
Please supply the message using either -m or -F option.
Oh! But the exit code is now 1
instead of 134
....
Okay, I've added the workaround I linked, can you test again?
@mrjones2014 Yep, that did the trick! Thanks!
Similar Issues
Neovim Version
Multiplexer Integration
tmux
Multiplexer Version
tmux 3.3a
Steps to Reproduce
Expected Behavior
System should exit without any error status code
Actual Behavior
Exits with more than 0 status code
Minimal Configuration to Reproduce
Additional Details and/or Screenshots
No response