gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
22.01k stars 3.37k forks source link

Issue installing plugin #533

Closed mattboy9921 closed 2 years ago

mattboy9921 commented 2 years ago

Upon adding a line to install a plugin, I get this:

'cut -c3- ~/.tmux.conf | sh -s __apply_plugins "1" "true" "true" "true"' returned 1

The plugin I am trying to install is tmux-menus with the line:

set -g @plugin 'jaclu/tmux-menus'

I've tried killing the tmux server and multiple times runnning <prefix> + r to no avail. I have no other plugins installed but can confirm that trying to use set -g @plugin 'tmux-plugins/tmux-cpu' did seem to work as intended, no message pop up.

gpakosz commented 2 years ago

Hey @mattboy9921 👋

What version of tmux are you using?

Does the plugin work when you use TPM without Oh my tmux?

mattboy9921 commented 2 years ago

Hi @gpakosz

I was using version 2.6 on Ubuntu Server 18.04. I just upgraded to Ubuntu Server 20.04 and am now on tmux version 3.0a. It is still giving me the same issue with the plugin.

Starting with a fresh install of tmux, I can install TPM and get tmux-menus working as normal.

gpakosz commented 2 years ago

Starting with a fresh install of tmux, I can install TPM and get tmux-menus working as normal

Well it looks like it does but when I try with Ubuntu 18.04 which has tmux 2.6, then running

$ /home/vagrant/.tmux/plugins/tmux-menus/menus.tmux
tmux: unknown option -- N
usage: bind-key [-cnr] [-T key-table] key command [arguments]

Shows tmux-menus is not compatible with old versions of tmux.

I didn't try with Ubuntu 20.04 and tmux 3.0a because bind-key -N was introduced in tmux 3.1. Please reach out to the plugin author(s)

gpakosz commented 2 years ago

I pushed the gh-533 branch that display which tmux plugin failed to run.

In any case, it looks like you need to use a least tmux 3.1 is you want to use that plugin

mattboy9921 commented 2 years ago

I uninstalled the package manager tmux 3.0a and installed via tarball straight from Github to get tmux 3.2a. It looks like that plugin is working. I'll switch to gh-533 to see if any other plugin I might try fails to load.

gpakosz commented 2 years ago

@mattboy9921 Ok will merge soon

gpakosz commented 2 years ago

@mattboy9921 Any hiccup using the gh-533 branch?

mattboy9921 commented 2 years ago

@gpakosz So right now when I do <prefix> + r, it reloads but then says "One or mroe TPM plugin(s) failed". I only have that one plugin and it seems to work (besides not centering the menu that pops up). I'm not sure how to see any more details.

gpakosz commented 2 years ago

It's because onf or more tpm plugin(s) failed 🙃

You can use tmux show-messages to see latest messages. There should be a message that tells which plugin failed

mattboy9921 commented 2 years ago

This is everything it gives me: image

gpakosz commented 2 years ago

You're right I pushed a buggy error detection test 😅

This should be fixed now