Skip to content
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

Ignore 'pane already closed' error in VimuxCloseOnExit #236

Open
remko opened this issue Dec 6, 2024 · 1 comment
Open

Ignore 'pane already closed' error in VimuxCloseOnExit #236

remko opened this issue Dec 6, 2024 · 1 comment

Comments

@remko
Copy link

remko commented Dec 6, 2024

I use Vimux for running vim-test, which uses vimux to spawn a new pane when running tests.
I want to automatically close the forked vimux tab when exiting nvim, so i set VimuxCloseOnExit.
However, if i already closed the pane (sometimes during a session i close the pane myself), i get an error when exiting nvim:

Error detected while processing VimLeave Autocommands for "*"..function <SNR>43_autoclose[2]..VimuxCloseRunner[2]..VimuxTmux[8]..VimLeave Autocommands for "*"..function <SNR>43_autoclose[2]..VimuxCloseRunner[2]..VimuxTmux:
E605: Exception not caught: Tmux command failed with message:can't find pane: %15^@

Is there a way to ignore this error?
Can it be ignored by default? (i don't think this error is very useful when using VimuxCloseOnExit)

@mvanderkamp
Copy link
Member

Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants