Comments (12)
Hey @MikeDacre,
thanks for this investigation. This diff was pretty helpful.
In case where tpm
is not working it seems tpm
key bindings are set, but sourcing/starting plugins fails for some reason. This can be seen from the log and it also explains why you get this:
~/.tmux/plugins/tpm/tpm' returned 1
If you have some time here are a couple simple things you can check:
- start tmux, we expect you'll get
~/.tmux/plugins/tpm/tpm' returned 1
because plugin sourcing fails - inside tmux manually run the script that sources plugins
~/.tmux/plugins/tpm/scripts/source_plugins.sh
. The script should have NO output, but maybe you'll get something because we suspect a bug here.. any error output?
from tpm.
Hey, did you get any progress with this?
I also don't know what's wrong here.. this is the first issue where nothing works for the user.
from tpm.
I haven't tried anything else yet, I had to go visit family suddenly and haven't been working.
There must be some conflict in my environment, but I have no idea where. I will look into it again when I return to work in a week or so.
from tpm.
Hey, any updates on this?
from tpm.
Hi Bruno,
Sorry for the delay.
I managed to get it working on a university system running Ubuntu 14.04.2 LTS kernel 3.13.0-45-generic with tmux 1.9a, however it does not work on my personal system which is Arch Linux kernel 4.1.2-2-ARCH with tmux 2.0. The .tmux.conf file is identical on both systems.
I just installed tmux 2.0 on the remote system and I can confirm that it isn't the tmux version, so it is probably some other system configuration issue between Ubuntu and Arch, but I don't know what.
I run the z shell in tmux is that matters, version 5.0.5 on the corn system and version 5.0.8 on the arch system.
Do you have any suggestions on how to debug?
from tpm.
OK, I tried to run tmux with tmux -vvvv
on both machines and then run Ctrl-s I
to install the plugin. As expected it ran fine on the Ubuntu machine but not on the Arch machine. I put the server log for the Ubuntu machine here: https://gist.github.com/MikeDacre/f437480f43f741c1413b and for the Arch machine here: https://gist.github.com/MikeDacre/66de259f2a18c42785a0
The client logs were identical, and the output log was uninteresting.
The full diff is here: https://gist.github.com/MikeDacre/3d038ed751235cc57927. The left file (>) is functional (Ubuntu) and the right (<) is not (Arch). I realized that the server logs are out of order, so I greped out all of the lines starting with 'cmdq', removed the second column, which is just a hash, and then diffed them again. That file is much shorter and is here: https://gist.github.com/MikeDacre/af065b53223601135ac5. The left file (>) is functional and the right (<) is not.
The first 20 lines just reflect a path difference on the two machines, but after line 22 you see all of the commands that were successfully executed on the Ubuntu machine that weren't on the Arch machine.
I also noticed that Ctrl-s U
was mapped, so started tmux on my arch machine and ran Ctrl-s U
and received the following message:
'/home/dacre/.tmux/plugins/tpm/scripts/update_plugin_prompt.sh' returned 1
So that key binding works, even is Ctrl-s I
does not, although I can confirm that it is mapped to install_plugins.sh on that machine, at least according to the server log.
So I next tried manually running install_plugins.sh
and got the following output to stdout/stderr:
usage: run-shell [-b] [-t target-pane] shell-command
/home/dacre/.tmux/plugins/tpm/scripts/shared_functions.sh: line 60: cd: /home/dacre/.tmux/plugins//tmux-sensible/: No such file or directory
usage: run-shell [-b] [-t target-pane] shell-command
fatal: repository 'tmux-plugins/tmux-sensible' does not exist
Cloning into 'tmux-sensible'...
remote: Counting objects: 145, done.
remote: Total 145 (delta 0), reused 0 (delta 0), pack-reused 145
Receiving objects: 100% (145/145), 39.48 KiB | 0 bytes/s, done.
Resolving deltas: 100% (78/78), done.
Checking connectivity... done.
usage: run-shell [-b] [-t target-pane] shell-command
usage: run-shell [-b] [-t target-pane] shell-command
usage: run-shell [-b] [-t target-pane] shell-command
usage: run-shell [-b] [-t target-pane] shell-command
usage: run-shell [-b] [-t target-pane] shell-command
usage: run-shell [-b] [-t target-pane] shell-command
and I also got this message from the tmux notification system:
~/.tmux/plugins/tpm/tpm' returned 1
So at this point I am not sure what else to test. I hope some of this is useful to you.
from tpm.
Ups, I prematurely submitted the above comment. Here are a couple more things to try:
- open
~/.tmux/plugins/tpm/scripts/source_plugins.sh
script in the editor and try debugging it withecho $variable
statements. The script is pretty short with less than 50 lines.- Try placing
echo $plugin_path
at line 16, then run script~/.tmux/plugins/tpm/scripts/source_plugins.sh
, what's the output? echo "running $tmux_file"
at line 23 and run the script, what's the output?
- Try placing
- also, just to check the basics, what
bash
version are you running,/usr/bin/env bash --version
?
Once again, thanks for the help so far!
from tpm.
Sorry for leaving this issue for more than a year. I honestly have no idea what happened, but the issue is resolved now. I just came back to trying to debug it today and I fiddled with my shell (z-shell) and tmux config and at some point the problem just disappeared. I tried to recreate it by undoing everything that I did but I couldn't, it just works now. My guess is that there was something wrong in my .tmux folder, because that is the only potential issue that I cannot recreate.
Sorry for the anti-climactic end to this issue, but at least it works. Thanks for great software, closing now.
from tpm.
Sorry for commenting on an old issue, but I have exactly the same problem.
Trying to echo the variables gives the following:
1 > ~/.tmux/plugins/tpm/scripts/source_plugins.sh
/home/zvandeva/.tmux/plugins//tpm/
/home/zvandeva/.tmux/plugins//tmux-better-mouse-mode/
bash:
1 > bash --version
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)
from tpm.
Same issue here, I'm using zsh 5.2 and tmux 2.3 and get the same output as @zegervdv. Tried debugging a bit but still can't find the issue.
@MikeDacre can you remeber what you did when "fiddling" with zsh?
from tpm.
I am having this very issue with my machine(Manjaro). I ran "~/.tmux/plugins/tpm/scripts/install_plugins.sh" source script manually and everything started working as it should. Try this if you are having this problem in 2021.
from tpm.
It appears I've had this problem on Arch Linux. Despite sourcing tpm
as in instructions, no plugin was downloaded (and hence none worked) until I had manually ran /usr/share/tmux-plugin-manager/scripts/install_plugins.sh
(from AUR) and restarted Tmux.
from tpm.
Related Issues (20)
- Load time is significantly long while tpm is enabled
- [discussion] bundle several tmux plugins under a common umbrella organization for visibility
- TPM does not install plugins on M1 Mac (Ventura) HOT 8
- Nix formula please? HOT 1
- NetBSD - TPM locks up the entire system. HOT 4
- Is there a way to install plugins to another directory? HOT 7
- How to install plugins automatically? HOT 2
- Implementing an embedded plugin list in tpm? HOT 1
- how to update TPM itself? HOT 2
- TPM is apparently installing plugins but they are not loaded. Windows 10 WSL2 Ubuntu. HOT 1
- Tmux output numbers separated by semicolon at startup HOT 7
- TPM should account for the repository's author to prevent naming conflicts HOT 1
- Sourcing tmux conf returns 126 in WSL Ubuntu HOT 4
- '~/.local/share/tmux/plugins/tpm/tpm' returned 1 on macOS Sonoma 14.3.1 HOT 3
- tpm does not works on macbook pro m3 pro HOT 2
- Fix the instructions on changing plugins install dir HOT 1
- Install plugin from subdirectory HOT 1
- Most plugins are not being installed and loaded HOT 3
- Fix: cannot set variables with a name whose prefix is `plugin` HOT 1
- GitHub rejects clones using user:pass:?@host construction HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tpm.