Coder Social home page Coder Social logo

Comments (18)

mdkcore0 avatar mdkcore0 commented on July 17, 2024 1

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.

from tmux-continuum.

chiedo avatar chiedo commented on July 17, 2024

We're getting close to a fix though! :)

from tmux-continuum.

bruno- avatar bruno- commented on July 17, 2024

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.

from tmux-continuum.

chiedo avatar chiedo commented on July 17, 2024

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!

from tmux-continuum.

chiedo avatar chiedo commented on July 17, 2024

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

from tmux-continuum.

chiedo avatar chiedo commented on July 17, 2024

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

from tmux-continuum.

bruno- avatar bruno- commented on July 17, 2024

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.

from tmux-continuum.

chiedo avatar chiedo commented on July 17, 2024

No prob man!

GNU bash, version 3.2.53(1)-release (x86_64-apple-darwin14)

from tmux-continuum.

bruno- avatar bruno- commented on July 17, 2024

I've opened a question for this on stackoverflow.

from tmux-continuum.

chiedo avatar chiedo commented on July 17, 2024

Perfect

from tmux-continuum.

unphased avatar unphased commented on July 17, 2024

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.

from tmux-continuum.

bruno- avatar bruno- commented on July 17, 2024

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.

from tmux-continuum.

unphased avatar unphased commented on July 17, 2024

hmm so for you the auto-resurrect just works?

probably a starting point would be having the bash subscripts write logs to files, right?

from tmux-continuum.

bruno- avatar bruno- commented on July 17, 2024

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.

from tmux-continuum.

unphased avatar unphased commented on July 17, 2024

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).

from tmux-continuum.

bruno- avatar bruno- commented on July 17, 2024

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).

from tmux-continuum.

andrius avatar andrius commented on July 17, 2024

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'

from tmux-continuum.

clx123 avatar clx123 commented on July 17, 2024

I have installed tmux-resurrect and tmux-continuum-master plugin. I am having below issues.

  1. tmux-resurrect works with manual save and restore
  2. It restores the window titles and number of windows only. No command history etc. I have remote connections (ssh) which it doesn't restore. In all my windows, I see local host.

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?

from tmux-continuum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.