Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loading .tmux.conf? #107

Closed
dzg opened this issue Nov 22, 2018 · 8 comments
Closed

Loading .tmux.conf? #107

dzg opened this issue Nov 22, 2018 · 8 comments

Comments

@dzg
Copy link

dzg commented Nov 22, 2018

When I makes changes to ~/.tmux.conf and run tmux the changes are immediate.
But xpanes is not seeing the changes.
Am I missing something?
thanks

@greymd
Copy link
Owner

greymd commented Nov 22, 2018

xpanes just calls tmux command internaly.
~/.tmux.conf is supposed to be loaded immediately.

Do you set any values in TMUX_XPANES_EXEC ? If not, something might be wrong on your environment but I have no ideas.

@linuxmail
Copy link

hi,

very interesting. Having the same issue on a developer VM. It seems, that if xpanes calling "tmux" it does not source (completely) ~/.tmux.conf config. If I call tmux and than running xpanes .. it works. If I run xpanes and than do a "tmux source-file .tmux.conf", it works too. But it has nothing todo with the version of xpanes, but the config from tmux I would say. Our developer using https://github.com/gpakosz/.tmux and the only thing he wants: disable syncronize-panes with C-s ... It wasn't working ... so digging deeper later.

@linuxmail
Copy link

hi,

found the issue for me:

@dzg Do you have the tmux "setting escape-time" or "repeat-time" ? If so, disable them any try again.

@greymd
Copy link
Owner

greymd commented Nov 29, 2018

That sounds interesting.
But I cannot reproduce the issue..

@dzg @linuxmail
Could you let me know your version of tmux, xpanes, shell and OS ?

btw, I did not know https://github.com/gpakosz/.tmux , seems very cool :)

@c0r3dump3d
Copy link

Hi, I have the same issue in a Manjaro archlinux with tmux 2.8 and I have resolved the issue creating .tmux.conf file and then reinstalling xpanes:

yay -S tmux-xpanes

@linuxmail
Copy link

hi,

it was the tTux version 2.3-4 from Debian Stretch.

@greymd
Copy link
Owner

greymd commented Feb 11, 2019

Hi,

I could re-produce this issue 👍
It is caused by the xpanes's bug.
I am going to fix it next version if possible.

Why ?

tmux will keep all the configures provided by .tmux.conf when it starts the new session.
And the socket file is associated to the kept configures.

xpanes creates ~/.cache/xpanes/socket file as a default socket file.
And the file is loaded even xpanes runs as another process.
If the xpanes process is exited suddenly (due to host's down or etc), this file may be left.

Workaround

Remove ~/.cache/xpanes/socket and run xpanes.

***

My investigation history

Environment

$ cat /etc/issue
Debian GNU/Linux 9 \n \l

$ tmux -V
tmux 2.3

$ cat ~/.tmux.conf
=> empty

$ echo $BASH_VERSION
4.4.12(1)-release

Investigation

Terminal 1

$ xpanes 1 2 3
=> show normal tmux session

=> Keep opening the tmux session

Terminal 2

$ echo 'set -g status-right " UPDATED "' > ~/.tmux.conf

$ tmux
=> show "UPDATED" bottom right side.

$ xpanes 1 2 3
=> show normal tmux session ("UPDATED" is not displayed)

@greymd
Copy link
Owner

greymd commented Feb 18, 2019

Hi folks,
v3.1.1 is now released and I believe this bug is fixed.
If you find this bug happens with the latest version, please reopen this issue.
Thanks!

@greymd greymd closed this as completed Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants