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

tpm no longer working #22

Closed
justmytwospence opened this issue Mar 28, 2015 · 20 comments
Closed

tpm no longer working #22

justmytwospence opened this issue Mar 28, 2015 · 20 comments

Comments

@justmytwospence
Copy link

tpm stopped working for me two days ago, and for the life of me I haven't been able to figure out why. No errors get thrown when I source my .tmux.conf, and everything else in my config works like it used to. None of the plugins are working, however, and the C-I and C-U keybindings for installing/updating them also do nothing. I am using homebrew installed tmux 1.9a. Is anyone else experiencing this?

@bruno-
Copy link
Member

bruno- commented Mar 28, 2015

Hey,
did you try deleting all the plugins and re-installing them?

rm -rf ~/.tmux
# now re-install tpm and all the plugins again

How does your tmux.conf look like?

@justmytwospence
Copy link
Author

Yep - I've tried deleting and reinstalling. Here is my tmux.conf. One unusual thing: I use a dotfile management system so tpm is actually a submodule in a git repo somewhere, and then it gets symlinked to ~/.tmux/plugins. This has been working fine for months though, up until now.

@justmytwospence
Copy link
Author

I have confirmed it to not work even when things are not symlinked. Following the install directions to the letter still does not result in any functionality, in iTerm 2.0 or OSX Terminal 2.4.

@justmytwospence
Copy link
Author

This seems to be a very strange bug. I restarted my computer, and everything started working fine. The next time restarted, things stopped working again. This seems to be the same thing that was happening in this issue: #8

@bruno-
Copy link
Member

bruno- commented Mar 30, 2015

One unusual thing: I use a dotfile management system so tpm is actually a submodule in a git repo somewhere

I don't think this should be a problem as long as the script is accessible from this path ~/.tmux/plugins/tpm/tpm you specified with run-shell in tmux.conf.

One unusual thing related to your tmux.conf might be that you place set-option -g @tpm_plugins and run-shell "~/.tmux/plugins/tpm/tpm" at the beginning, while it's recommended to place them at the bottom.
This shouldn't cause this much trouble for tpm to stop working, but for example, I think the options @copycat_search_C-i and @copycat_search_G-g won't work. The reason for this is that copycat plugin is sourced before the options are set.

@bruno-
Copy link
Member

bruno- commented Mar 30, 2015

A couple other things to try:

  • what is the output of the following shell command inside tmux $ echo $TMUX_PLUGIN_MANAGER_PATH?
  • your linux/unix username does not have spaces in it right? For example, the path that is output with: ls ~ does not contain spaces?
  • when in tmux, how do you check if plugins are installed or not? In your first post you mentioned hitting C-i to install plugins. That might be a typo, but the correct keys are prefix + shift + i (not ctrl-i).
  • when inside tmux, can you please send me the output of the tmux list-keys command (in a gist)? Ideally it would be good to see this output for the scenario when tmux plugins are not loading.

@justmytwospence
Copy link
Author

EDIT: for the record, here are the list keys when it randomly decides to work: https://gist.github.com/justmytwospence/3cb1c7f284c150f4791f

@bruno-
Copy link
Member

bruno- commented Apr 2, 2015

TMUX_PLUGIN_MANAGER_PATH is not set in my environment.

Okay, then plugins won't be loaded for sure. I've never had a case where this wasn't working.. not sure what it could be.

I am indeed using C-b C-I

I'm confused, is this a typo? Were you thinking C-b + I

As for the difference with working vs non-working list-key output, yea - apparently tpm key bindings are set for the working scenario:

I run-shell "/Users/sgb/.tmux/plugins/tpm/scripts/install_plugins.sh >/dev/null 2>&1"
U run-shell /Users/sgb/.tmux/plugins/tpm/scripts/update_plugin_prompt.sh

Interestingly, even in the working scenario list-keys output, I don't see key bindings for other plugins that you have in your tmux.conf, like tmux-yank or tmux-copycat.

Unfortunately, I don't have an idea what could be the issue here.

@justmytwospence
Copy link
Author

Yes that was a typo, I meant C-b I. I think I've narrowed down the problem to the tmux zsh plugin (maybe). After removing it, things are mostly working.

@bruno-
Copy link
Member

bruno- commented Apr 3, 2015

Cool. Please let me know your findings and I'll document if there's a zsh plugin that clashes with tpm.

@gabrielalmeida
Copy link

Exactly the same happening here, same setup, no keybindings, running script manually allow me to create prefix + I and prefix + U keybindings but plugins doesn't seem to be installed/working. Restarting or removing tmux zsh plugin doesn't solve this for me.

@andradei
Copy link

👍 Same issue for me, and I don't have zsh tmux plugin enabled.

@bruno-
Copy link
Member

bruno- commented Aug 3, 2015

@andradei care post the output of the commands from this comment

@andradei
Copy link

andradei commented Aug 4, 2015

@bruno- For me I had to install the latest version of tmux. Ubuntu's tmux (from a canonical PPA) isn't updated. Everything works nicely now.

@bruno-
Copy link
Member

bruno- commented Aug 10, 2015

@justmytwospence I'm trying to document issues ppl were having with tpm. Is this the zsh plugin that was causing problems for you?

@justmytwospence
Copy link
Author

@bruno- I'm actually not very sure that it was the zsh plugin. Unfortunately it turned out to be one of those things that just started working again after fiddling with a lot of things.

@bruno-
Copy link
Member

bruno- commented Aug 11, 2015

Ok, thanks for the reply anyway.
This has been a long running thread and it seems almost everyone got the tpm running now, so I'm gonna close the issue.

@bruno- bruno- closed this as completed Aug 11, 2015
@nbigaouette
Copy link

My tmux wasn't loading tpm. I'm on Ubuntu 14.04. I used pi-rho's ppa (https://launchpad.net/~pi-rho/+archive/ubuntu/dev) to get tmux 2.1.
The problem I had was that 2.1 is called tmux-next in this ppa, as to not conflict with Ubuntu's official one. I had to remove the official one and create a symbolic link: sudo ln -s /usr/bin/tmux-next /usr/bin/tmux. Then tpm started working.

@selurvedu
Copy link

Recently I've encountered a similar issue. I checked everything and it turned out that the run-shell line in the config file was ignored by tmux completely, even though the command worked fine when I invoked it manually. In a few minutes after discovering this I found the cause — that was a backslash at the end of the comment line. As far as I understand, it expands the comment block to the following line, no matter if the line begins with a # or not. Hope this might help someone someday. :)

@maiermic
Copy link

I also had this issue when I installed tmux from source. It worked after I installed

sudo apt-get install build-essential curl git python-setuptools ruby;
sudo apt-get install build-essential libevent-dev libncurses-dev;

and installed tmux from source again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants