tmux-plugins / tmux-resurrect

Persists tmux environment across system restarts.
MIT License
11.42k stars 424 forks source link

tmux 3.1 compatibility #339

Open wizonesolutions opened 4 years ago

wizonesolutions commented 4 years ago

I'm wondering if there are incompatibilities with tmux 3.1. When I restart, my session is not getting properly restored (it seems that my save is being deleted; see screenshot).

image

I manually fix the symlink and then restart tmux, but I have to do this every time.

I also use tmux-continuum. Please let me know what details you need to see.

Edit: Also, the pane structure gets restored, but my window history seems to be gone.

JoeKnowsThings commented 4 years ago

Using tmux v2.8 on WSL DEBIAN, fresh install just now. fresh install on plugins too, which includes resurrect and continuum. No plug ins are currently working, including these 2.

Funny thing is, I just installed the plug-ins last night on a different distro and they seem to work well. That is tmux 3.1a. on WSL WLinux.

JoeKnowsThings commented 4 years ago

OK, My TMUX is now working as expected, but still onv2.8. Plugins are actually saving and restoring session, windows, and panes. I had to completely wipe tmux plugin directory to achieve this. When deleting the directory, I had an error that some of the directories were write protected. Why?

klappradla commented 3 years ago

Edit: Also, the pane structure gets restored, but my window history seems to be gone.

I had the same problem after updating to tmux 3.1c @wizonesolutions and I'm also using tmux-resurrect in conjunction with tmux-continuum.

To me, the "problem" seemed to be more on the side of the tmux-continuum plugin though - manually saving and restoring without restarting my machine and / or relying on tmux-continuum still worked fine after the update, also maintaining the pane structure.

Not sure if this applies for you, but what "fixed" it for me, was to move set -g @plugin 'tmux-plugins/tmux-continuum' at the end of the list of plugins I load in my .tmux.conf file. In addition to that, I removed all the contents of the ~/.tmux/resurrect directory 🤷. After manually creating the first save, also the ones created via continuum worked again and restored the exact pane layouts.