-
-
Notifications
You must be signed in to change notification settings - Fork 582
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
FZF plugin sometimes not responding to typing #927
Comments
I haven't had the issue. Is it reproducible with the minimal config shown in the issue template? |
Hi @junegunn; thanks for maintaining fzf and this plugin, I'm really enjoying using them both! This does happen with the minimal config. I am on Catalina 10.15.2, using NVIM v0.4.3. There are no error messages in Please let me know how I can help narrow this down. Addendum2 things:
Addendum 2
|
It keeps recurring. If you think of any useful information for debugging, let me know. |
I've been having this problem for a while - haven't been able to find any information out there on it - this is actually the first issue I've found. My setup is basically: nvim install info
it seems all the When using |
I have the same setup as you @xp-bar -- tmux definitely exacerbates the issue, as I have a 100% repro with rg / |
@junegunn I have a consistent repro with the minimal vimrc: Edit: Better recording |
Last update I think: |
Hmm, I can now repro under Terminal.app and iTerm, no tmux session. Here's a debug log showing the issue: debug.txt I used the minimal .vimrc but added verbose logging level 12: set nocompatible hidden laststatus=2
set verbose=12
set verbosefile=debug.txt
if !filereadable('/tmp/plug.vim')
silent !curl --insecure -fLo /tmp/plug.vim
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
source /tmp/plug.vim
call plug#begin('/tmp/plugged')
Plug 'junegunn/fzf', { 'do': './install --bin' }
Plug 'junegunn/fzf.vim'
call plug#end()
autocmd VimEnter * PlugClean! | PlugUpdate --sync |
It's unsurprising, since it's based on neovim, but FWIW I experience this issue frequently with VimR v0.31.0-337 as well. |
UpdateI have found that leaving the Rg results buffer open for 30s then closing with |
^ I still have this issue occasionally (about once a day, closing Speaking of relevant info, I have no idea where to start - haven't ever debugged anything like this before. Any specific log files I should be watching / submitting? |
Revert the change introduced in #552. It seems that the startup time difference between bash and fish is not much of an issue now. > time bash -c 'date' Thu Feb 13 21:15:03 KST 2020 real 0m0.008s user 0m0.003s sys 0m0.003s > time fish -c 'date' Thu Feb 13 21:15:05 KST 2020 real 0m0.014s user 0m0.007s sys 0m0.006s When we explicitly *pipe* $FZF_DEFAULT_COMMAND instead of making fzf internally start the process ($FZF_DEFAULT_COMMAND | fzf), fzf may hang if the input process doesn't quickly process SIGPIPE and abort. Also, fzf#vim#grep temporarily swaps $FZF_DEFAULT_COMMAND instead of setting 'sink' so fzf can kill the default command on 'reload'. junegunn/fzf.vim#927 However, because of the "pipe conversion", the trick wasn't working as expected. https://github.com/junegunn/fzf.vim/blob/467c3277884240f7b5430f8f4d600e3415c38f3b/autoload/fzf/vim.vim#L720-L726 We can go even further and always set $FZF_DEFAULT_COMMAND instead of piping source command.
Hi, please test if junegunn/fzf@5e1db9f fixes the issue. |
Just installed from master and it appears the issue is resolved by junegunn/fzf@5e1db9f |
man fzf
)Sometimes after opening FZF with the Files or Rg command, fzf is not responding to anything I type. Pressing Escape generates a keycode instead, and I have to C-c to exit the buffer. Retrying the same command immediately after usually results in FZF functioning perfectly fine. But apart from that, this issue appears to happen quite randomly.
Don't know what other relevant info I can provide at this stage, please let me know 🙂
The text was updated successfully, but these errors were encountered: