Hello; I hope this is the right email list for this kind of question.
I just upgraded to Emacs 24.2 on a Mac. I'm using the no-nonsense prefab distribution of Emacs.app.
I have customized my compilation-error-regexp-alist to handle Maven 3.0.4 output (well, or more specifically to handle the output of the maven-compiler-plugin version 3.0). However, it does not identify error output properly, even though re-builder shows the regexp as matching just fine.
Here is some sample output from the compiler:
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/ljnelson/Projects/github/foobar/src/main/java/foobar/BasicThreadScheduler.java:[42,12] cannot find symbol
symbol : constructor Thread(foobar.ProgramCounter<T>,java.util.List<T>,int,foobar.BasicThreadScheduler<T>)
location: class foobar.Thread<T>
Using re-builder, I found that the following regular _expression_ matches the relevant line above, with a total of three capture groups (not including group 0, i.e. the whole string):
^\\[\\(?:ERROR\\|WARNING\\)\\]\s+\\([^[]+\\):\\[\\([0-9]+\\),\\([0-9]+\\)\\]
Using the customize emacs machinery, I added this to compilation-error-regexp-alist as an error specification:
("^\\[\\(?:ERROR\\|WARNING\\)\\]\s+\\([^[]+\\):\\[\\([0-9]+\\),\\([0-9]+\\)\\]" 1 2 3)
My intent was that the first of three capture groups should identify the filename, the second the line number, and the third the column number. In my sample output above, re-builder shows that the following line is the first line matched:
[ERROR] /Users/ljnelson/Projects/github/foobar/src/main/java/foobar/BasicThreadScheduler.java:[42,12] cannot find symbol
However, my compilation buffer does not "light up" like it used to.
What am I missing?
Thanks for any help you can provide.
Best,
Laird
--
http://about.me/lairdnelson