jimeh / tmuxifier

Tmuxify your Tmux. Powerful session, window & pane management for Tmux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot load a session layout

jvillasante opened this issue · comments

I'm trying tmuxinator for the first time but I can't load a session layout, these are the steps to reproduce:

# Create new layout called "test"
tmuxifier new-session test

# Edit the session file as follow:
echo "1: $(tmux ls)"
initialize_session "test"; echo "2: $(tmux ls)"
finalize_and_go_to_session; echo "3: $(tmux ls)"

# Try to load the session
tmuxifier load-session test

# Output
1: Default: 1 windows (created Tue Feb 21 21:37:33 2023) (attached)
2: Default: 1 windows (created Tue Feb 21 21:37:33 2023) (attached)
test: 1 windows (created Tue Feb 21 21:50:03 2023)
can't find session: test
  1. My current Default session is the only one
  2. After calling initialize_session "test", the test session was created
  3. Somehow finalize_and_go_to_session seems to fail and I always get the same error: can't find session: test

tmux is left in the initial sate (e.g. only my Default session exists after the scripts fails)