Comments (5)
Hey, thank you for reporting this issue.
Do you have the latest versions of both tmux-resurrect
and tmux-continuum
?
What is your status-interval
option value $ tmux -g show status-interval
?
I see you have set -g status-interval 5
in the tmux.conf
, but that is commented out.
About "double" saving - that could happen if status-interval
is low (5 seconds is low) and saving takes relatively long (5-10 seconds). Here's the possible scenario how that could happen:
- automatic saving starts and will take 10 seconds to complete
- in the meantime, another automatic save is started (because the first one is not done yet) and it duplicates entries in the
last
file
I think I addressed this possibility, but I will look into this again.
I will be pretty responsive over the weekend so your replies would be helpful @hoschi!
from tmux-continuum.
Hi,
I've been investigating and trying to reproduce this issue.
I've set very aggressive auto-save settings:
set -g status-interval 2
# tmux setting that influences how often last timestamp will be checkedset -g @continuum-save-interval '1'
# auto save happens every 60 seconds- I also have a large number of panes and windows so save takes around 5-7 seconds
I couldn't notice anything unusual with the "continuum" last
file. The content was all ok.
I've also inspected the code and after the first review I think we have mechanism in place that should prevent multiple saves happening at the same time..
So, can you please fetch latest tmux-continuum
and tmux-resurrect
versions and try this again? I'm curious about the results.
One other thing I noticed about your tmux.conf
: set -g @tpm_plugins "...
and run-shell ~/.tmux/plugins/tpm/tpm
lines should be at the very bottom of tmux.conf
.
It's possible set -g @continuum-restore 'on'
line was not detected because of that.
from tmux-continuum.
show -g status-interval
gives me '2' for the value. Man pages states it is 15, so I configured that in my tmux.conf now. Also I moved the lines down as you said. I removed resurrect and continuum from ~/.tmux/plugins
added and hit Ctrl-I
to install it again.
But I got the same result as before when the first continuum auto save takes place :(
This line is actually fake (because of privacy):
pane notes 1 :AA 0 :- 0 :/home/hoschi/Dropbox/notes 1 vim :vim /home/hoschi/foo.md
the dir name has a space in it. E.g. /home/hoschi/foo bar/foo.md
which leads to a wrong restore. It restores vim /home/hoschi/foo
instead of /home/hoschi/foo bar/foo.md
. I know this is restore, not save ... but this is the only thing I saw as secondary problem.
I have no other idea what can break continuum auto save. I thought of strange session names or so, but then resurrect should also fail.
from tmux-continuum.
Hi,
I also am experiencing the same problem. Every now and then I get triplicate entries the autosave file. This can be a real issue if this file is used by resurrect to recover a session. The worst case is when a vim session is recovered, the addition lines are send to vim and that can mess up a code file/document. in the I have made the following changes:
The end of my .tmux.conf:
set -g @resurrect-processes 'vifm ssh'
#set -g @resurrect-processes ':all:'
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-save-bash-history 'on'
set -g @continuum-restore 'on'
Save every thirty minutes
set -g @continuum-save-interval '30'
set -g @tpm_plugins '
tmux-plugins/tpm
tmux-plugins/tmux-sensible
tmux-plugins/tmux-resurrect
tmux-plugins/tmux-continuum
tmux-plugins/tmux-open
'
run-shell '~/.tmux/plugins/tpm/tpm'
from tmux-continuum.
We likely fixed this problem via #61. I'll close the issue now. If anyone reproduces this same problem again, please reopen.
from tmux-continuum.
Related Issues (20)
- Add support for Wezterm terminal HOT 1
- iTerm2 launch in fullscreen mode
- Issue while starting via shell configuration in Alacritty
- add option for working on multiple tmux server
- macOS Ventura: "Background Item Added" notification on each boot HOT 6
- Autostart session with a specific name?
- Customise status with time remaining HOT 4
- Systemd user service disabled even if not managed by continuum
- Restore to named session if name provided
- Programs are not restarting
- High CPU usage on MacOS after long sleep/hibernate time HOT 2
- Hardcoded DISPLAY Variable Issues
- XAUTHORITY environment variable is not set when using automatic tmux start with systemd HOT 2
- How to restore multiple tmux sessions independently and simultaneously
- Disable auto save before manual save session
- Warp terminal automatic startup script
- Auto-save on exit
- Save file is not created after timeout HOT 3
- Wezterm automatic startup script
- tmux-continuum doesn't work when .tmux.conf is a symbolic link in WSL 2 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmux-continuum.