Open chiedo opened 9 years ago
We're getting close to a fix though! :)
Hey, oh I see you upgraded to tmux-continuum
, cool.
About environment not saving.. how did you check that? Save is done un-intrusively in the background so a spinner in tmux is not shown.
The way to check if "auto save" is working is to do $ ls -al ~/.tmux/resurrect
. Save files are stored in that dir. Files have timestamps in the name so you can verify when the last save happened.
I was gonna write you a couple other things you can try to debug a "auto save" feature.. but what do you say we do a quick session over google hangouts (or skype) and we debug both "auto save" and "auto restore" together? I can make 15 minutes for this anytime so let me know when you're free? Also drop me an email if you wanna send e.g. a skype username.
Hey man! Yeah, I was checking the autosaves by looking in the ~/.tmux/ressurect folder.
I think a session over Google hangouts sounds like a good call.
Just sent you an email!
After a Skype session, we have determined that something is going wrong here
It seems like the ampersand is being ignored because the script is not running asynchronously
Progress: I switched to tmux plugin manager and the plugin works like a charm, although, it doesn't restore my vim session. No big deal there though.
On that note, without the plugin manager, I was able to get things working by adding the following to the end of my tmux.conf file instead. The -b (background) flag seems to have had some affect. I'm not sure if that helps you at all. In either case, the plugin is mostly working with the plugin manager.
run-shell ~/.tmux/tmux-continuum/continuum.tmux
run-shell -b ~/.tmux/tmux-continuum/scripts/continuum_restore.sh
Thank you for the time today @chiedojohn.
I'll try to reproduce the issue with backgrounding on that line.
I forgot to ask, what bash
version you're running? Just $ bash --version
.
No prob man!
GNU bash, version 3.2.53(1)-release (x86_64-apple-darwin14)
I've opened a question for this on stackoverflow.
Perfect
I looked at the old tmux-resurrect-auto code and that used to work (and it uses backgrounding as well).
Well I am on 10.10.3 and it does not work here either.
But it's possible that OSX (or an Xcode CLI Tools) upgrade broke this somehow.
We've spent a lot of time trying to debug this. I never managed to reproduce this (also OSX 10.10.3). Any hint here is appreciated.
hmm so for you the auto-resurrect just works?
probably a starting point would be having the bash subscripts write logs to files, right?
Yea, everything works just fine for me. Both the "auto restore" and "restore after boot" features.
As for debugging auto restore, yea, the first step would be to put some debugging lines into the main script and this script and see what gets executed and what not.
IIRC when we last debugged the main issue was that the continuum_restore.sh
script wasn't executing properly in the background. That background invocation is here and I couldn't figure out why that doesn't work for some users.
Haha my machine locked up again because I forgot to force the Nvidia GPU again, and this time when it booted the auto restore worked! Hopefully that means auto save will also work (I do know how to check that).
Good to hear that things actually work for you.
You can check if auto save by checking the timestamp of ~/.tmux/resurrect/last
file. Execute this command:
ls -al ~/.tmux/resurrect/last
And check the hour and minutes. Auto save saves in an interval of 15 minutes by default so if you check the file again in 15-20 minutes the timestamp should be updated.
People haven't reported many issues about auto-save, so I think that one should work (but please let us know).
Hello, I facing the same issues on OSX. tmux version 2.1
This code works, however described in the docs methods with plugin manager won't.
run-shell ~/.tmux/tmux-continuum/continuum.tmux
run-shell -b ~/.tmux/tmux-continuum/scripts/continuum_restore.sh
I am using continuum on top of https://github.com/skwp/dotfiles, plugin loading through ~/.tmux.conf.user:
run-shell '~/.tmux/plugins/tmux-resurrect/resurrect.tmux'
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-strategy-nvim 'session'
run-shell '~/.tmux/plugins/tmux-continuum/continuum.tmux'
run-shell -b '~/.tmux/plugins/tmux-continuum/scripts/continuum_restore.sh'
set -g @continuum-boot 'on'
set -g @continuum-boot-options 'iterm'
set -g @continuum-restore 'on'
I have installed tmux-resurrect and tmux-continuum-master plugin. I am having below issues.
Please help if its possible to restore the ssh state as thats the only thing I want when I meant 'restore'
Another point is that, continuum doesn't save or restore sessions automatically. when I set the status in my status bar, I don't see any status (duration or on/off) . So I guess its not working?
Hi, first time using continuum (already resurrect user). After installing and adding continuum status it showed me as off. I had to set the save interval to 15 on tmux.conf to have it working.
The documentation is not very clear at this point, I though just installing it (and reloading tmux.conf) should have started the process.
Hey man! The good news is that the following now works
The bad news is that tmux is starting when I restart my computer but still isn't automatically doing the tmux resurrect.
On that note, I also noticed that with my autosaves didn't seem to be happening so I set my interval to 1 to confirm and no autosaves happen. That may give you a clue?
Below is my updated .tmux.conf.