Closed jiangjianshan closed 4 months ago
Please update tha main fzf repo to the latest and see if it helps. https://github.com/junegunn/fzf/commit/5669f48343cac868eb7432950db61c9aa2383ab6
@junegunn , I have just check the code content of fzf, and compared with the commit https://github.com/junegunn/fzf/commit/5669f48343cac868eb7432950db61c9aa2383ab6 .This commit has been applied already but no any effect on this issue. I have try :Files comanad in Vim, it can work correctly for preview window. but :GGrep and :Rg can't. Maybe the issue is caused inside this fzf#vim#with_preview function. And if I remove below parts from _vimrc: So that to make :Rg to use default definition command. And then try :Rg command, the issue is still there. Compare the implementation of :Files and :Rg in fzf.vim\autoload\fzf\vim.vim. Because both of :Files and :Rg using fzf#vim#with_preview function and only :Rg using fzf#vim#grep function. So it seems that the issue is caused by the function fzf#vim#grep. I'm not family with vim script. Just can analyze the issue hang at here.
Did you update the fzf binary as well?
You can test with the one attached in https://github.com/junegunn/fzf/issues/3771#issuecomment-2097140852
@junegunn , this morning I have updated the fzf and fzf.vim to the newest version of commit and tried again. The issue is still there. Is there any way I can catch the trace or log so that I can send it here for analysis purpose.
I'll test it on a Windows PC when I get a chance. By the way, the :RG
command is now included in fzf.vim repo, so you don't need to define it on your configuration file.
https://github.com/junegunn/fzf.vim/blob/99093bd103b847dd3ed149b0c9e7146c8ed46643/plugin/fzf.vim#L64
Also, :Rg
is in fzf.vim with preview support.
https://github.com/junegunn/fzf.vim/blob/99093bd103b847dd3ed149b0c9e7146c8ed46643/plugin/fzf.vim#L63
@junegunn , I have new discoveries this morning. I have forget to put the path of bash.exe into Windows's PATH before because my Windows 10 has been reinstalled several weeks ago. If I add ''C:\Program Files\Git\bin“ into PATH envrionment of Windows 10. When I use :Rg command on Vim, it will open the pop up window and show it for 1~2 seconds and then disappear. This could be a usefull clues to analyze the issue. Something should be the arguments pass to the preview.sh is wrong via the default :Rg definition inside fzf.vim.
Hi, 0.52.1 was just released. It fixes argument escaping on Windows. Can you update both fzf and fzf.vim and test if it helps, preferably with a minimal configuration like this?
call plug#begin()
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
call plug#end()
@junegunn , thanks for your job. Now the issues has been solved after I use the newest version of fzf and fzf.vim.
man fzf
)Hello,
I have update to the newest version of fzf and fzf.vim from github via vim-plug. Today when I want to search the word under cursor. I have found the preview window pops up and then crashes before you can see it clearly on Windows 10. Below is my configuration of _vimrc on Windows 10:
When I try :Files command, I can see the preview windows. But if I try :Rg or :RG command, the issue will be happened. The above configuration of _vimrc work for a long time for the older version of fzf and fzf.vim. Maybe the newest version of fzf and fzf.vim have changed something and my configuration has to be changed?