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

ERROR: '/home/jason/.local/share/tmux/plugins/tmux-fzf-url/fzf-url.sh '' screen' returned 2 #32

Open
eggbean opened this issue Jun 9, 2023 · 5 comments

Comments

@eggbean
Copy link

eggbean commented Jun 9, 2023

It's been a while since I used this, but now everything works as expected until I select a URL and then I get this error:

'/home/jason/.local/share/tmux/plugins/tmux-fzf-url/fzf-url.sh '' screen' returned 2

What does this mean?

@tony-sol
Copy link

tony-sol commented Jan 12, 2024

Almost same here, got

~/.config/tmux/plugins/tmux-fzf-url/fzf-url.sh '' screen ''' returned 1

Linux Tony 5.15.123.1-microsoft-standard-WSL2 #1 SMP Mon Aug 7 19:01:48 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
tmux 3.3a

~/.config/tmux/plugins/tmux-fzf-url ✔ $ git status                                                            [master]
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
~/.config/tmux/plugins/tmux-fzf-url ✔ $ git remote -v                                                         [master]
origin  https://git::@github.com/wfxr/tmux-fzf-url (fetch)
origin  https://git::@github.com/wfxr/tmux-fzf-url (push)
~/.config/tmux/plugins/tmux-fzf-url ✔ $ git log -1                                                            [master]
5ad2fe23dbf46976a7e6323fda7cf28dc7adac7a 2023-11-04 23:40:09 +0800 (10 weeks ago) Wenxuan Zhang E feat: allow '_' when parsing github path (HEAD -> master, origin/master, origin/HEAD) (Wenxuan Zhang) [95b9097] Signed-off-by: Wenxuan Zhang <[email protected]>
~/.config/tmux/plugins/tmux-fzf-url ✔ $  

@eggbean
Copy link
Author

eggbean commented Jan 13, 2024

I don't think I have tried using this since I posted this, but I just now thought, why does it mention "screen"? Does this plugin work with screen as well or something? Is it trying to pass the command to screen rather than tmux?

@tony-sol
Copy link

No, it doesn't use screen (if you mean screen as terminal multiplexer)
In my case, there is error in read processing, 'cause i've got read failed 9: Bad file descriptor after some research

@eggbean
Copy link
Author

eggbean commented Jan 13, 2024

The plugin is actually working perfectly fine for me.

These are my settings in my tmux.conf:

# tmux-fzf-URL
set -g @plugin 'wfxr/tmux-fzf-url'
set -g @fzf-url-fzf-options '-w 50% -h 60% --multi -0 --no-preview --layout reverse --prompt "url: " --no-info --pointer ÔùÅ --color "prompt:#bd93f9,pointer:#bd93f9"'
set -g @fzf-url-history-limit '50'

It works within a popup windows, I have fzf aliased to something called fzfp-tmux and I can't remember if that is a name I came up with myself.

@eggbean
Copy link
Author

eggbean commented Jan 13, 2024

I just remembered something which may help: When I was having problems like this with a couple of tmux plugins (I can't remember if one of them was this one), it worked on some computers but now on other, and I realised that the ones it didn't work on were Debian-based. Make sure that you have gawk installed, so that awk is aliased to gawk and not mawk. Try:

awk --version

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

No branches or pull requests

2 participants