vimux icon indicating copy to clipboard operation
vimux copied to clipboard

VimuxOpenRunner doesn't work any more

Open matawed opened this issue 1 year ago • 7 comments

It seems that my nvim/vimux setup is broken with https://github.com/preservim/vimux/pull/217. If I run VimuxOpenRunner it silently fails, meaning that no terminal is opened.

Once I revert this change locally, my setup works again, meaning that terminal is opened as expected.

Tmux version 3.0a/ Ubuntu 20.04

matawed avatar Feb 27 '24 13:02 matawed

Will provide more details upon request/once I have more time to check details.

matawed avatar Feb 27 '24 13:02 matawed

Some more details would be helpful, can you share your configuration?

mvanderkamp avatar Feb 27 '24 16:02 mvanderkamp

Steps to reproduce on Ubuntu 20.04 with tmux 3.0a

cd ~/.vim/
mkdir -p pack/vimux/start
git clone https://github.com/preservim/vimux

vim -V9/tmp/vim.txt

produces

vim.log

if you do

:VimuxOpenRunner

The problematic command is

tmux split-window -l 20% -v

See

image

matawed avatar Feb 27 '24 17:02 matawed

Though -l size seems to be supported

image

but seems to be only for absolute values

image

matawed avatar Feb 27 '24 17:02 matawed

Naive approach for fixing this issue is to check the exit code of this command and if it fails then issue the other command. I guess, it would be helpful in any case to check exit code and not only silently fail in this case. What do you think?

matawed avatar Feb 28 '24 12:02 matawed

Ahh, thank you. I think I'll put a conditional in there based on the tmux version.

mvanderkamp avatar Feb 28 '24 21:02 mvanderkamp

You know what... should we just say that it's up to the user to decide whether to include the percent sign? This will be a bit of a hiccup when the plugin is updated, since setting let g:VimuxHeight = "20" will have to change to let g:VimuxHeight = "20%".

mvanderkamp avatar Apr 10 '24 18:04 mvanderkamp

hi! is this change going to be merged? I just found this same issue with tmux 3

jmriego avatar Jul 25 '24 08:07 jmriego

is this change going to be merged?

Which change? This is not a PR and I don't see any PRs related to this issue. Contributions welcome. I am not actively developing this plugin but this @preservim org exists to facilitate contributions getting applied so plugins stay maintained as long as contributions flow in. Feel free to jump in.

alerque avatar Jul 25 '24 08:07 alerque

I don't see any PR either. I was basically asking if anyone was working on this. I'm happy to do a PR. I'll send it this weekend

jmriego avatar Jul 25 '24 15:07 jmriego

Yeah sorry, I got distracted by the CI issues on this repo and forgot about this. It would be great to see a PR! We do now check for errors in system calls as of #222 so that could be helpful here.

mvanderkamp avatar Jul 25 '24 17:07 mvanderkamp

no worries! just sent a PR. English is not my first language so I'm not sure if the update to the docs sounds natural

jmriego avatar Jul 26 '24 07:07 jmriego

Thank you! This does mildly break the config for users who have a custom value for the height option, but the fix is easy and this keeps things simpler going forward.

mvanderkamp avatar Jul 26 '24 22:07 mvanderkamp