tmuxinator: Can't find pane 0

After starting a session I get a can't find pane 0 message in the console. I don’t observe any other issues then the message: windows and panes are created, and programs are started. I think the bug is related to the fact I change base-index and pane-base-index to 1, since when I remove the settings, the message doesn’t appear.

Linux (Arch); tmux 2.3; tmuxinator 0.9.0; configuration files

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 8
  • Comments: 19

Commits related to this issue

Most upvoted comments

Just ran into this issue as well. In my particular case, I needed to format my project’s yml file properly. It seems as if the yaml parser is pretty strict about spacing, but I didn’t see any formatting errors. I also needed to set the startup_pane directive to 1. I’ve been getting around the issue described by @muellerj by manually cding in each pane/window:

name: example
startup_pane: 1

windows:
  - one
      layout: main-vertical
      panes:
        - cd "<%= @args[0] %>" && actual-command 
        - cd "<%= @args[0] %>" && actual-command
mux start example "$(pwd)"

or even…

alias dev='mux start example "$(pwd)"'

Adding startup_pane: 1 removed the error for me. Thanks for the tip @cyrossignol.

~/.tmux.conf looks has the following:

set-option -g base-index 1
set-window-option -g pane-base-index 1

~/.tmuxinator/test.yml looks like:

name: test
root: ~/tmp/
startup_pane: 1

windows:
  - testing:
      root: ~/Projects/testing/
      layout: main-horizontal
      panes:
        -
        -
  - ansible:
      root: ~/Projects/ansible/
      layout: main-horizontal
      panes:
        -
        -

I’m running macOS 10.12.5 with the following versions:

$ tmux -V
tmux 2.5

$ gem list | grep tmuxinator
tmuxinator (0.9.0)

+1 macOS; tmux 2.3; tmuxinator 0.9.0

In my Mac, this NOT work:

set -g base-index 1
set-option -g base-index 1
set-window-option -g pane-base-index 1

set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
set-option -g default-command "reattach-to-user-namespace -l zsh"

refs: https://github.com/tmuxinator/tmuxinator/issues/137

I experience this as well using the following in my tmux.conf.

set -g base-index 1
set-window-option -g pane-base-index 1