-
Notifications
You must be signed in to change notification settings - Fork 61
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
ag doesn't search (ag 0.18.1) #26
Comments
That's really weird. Could you paste the command that is run in the buffer? For example, if I do a search, I get the following:
(run with ag.el version 0.32, ag version 0.18.1) So the command is Also, does this occur if you start from a clean configuration (using |
I also have this issue on my Windows 7 x64 machine. The ag process is running background but no results are shown in Emacs. I can get search results by appending "." to the end of ag command, but the results are not highlighted and next-error command is not working in compilation buffer probably because of regexp mismatch. I'm using ag.el 0.33 and ag version 0.18.1 on Windows 7 x64, and ag-arguments are not customized. |
Aha, Windows. Sounds like it might be an upstream bug, but I'm happy to append Also, could you say what values you have for Highlighting not working (assuming you've set |
ag on Windows cmd.exe works fine without having And what I mean by highlighting is the underlines of the matched file names in compilation buffer. Sorry for this incorrect statement. Here are some output from ag.el for search string:
You can see that we lost the line number, and thus this doesn't match the compilation mode pattern in ag.el Also FYI, |
OK, I've not yet had an opportunity to examine this thoroughly, but I've made the change you suggested. Thanks for the pointer to the kjk repo, I'll give it a try. |
Hi, fyi, I am seeing the same issue as @arongp. Windows 8.1 x64 |
After some investigation I found out that if you pass option This is my updated version of
Rhetorical question: maybe this is related to leonid-shevtsov/SearchInProject_SublimeText#1 (comment) ? |
Thanks for the links, this certainly looks relevant to #52. However, this particular issue is about no results at all in the results buffer, as I understand it. |
Just confirming this change worked for me, here's what I did: (defconst *is-windows* (eq system-type 'windows-nt))
(when *is-windows*
(setq-default ag-arguments (cons "--line-numbers" ag-arguments))) |
OK, I believe the issues raised in this ticket are now fixed. @jwalt found that ag seems to require passing the current directory (i.e. appending @arongp was missing line numbers. This was fixed in #52. Please let me know if ag.el isn't working as expected for you. |
When running ag, the ag subprocess doesn't actually start searching. It seems to wait for input from stdin.
A small change in line 138 fixes this, just append "." to the end of the command:
The text was updated successfully, but these errors were encountered: