Closed johnnncodes closed 10 years ago
Hi, thanks for reporting this too. If there's no output in the console it could be this "karma" program isn't even saved properly.
Can you please link me the content of the file symlinked to ~/.tmux/resurrect/last
as mentioned here
@bruno- Here it is:
pane 0 0 :node 1 :* 0 :/Users/johnkevinmbasco/Vagrant/salt_basic/bitlock-angular 1 node :node /usr/local/bin/karma start karma-unit.conf.js
window 0 0 1 :* c8bd,156x37,0,0,0
state 0
And here's my .tmux.conf file:
# List of plugins
# Supports `github_username/repo` or full git URLs
set -g @tpm_plugins " \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-resurrect \
"
# set -g @resurrect-processes '"grunt->grunt development"'
set -g @resurrect-processes ':all:'
# initializes TMUX plugin manager
run-shell ~/.tmux/plugins/tpm/tpm
setw -g mode-keys vi
bind-key -t vi-copy v begin-selection
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
unbind -t vi-copy Enter
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
set -g default-terminal "xterm"
Ok - good news is that the karma process did get saved in .tmux/restore/last
.
It's the last field in the first line, this: :node /usr/local/bin/karma start karma-unit.conf.js
.
I think the reason why the 'karma' process is not restored is the same as explained here.
You tried to restore the window 0 of session 0 - it already exists when you start tmux, so it's not restored.
The solution to fixing this is the same as mentioned in that other issue:
I noticed you have set -g @resurrect-processes ':all:'
.
When you make sure 'karma' is restored with this setting you can narrow down the 'resurrect-processes' list by setting set -g @resurrect-processes '"grunt->grunt development" "~karma"'
Notice the tilde before the word 'karma'.
Let me know how that works or if you have additional questions.
As mentioned in the previous issue, this should also work now so I'm going to close the issue due to lack of activity. Feel free to reopen in there are any updates.
This problem happens when I have this in my .tmux.conf file: set -g @resurrect-processes 'karma'
The command I run is: karma start karma-unit.conf
When resurrecting, it says: tmux restore complete. But nothing really happened. It didn't restored karma and there are no errors in the console.