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

TMUX Error When Sourcing Config File #753

Open
haohu321 opened this issue Aug 2, 2024 · 7 comments
Open

TMUX Error When Sourcing Config File #753

haohu321 opened this issue Aug 2, 2024 · 7 comments

Comments

@haohu321
Copy link

haohu321 commented Aug 2, 2024

Hi,

I got the following errors when source ~/.tmux.conf file:


'TMUX_PROGRAM="$(LSOF=$(PATH="$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" command -v lsof); $LSOF -b -w -a -d txt -p 50521 -Fn 2>/dev/null | perl -n -e "if (s/^n((?:.(?!dylib$|so$))+)$/\1/g && s/(?:\s+\([^\s]+?\))?$/[0/0]
'"$TMUX_PROGRAM" -S /tmp/tmux-100305/default set-environment -g TMUX_SOCKET "/tmp/tmux-100305/default"' returned 127
'"$TMUX_PROGRAM" set-environment -g TMUX_CONF $(for conf in "$HOME/.tmux.conf" "$XDG_CONFIG_HOME/tmux/tmux.conf" "$HOME/.config/tmux/tmux.conf"; do [ -f "$conf" ] && printf "%s" "$conf" && break; done)' returned 127
'"$TMUX_PROGRAM" set-environment -g TMUX_CONF_LOCAL "$TMUX_CONF.local"' returned 127
'"$TMUX_PROGRAM" source "$TMUX_CONF_LOCAL"' returned 127

I didn't touch the .tmux.conf file and all my tmux.conf.local didn't take effect due to this error. Here is my local environment:

OS: Linux CentOS 7
Shell: ZSH + oh-my-zsh
Tmux: 3.4

Would appreciate any help to fix this.

@haohu321 haohu321 changed the title TMUX Source Error Aug 2, 2024
@gpakosz
Copy link
Owner

gpakosz commented Aug 8, 2024

Hello,

I currently don't have access to CentOS but on macOS Sonoma I have no issue.

@gpakosz
Copy link
Owner

gpakosz commented Aug 12, 2024

I just installed CentOS 7 with Vagrant, then compiled tmux from source and I can't reproduce this.

Do you have Perl installed?

@gpakosz
Copy link
Owner

gpakosz commented Aug 18, 2024

@haohu321 Can you please try the latest commit in the master branch?

@rubiin
Copy link

rubiin commented Aug 23, 2024

I still have this error even on latest commit
image

@gpakosz
Copy link
Owner

gpakosz commented Aug 23, 2024

@rubiin Can you please open a dedicated issue? Something's failing with the TPM plugins you're using

@rubiin
Copy link

rubiin commented Aug 23, 2024

i deleted the plugins folder and the second issue is gone. now just the first error

@gpakosz
Copy link
Owner

gpakosz commented Aug 23, 2024

@rubiin Please open a dedicated issue: kill all tmux processes, start from the latest version of the master branch, remove the use of TPM plugins, and in the issue please detail your OS, TERM value and your tmux version. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
@gpakosz @rubiin @haohu321 and others