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

VimuxOpenRunner doesn't work any more #225

Closed
matawed opened this issue Feb 27, 2024 · 13 comments
Closed

VimuxOpenRunner doesn't work any more #225

matawed opened this issue Feb 27, 2024 · 13 comments
Assignees

Comments

@matawed
Copy link

matawed commented Feb 27, 2024

It seems that my nvim/vimux setup is broken with #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
Copy link
Author

matawed commented Feb 27, 2024

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

@mvanderkamp
Copy link
Member

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

@matawed
Copy link
Author

matawed commented Feb 27, 2024

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
Copy link
Author

matawed commented Feb 27, 2024

Though -l size seems to be supported

image

but seems to be only for absolute values

image

@matawed
Copy link
Author

matawed commented Feb 28, 2024

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?

@mvanderkamp
Copy link
Member

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

@mvanderkamp
Copy link
Member

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%".

@jmriego
Copy link
Contributor

jmriego commented Jul 25, 2024

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

@alerque
Copy link
Member

alerque commented Jul 25, 2024

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.

@jmriego
Copy link
Contributor

jmriego commented Jul 25, 2024

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

@mvanderkamp
Copy link
Member

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.

@jmriego
Copy link
Contributor

jmriego commented Jul 26, 2024

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

@mvanderkamp
Copy link
Member

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.

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

4 participants