junegunn / junegunn/fzf.vim

Occasional Ag and Rg issues

Open
#881 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
10.3k
Forks
608
Avg merge
5d 8h
Merged PRs (30d)
2

Description

- Category
- [ ] Question
- [x] Bug
- [ ] Suggestion
- OS
- [ ] Linux
- [x] macOS
- [ ] Windows
- [ ] Etc.
- Vim
- [ ] Vim
- [x] Neovim

nvim version: v0.4.2

From time to time `Ag` and `Rg` commands stop working correctly. I've redefined them a bit to make file grepping a bit better: https://github.com/jwadolowski/dotfiles/blob/master/config/nvim/init.vim#L199-L228

The issue occurs in a rather random fashion whenever I do this:
* `Ctrl+G` to invoke customized `Ag`
* type something in
* press ENTER to open up given file

ENTER ends with the following error:

```
Error detected while processing function 30[30]..29_callback:
line 21:
Vim(call):E16: Invalid range: call s:fill_quickfix(list)
```

nvim

It gets worse right after that. I can still trigger `Ag` and look for strings, however whenever I press ENTER quicklist disappears, but file is not opened (no explicit error this time):

nvim_2

I've been using `Rg` for a couple of weeks, but experienced similar problems, so switched back to `Ag`.

The only way to make it work again is to restart nvim.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.