vim-tmux-runner icon indicating copy to clipboard operation
vim-tmux-runner copied to clipboard

`VtrOpenRunner` doesn't work on `[email protected]`

Open sarumont opened this issue 1 year ago • 7 comments
trafficstars

When I attempt to execute VtrOpenRunner, it no longer opens a pane. When I attempt to execute VtrSendCommandToRunner after VtrOpenRunner:

VTR: Runner pane setting (1) is invalid. Please reattach or run VtrUnsetRunnerPane.

The only way I can get VTR working is to manually open a pane and use VtrAttachToPane.

Any insights here or additional debugging necessary? I can reproduce this with an empty tmux config (haven't stripped my nvim config down, but I don't change any VTR settings in that).

sarumont avatar Mar 26 '24 16:03 sarumont

Hmm, this does seem to be broken. Thanks for reporting! I imagine I missed this as my personal workflow is more explicit these days (I always run some variation of VtrAttachToPane) so I've not bumped into it.

I'll try to take a look soon, but honestly not sure when this broke or what's going on. Would welcome any help, but otherwise I'll certainly update this issue when I get a chance to dig in further.

christoomey avatar Mar 26 '24 22:03 christoomey

Digging a little more, it could have presented with an upgrade from tmux 3.3a -> 3.4. The CHANGELOG is fairly significant here. :)

I'll try to get 3.3a installed on my machine again to confirm this theory...

sarumont avatar Mar 27 '24 16:03 sarumont

OK, that didn't take as much effort as I thought it would. It is definitely caused by the upgrade to 3.4 -- everything works fine on 3.3a. I can use the older tmux for now. Let me know if you need any further help - I'm hoping something obvious to you pops out of that CHANGELOG :)

sarumont avatar Mar 27 '24 16:03 sarumont

@sarumont , @christoomey

Changing the -p option to -l option worked for me. I am running tmux 3.4.

 let cmd = join(["split-window -p", s:vtr_percentage, "-".s:vtr_orientation])
 let cmd = join(["split-window -l", s:vtr_percentage, "-".s:vtr_orientation])

Traap avatar Apr 10 '24 04:04 Traap

I added a pull request. My change work as expected with Vim and NeoVim.

Traap avatar Apr 10 '24 04:04 Traap

And for anyone who ends up here looking to downgrade from 3.4 to 3.3a

brew uninstall --ignore-dependencies tmux
# Download formula just before the changes for 3.4
curl -o tmux.rb https://raw.githubusercontent.com/Homebrew/homebrewcore/defd6d81be1be58f137bef2fa2dc389100d0125b/Formula/t/tmux.rb
brew install tmux.rb

jayroh avatar Apr 18 '24 20:04 jayroh

And for anyone who ends up here looking to downgrade from 3.4 to 3.3a

brew uninstall --ignore-dependencies tmux
# Download formula just before the changes for 3.4
curl -o tmux.rb https://raw.githubusercontent.com/Homebrew/homebrewcore/defd6d81be1be58f137bef2fa2dc389100d0125b/Formula/t/tmux.rb
brew install tmux.rb

Hi @jayroh,

I noticed that your gist link is returning a 404 error. Could you please provide a new link?

Thank you!

joaotorquato avatar Jul 08 '24 12:07 joaotorquato