-
Notifications
You must be signed in to change notification settings - Fork 59
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
Grepper{Ack,Pt,Rg} are async in Neovim, but not Vim #65
Comments
Unfortunately I can't test for Windows. Is (As for the second problem, it's most probably a follow-up issue. I'll add a fix for it anyway.) |
yep
gives a lot of results in a console |
Could you paste the output? I wonder if it's a different format than the expected one. It should look like this:
|
If I issue
I get a message: "No matches found" Otherwise silence and no results (but they should be) |
GrepperGrep, GrepperFindstr, GrepperGit works, btw |
Hmm, apparently Vim's async interface changed a bit. I can reproduce it on OSX as well now. I'm looking into it. |
Ok, thx a lot. |
Short update: I'm pretty sure it's a Vim bug by now. Some jobs simply never give output. E.g. Here a minimal test case: https://gist.github.com/mhinz/a5d126e6c702a6ffd0347aa70c9ccb39 |
@chrisbra Sorry for disturbing you, but could you have a look at the minimal test case in the above post? I read vim_dev a bit, but I'm still not sure if that bug is already reported. Thanks in advance! (If you don't have |
We force a synchronous search for these tools, due to a Vim bug. For follow-up posts see: #65 (comment)
We force a synchronous search for these tools, due to a Vim bug. For follow-up posts see: #65 (comment) References #65.
Not sure, if this has already been mentioned, there are a couple of bugs mentioned in the todo list and in the issue tracker like vim/vim#1026 |
Hm, it looks like ack is still running and waiting for something... |
Yup, it never returns and the stdout handler is not called even once. I have no idea how async in Vim really works, so I'm rather puzzled by this. :\ But it happens for a few programs (ack, pt, ripgrep at least), so.. what do they do differently? |
For me The |
@mgee Hmm, I see.. BurntSushi/ripgrep#19 |
So, when both, Neovim's There must be some smart code in libuv (which is used by Neovim) that isn't part of Vim's custom solution. |
sounds like it. I wonder if there is something, that should be done by Vim. |
Actually closed by: #77 |
For some reason, `ag` worked fine in async mode, but `rg` hangs forever unless you disconnect stdin. Found via Google: - mhinz/vim-grepper#65 - mhinz/vim-grepper#77
vim8 and windows 10
pt is installed.
Trying to
returns nothing although there is 'something' in the file.
Next thing is:
The text was updated successfully, but these errors were encountered: