Hello @Sajoku, I believe this is the expected behavior, but to confirm, you are doing the following:
- Run spec (with the specific rspec_command)
- Close the rspec / runner pane manually
- Attempt to run a spec from vim again
and you are seeing the error message. This is expected. VTR remembers the pane and expects it to exist. Before sending commands, it checks that the pane exists and things haven’t shifted around to prevent sending to the wrong window.
All that said, you have two options if you want to be able to dismiss the window but still run tests:
- Manually open and attach to a pane with the
:VtrAttachToPanecommand. If there is only one other (non-vim) pane, it will automatically select, otherwise it will prompt for the pane to attach to. Tests should run fine after that - Rather than killing the runner pane, use the
:VtrDetachRunnercommand. This will break the runner pane out into a new window, but on the next spec run it will automatically restore it.
Hope that helps