tmuxinator: tmuxinator not working with tmux 1.9a

i’ve updated tmux from version 1.8 to 1.9a using homebrew… but tmuxinator stopped creating the panels or windows correctly

simple workaround is to use brew switch tmux 1.8

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Comments: 27

Most upvoted comments

Those protocol mismatch errors make it seem like to me that you haven’t restarted your tmux server. So you’re using a new client and trying to connect to an old version of the server.

On 30 May 2014, at 2:28 am, Ahmed Abdel Razzak notifications@github.com wrote:

here is my .tmux.conf

set -g default-terminal “xterm-256color”

start indexing from 1 not 0

set -g base-index 1 set -g pane-base-index 1 and here is a project file that doesn’t create the 2nd and 3rd windows on 1.9a only creates the first window with it’s panes correctly

~/.tmuxinator/ask.yml

name: ask root: ~/Vagrant/ruby/www/Backend

Optional tmux socket

socket_name: foo

Runs before everything. Use it to start daemons etc.

pre: sudo /etc/rc.d/mysqld start

Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.

pre_window: rbenv shell 2.0.0-p247

Pass command line options to tmux. Useful for specifying a different tmux.conf.

tmux_options: -f ~/.tmux.conf

Change the command to call tmux. This can be used by derivatives/wrappers like byobu.

tmux_command: byobu

windows:

  • server: layout: 5f72,181x55,0,0{50x55,0,0,0,130x55,51,0,3} panes: - zeus start #- tail -f log/development.log -
  • foreman: foreman start -f Procfile.dev # *** NOT CREATED ***
  • grunt: cd …/webapp && grunt server # *** NOT CREATED *** and here is the mux debug ask

protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) protocol version mismatch (client 8, server 7) #!/usr/local/bin/bash tmux -f ~/.tmux.conf start-server; has-session -t ask 2>/dev/null

if [ “$?” -eq 1 ]; then cd ~/Vagrant/ruby/www/AskNative/Backend

Run pre command.

Create the session and the first window.

TMUX= tmux -f ~/.tmux.conf new-session -d -s ask -n server

Set the default path.

tmux -f ~/.tmux.conf set-option -t ask default-path ~/Vagrant/ruby/www/AskNative/Backend 1>/dev/null

Create other windows.

tmux -f ~/.tmux.conf new-window -c ~/Vagrant/ruby/www/AskNative/Backend -t ask:1 -n foreman tmux -f ~/.tmux.conf new-window -c ~/Vagrant/ruby/www/AskNative/Backend -t ask:2 -n grunt

Window “server”

tmux -f ~/.tmux.conf send-keys -t ask:0.0 zeus\ start C-m

tmux -f ~/.tmux.conf splitw -t ask:0 tmux -f ~/.tmux.conf select-layout -t ask:0 5f72,181x55,0,0{50x55,0,0,0,130x55,51,0,3}

tmux -f ~/.tmux.conf select-layout -t ask:0 5f72,181x55,0,0{50x55,0,0,0,130x55,51,0,3}

tmux -f ~/.tmux.conf select-pane -t ask:0.0

Window “foreman”

tmux -f ~/.tmux.conf send-keys -t ask:1 foreman\ start\ -f\ Procfile.dev C-m

Window “grunt”

tmux -f ~/.tmux.conf send-keys -t ask:2 cd\ …/webapp\ &&\ grunt\ server C-m

tmux -f ~/.tmux.conf select-window -t 0 fi

if [ -z “$TMUX” ]; then tmux -f ~/.tmux.conf -u attach-session -t ask else tmux -f ~/.tmux.conf -u switch-client -t ask fi — Reply to this email directly or view it on GitHub.