christoomey / vim-tmux-runner

Vim and tmux, sittin' in a tree...
MIT License
291 stars 37 forks source link

No new pane is being created #41

Closed aaronmcadam closed 9 years ago

aaronmcadam commented 9 years ago

Hi, according to the documentation, VtrSendCommandToRunner should open a new runner pane. However, I just keep on seeing the error VTR: No runner pane attached. Am I missing something?

aaronmcadam commented 9 years ago

I should also mention that I'm trying to use vim-spec-runner, I've configured it like this: let g:spec_runner_dispatcher = 'VtrSendCommandToRunner("{command}")'

christoomey commented 9 years ago

Hey @aaronmcadam, short version is you can switch your spec-runner configuration to:

let g:spec_runner_dispatcher = "VtrSendCommand! {command}"

Longer version is you happened to catch me in the midst of a large refactoring, and as part of it I've removed the implicit opening of a runner pane.

This functionality (creating a pane if one does not exist) has been made explicit via "bang" versions of the commands. So :VtrSendCommandToRunner will present the warning you listed as it expects an existing runner pane, and `:VtrSendCommandToRunner! will create one if it doesn't exist.

Hope this covers your issue. Please reopen or comment if you still hit the issue. I'll be updating the docs very soon to avoid this for future users. Thanks for reporting.

aaronmcadam commented 9 years ago

Brilliant, thanks for the quick reply @christoomey!