-
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 adds "File: " before each match which breaks compile-goto-error #122
Comments
The |
I have same issue, I think it is not related to |
I had the same issue, and setting |
I actually ended up removing the Lines 647 to 650 in d00aa65
But then I realized it's conditional to But this leads me to question this behaviour of the tool. Why is grouping same-file results under one file name more important to jumping to the result's location? @Wilfred ? It would be nice if the compilation buffer could succesfully jump to the file even if "File: " is prepended to the start of the line. There probably is a way to achieve this but my emacs-lisp foo is not good enough. |
Each match starts with "File: ", and compile-goto-error interprets that as part of the file name, so it can't find the file. I found where it does that in ag-filter, removed it and recompiled ag.el, and now it the result buffer works for me.
On my machine, the output of
ag --version
is: ag version 0.31.0My Emacs version is: GNU Emacs 24.5.1
I'm using: Ubuntu 16.04
The text was updated successfully, but these errors were encountered: