-
Notifications
You must be signed in to change notification settings - Fork 54
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
Won't launch #1
Comments
Please checkout #1 branch to see if it solves this problem. |
Yeah, its launching as expected now. |
Many thanks for fixing this. |
I've merged #1 to master, now you can checkout master branch and update this plugin. |
Hey @sainnhe, I'm running into the same issue. I'm on the latest version of the plugin. Tmux Version: 2.3 |
@leveled Very sorry, I've tried tmux 2.3 on my surfacepro/archlinux, but still cannot reproduce. Please try minimal tmux configuration(with installation command only), and reinstall this plugin. Btw, I think this may be related to the version of bash. What's your bash version? |
I can confirm the issue on at least three setups. All of them run on the same .tmux.conf with minimal requirements (tpm + tmux-fzf). Moreover I should note that I use the tmux zsh plugin (including autostart).
I don't see any common denominator here, but if I find the time, I'll start some debugging. |
It seems that some people still have this problem, but I'm unable to reproduce this on my Arch Linux on PC and Debian Server(debian 9.11 stretch). I have no idea what is going on. Help wanted. |
Okay, so here's what I've got so far: The mentioned error occurs when In my case, the issue is that tmux could not find So why is fzf not found? To begin with, I'm currently running zsh as my default shell and configured zplugin to manage lots of scripts, tools and helpers, one of which is fzf. Zplugin is very careful to not pollute global directories, so it stores all binaries in user-local paths and only propagates them to the current shell. The problem is that tmux somehow still uses bash instead of zsh, so zplugin is not loaded and therefore fzf is not in ~ $ tmux show-options -g | grep default-
default-command "/usr/bin/zsh"
default-shell "/usr/bin/zsh"
~ $ tmux run 'echo $SHELL'
/bin/bash So technically, it's not an issue with |
@Gerrit-K Very helpful. Thanks! I've updated README. |
I finally got it to work on all my setups. In the end I it was not the wrong shell being executed but rather a combination of zplugin's turbo mode (which delays plugin loading and executes it in the background to improve shell startup time) and the autostart setting of the tmux zsh plugin (which automatically starts a tmux session or attaches to an existing one on plugin load). So basically tmux was started automatically before the zplugin background process was able to load fzf into the PATH. I currently fixed it by simply disabling the turbo mode for fzf again. To me, this issue is fixed now (as it never actually was an issue with tmux-fzf), but I'm happy to help out anyone else who is still having issues. |
I'm running into this same issue
Tmux version 3.0a on OSX in ZSH.
Is this plugin not working with Tmux 3? Thanks! |
I did.
|
@optijon Oh, I just noticed that you are using zsh right? Did you install GNU bash? It's listed in Requirements. If you've installed bash, but still encounter this problem, you may need to debug this plugin by yourself because I can't reproduce this.
|
All of the required dependecies have been installed. I did some debugging and I was able to get this script to work. I'm very confused as to why it's working and my bash script-foo is not the greatest so maybe you can do something with this? On line 113 in
And it works. If you remove the line, |
@optijon The So I created a branch named Also, if the problem is caused by ls -a ~ | fzf-tmux This command is provided by fzf, see here for detailed guide. Sorry but I can't provide more help, because this script is not written by me, it's copied from the official repository. If this issue can be reproduced using the original one, maybe you can consider to open an issue in junegunn/fzf. |
fix: sainnhe#1 Won't launch
Life saver 😄 |
In my case, You can check via If not, check if you set the |
When ever I try to launch this, I get the following error message:
I notice the part of the filename before the extension is missing.
I'm running tmux 2.6 on WSL.
The text was updated successfully, but these errors were encountered: