Open yuujay opened 3 years ago
If you're using VtrOpenRunner
then it should automatically attach to the newly opened pane. Looks like something is going wrong as the runner pane is set to 0. Did you by any chance rearrange the tmux panes after running VtrOpenRunner?
That was the puzzling part for me. Right after is open the runner with VtrOpenRunner
I am unable to the sendLine command. No, I did not rearrange the panes.
Anywhere I could look for logs or debug in some way?
Can you check what the output of tmux list-panes
is. Specifically, with vim open in one pane and another pane with a shell prompt, run the command in the shell and see what it outputs?
Having neovim opened
[I] json@internet-log ~/.c/fish> tmux list-panes
0: [204x37] [history 0/2000, 0 bytes] %0
1: [204x9] [history 0/2000, 0 bytes] %2 (active)
0: - This is the pane index of neovim
1: - This is the index for the runner that I opened with `VtrOpenRunner`
Having vim opened
[I] json@internet-log ~/.c/fish> tmux list-panes
0: [204x37] [history 0/2000, 0 bytes] %5
1: [204x9] [history 0/2000, 0 bytes] %6 (active)
0: - This is the pane index of vim
1: - This is the index for the runner that I opened with `VtrOpenRunner`
Looks like the index is same when I open runner with both vim and neovim. But for some reason, it doesn't work in neovim.
Hmm, yeah nothing in that stands out. Are you able to try in vim (rather than neovim), just to see if there might be something going on there?
I had vtr installed on my macOS and have been using it fine with Vim. Recently, I started using neovim, and when I tried to use the
VtrSendLinesToRunner
on neovim I am receiving the following errorVTR: Runner pane setting (0) is invalid. Please reattach.
However, I am to open runner from neovim using the:VtrOpenRunner
API.Do I have to set the pane index specifically on neovim?
UPDATE I had to manually attach the runner pane using
VtrAttachToPane
before I could use the VtrSendLines or VtrSendCommand APIs.Can this VtrAttachToPane action automatically from neovim?