tmux-plugins / tmux-resurrect

Persists tmux environment across system restarts.
MIT License
11.2k stars 418 forks source link

restore reports success but does not restore #513

Open meangrape opened 2 months ago

meangrape commented 2 months ago

The plugin saves and creates a new ~/.tmux/resurrect/...txt file. The symlink to last is created. Restoration fails to make any changes to my tmux layout. I've uninstalled and reinstalled the plugin.

tmux-resurrect version cff343cf9e81983d3da0c8562b01616f12e8d548

tmux version tmux 3.4

macOS version Sonoma 14.5; Apple M1 Silicon

Steps to reproduce I save state <PREFIX>+<CTRL-S> and the status line reports a successful save. I make a change by adding a window. I attempt to restore <PREFIX>+<CTRL-R> and the status line reports success. However no changes are made; I still have three windows and not two.

additional info If I make a change and save an additional resurrection file, it correctly reflects the new tmux state. So if I add a new pane, the new pane's description is saved. (So the plugin correctly saves the state repeatedly.)

resurrect file that is not restored

pane    0       0       0       :-      0       merlot.local    :/Users/jayed   1       zsh     :
pane    0       1       1       :*      0       merlot.local    :/Users/jayed   1       zsh     :
window  0       0       :zsh    0       :-      c8bd,171x47,0,0,0       :
window  0       1       :zsh    1       :*      c8be,171x47,0,0,1       :
state   0

tmux.conf

  unbind C-b
  set-option -g prefix C-a
  bind-key C-a send-prefix

  unbind C-\\

  set -g @plugin 'tmux-plugins/tmux-tpm'
  set -g @plugin 'tmux-plugins/tmux-resurrect'

  run '~/.tmux/plugins/tpm/tpm'
ca5ua1 commented 1 month ago

I have almost same issue but in a more severe way and happens pretty randomly For me after reboot, especially after nixos-rebuild switch tmux dones't restore itself and last points to nonexistent file OS: NixOS