2015-08-10 14:18:32 -04:00
# Help, tpm not working!
Here's the list of issues users had with `tpm` :
2016-08-21 00:52:18 -04:00
< hr / >
2015-08-10 14:18:32 -04:00
> Nothing works. `tpm` key bindings `prefix + I`, `prefix + U` not even
defined.
2016-08-21 00:52:18 -04:00
Related [issue #22 ](https://github.com/tmux-plugins/tpm/issues/22 )
2015-08-10 14:18:32 -04:00
- Do you have required `tmux` version to run `tpm` ?< br />
Check `tmux` version with `$ tmux -V` command and make sure it's higher or
equal to the required version for `tpm` as stated in the readme.
- ZSH tmux plugin might be causing issues.< br />
If you have it installed, try disabling it and see if `tpm` works then.
2016-08-21 00:52:18 -04:00
< hr / >
2015-12-13 19:26:16 -05:00
> Help, I'm using custom config file with `tmux -f /path/to/my_tmux.conf`
to start Tmux and for some reason plugins aren't loaded!?
2015-12-13 19:21:47 -05:00
2016-08-21 00:52:18 -04:00
Related [issue #57 ](https://github.com/tmux-plugins/tpm/issues/57 )
2015-12-13 19:21:47 -05:00
2015-12-13 19:26:16 -05:00
`tpm` has a known issue when using custom config file with `-f` option.
The solution is to use alternative plugin definition syntax. Here are the steps
to make it work:
2015-12-13 19:21:47 -05:00
1. remove all `set -g @plugin` lines from tmux config file
2. in the config file define the plugins in the following way:
# List of plugins
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-resurrect \
'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
3. Reload TMUX environment so TPM is sourced: `$ tmux source /path/to/my_tmux.conf`
The plugins should now be working.
2016-08-21 00:52:18 -04:00
< hr / >
2015-08-10 14:18:32 -04:00
> Weird sequence of characters show up when installing or updating plugins
2016-08-21 00:52:18 -04:00
Related: [issue #25 ](https://github.com/tmux-plugins/tpm/issues/25 )
2015-08-10 14:18:32 -04:00
- This could be caused by [tmuxline.vim ](https://github.com/edkolev/tmuxline.vim )
plugin. Uninstall it and see if things work.
2016-08-21 00:52:18 -04:00
< hr / >
2015-08-10 14:18:32 -04:00
> "failed to connect to server" error when sourcing .tmux.conf
2016-08-21 00:52:18 -04:00
Related: [issue #48 ](https://github.com/tmux-plugins/tpm/issues/48 )
2015-08-10 14:18:32 -04:00
- Make sure `tmux source ~/.tmux.conf` command is ran from inside `tmux` .
2016-08-21 01:12:43 -04:00
< hr / >
> tpm not working: '~/.tmux/plugins/tpm/tpm' returned 2 (Windows / Cygwin)
Related: [issue #81 ](https://github.com/tmux-plugins/tpm/issues/81 )
This issue is most likely caused by Windows line endings. For example, if you
have git's `core.autocrlf` option set to `true` , git will automatically convert
all the files to Windows line endings which might cause a problem.
The solution is to convert all line ending to Unix newline characters. This
command handles that for all files under `.tmux/` dir (skips `.git`
subdirectories):
```bash
find ~/.tmux -type d -name '.git*' -prune -o -type f -print0 | xargs -0 dos2unix
```
2017-08-02 00:09:05 -04:00
< hr / >
> '~/.tmux/plugins/tpm/tpm' returned 127 (on macOS, w/ tmux installed using brew)
Related: [issue #67 ](https://github.com/tmux-plugins/tpm/issues/67 )
2023-02-26 14:18:12 -05:00
This problem is because tmux's `run-shell` command runs a shell which doesn't read from user configs, thus tmux installed in a brew prefix (e.g. `/usr/local/bin` ) will not be found.
2017-08-02 00:09:05 -04:00
2023-02-26 14:18:12 -05:00
The solution is to find your brew prefix
2017-08-02 00:09:05 -04:00
2023-02-26 14:18:12 -05:00
```sh
> echo "$(brew --prefix)/bin"
/opt/homebrew/bin
2017-08-02 00:09:05 -04:00
```
2023-02-26 14:18:12 -05:00
2023-02-26 14:21:30 -05:00
And prepend it to the `PATH` environment variable
2023-02-26 14:18:12 -05:00
```
set-environment -g PATH "/opt/homebrew/bin:/bin:/usr/bin"
2017-08-02 00:09:05 -04:00
```
before any `run-shell` /`run` commands in `~/.tmux.conf` .