tmux-plugins / tpm

Tmux Plugin Manager
MIT License
12.3k stars 431 forks source link

TPM is apparently installing plugins but they are not loaded. Windows 10 WSL2 Ubuntu. #271

Open aams-eam opened 11 months ago

aams-eam commented 11 months ago

Hi,

I am using: Windows 10, WSL2, Ubuntu 22.04.3 LTS. I have installed: tmux 3.3a with brew install tmux. Then I did: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm And added the following configuration file ~/.tmux.conf:

set -g default-terminal "screen-256color"

unbind %
bind | split-window -h 

unbind '"'
bind - split-window -v

unbind r
bind r source-file ~/.tmux.conf

bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5

bind -r m resize-pane -Z

set -g mouse on

set-window-option -g mode-keys vi

bind-key -T copy-mode-vi 'v' send -X begin-selection # start selecting text with "v"
bind-key -T copy-mode-vi 'y' send -X copy-selection # copy text with "y"

unbind -T copy-mode-vi MouseDragEnd1Pane # don't exit copy mode when dragging with mouse

# remove delay for exiting insert mode with ESC in Neovim
set -sg escape-time 10

# tpm plugin
set -g @plugin 'tmux-plugins/tpm'

# list of tmux plugins
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'tmux-plugins/tmux-resurrect' # persist tmux sessions after computer restart
set -g @plugin 'tmux-plugins/tmux-continuum' # automatically saves sessions for you every 15 minutes

set -g @themepack 'powerline/default/cyan'

set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on'

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'

After that I opened a tmux session and press Ctrl+b Shift+i. I see the following output:

Already installed "tpm"
Installing "vim-tmux-navigator"
   "vim-tmux-navigator" download success
Installing "tmux-themepack"
   "tmux-themepack" download success
Installing "tmux-resurrect"
   "tmux-resurrect" download success
Installing "tmux-continuum"
   "tmux-continuum" download success

TMUX environment reloaded

Done, press ENTER to continue

However, none of the plugins are working. I have tried to follow the same procedure in my machine with Ubuntu 20.04.6 LTS and everything works fine. However, with Windows 10, WSL2, Ubuntu 22.04.3 LTS it is not working. I have another machine with Windows 11, WSL2, Ubuntu 22.04.2 LTS and everything is working fine.

Additionally, I have the following bash version (Just in case it helps...):

GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

I have seen other people mentioning problems with TMUX_PLUGIN_MANAGER_PATH env variable, but I see it is set correctly when I am in a tmux session.

aams-eam commented 7 months ago

Hi!

I don't think I was able to solve it... Right now it is working but using another version that I compiled from source, the version is 'next-3.5'. I also have the dotfiles that I used here: https://github.com/aams-eam/dotfiles

Kind regards, Alejandro

El jue, 11 abr 2024 a las 10:28, Ralu @.***>) escribió:

Hi! I'm having the same problem with Debian 12 in WSL2, did you solved it?

— Reply to this email directly, view it on GitHub https://github.com/tmux-plugins/tpm/issues/271#issuecomment-2049187996, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANLJDFGO5ALV3TUNNHFKSPLY4ZCTPAVCNFSM6AAAAABA6CYW32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBZGE4DOOJZGY . You are receiving this because you authored the thread.Message ID: @.***>