tmux-resurrect: Error when restoring pane content
When I restore the session, an error message appears at the top of all the panes which says a file or directory could not be found.
This is what I have in .tmux.conf:
set -g @resurrect-strategy-vim 'session' # save vim sessions (may require the tpope/vim-obsession plugin)
set -g @resurrect-strategy-nvim 'session' # save neovim sessions (may require the tpope/vim-obsession plugin)
set -g @resurrect-capture-pane-contents 'on' # save pane contents
set -g @continuum-restore 'on' # restore session on tmux start
set -g @continuum-save-interval '5' # save session every 5 minutes (default is 15)

About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 8
- Comments: 37 (5 by maintainers)
Commits related to this issue
- remove pane contents cleanup to repair restore as suggested in https://github.com/tmux-plugins/tmux-resurrect/issues/141 — committed to Mellbourn/tmux-resurrect by deleted user 7 years ago
- fix: pane_content not being restored Taken from this https://github.com/Mellbourn/tmux-resurrect/commit/0a6f90788f03caadde81b9e43e7cfd5ff85a9f7c and this https://github.com/tmux-plugins/tmux-resurrec... — committed to BarbzYHOOL/tmux-resurrect by BarbzYHOOL 6 years ago
- fix: pane_content not being restored (#1) * Remove useless command in save.sh * fix: pane_content not being restored Taken from this https://github.com/Mellbourn/tmux-resurrect/commit/0a6f90788... — committed to BarbzYHOOL/tmux-resurrect by BarbzYHOOL 6 years ago
- Fix #141 The issue apprently happens when using fish as the default shell. This commit fixes this issue by postponing `restore/pane_contents` clean-up after calling `restore_active_pane_for_each_wind... — committed to cartoonist/tmux-resurrect by cartoonist 3 years ago
- Merge pull request #422 from cartoonist/master Fix #141 — committed to tmux-plugins/tmux-resurrect by bruno- 3 years ago
@Starefossen @ariesdevil Since the developer, @bruno-, is not responding to this bug anymore, the only solution I’ve found is to just stay on
7a8d90a. You can do that via:I am really perplexed as to why this bug hasn’t been fixed yet. There is a clear point of regression and there has been more than ample time to determine the issue. This bug has been open for about
a year and a halftwo years now, so I am really confused as to the radio silence that this issue has received.For some reasons (which are unknown to me), postponing restore/pane_contents clean-up after calling
restore_active_pane_for_each_window(scripts/restore.sh:392) fixed the issue for me. That is:I have to mention that the plugin used to work perfectly when I was using bash, but it fails to restore pane contents using fish as the default shell. This patch fixed this issue for both bash and fish for me.
I tested on macos 12.1 using tmux 3.2a and fish 3.3.1.
@bruno- Sorry, you’re right about my last comment being unclear; I just reread it myself and it didn’t make sense until I read it yet again. Let me try to clarify:
What I mean is that whenever I use a version later than
7a8d90a, things are broken again. I.e., I’m currently stuck at7a8d90a, because whenever I update (it doesn’t matter if I update tomaster,b7a4ee2, or anything else), I get the same old error when I try to restore my panes:The
pane_contents.tar.gzfile seems to contain the right things though.Sure.
Yeah I mean I wouldn’t even call it a workaround, doesn’t hurt any functionality and just brings pane_contents down to the same level as the rest of the plug, not cleaning up old unused files. Non-issue in both cases, but even more so here since any dangling files will just get overwritten anyways once you recreate a pane with the same index.