junegunn / fzf.vim

fzf :heart: vim
MIT License
9.66k stars 585 forks source link

rg process spawned by :Rg is never terminated #1063

Open zacmathe opened 4 years ago

zacmathe commented 4 years ago

Any time I use Rg, regardless of whether I subsequently open a file or cancel it with ESC, the rg process continues to run indefinitely.

If I follow thesee steps:

My activity monitor shows this: image

This makes Rg unusable, as the rg process maxes out the CPU until I manually kill it.

marcusbuffett commented 4 years ago

You can somewhat fix this problem by finding any large files in the directory that are causing rg to never terminate (for me it was a 12GB sql file). Agreed that this is an issue though, I was encountering the same thing and it was really hard to pin down and drained my battery quickly

silasb commented 3 years ago

Ran into this today. A timeout feature would be ideal to terminate the search if it doesn't succeed in X time.