[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Upgraded to Emacs 24; custom compilation-error-regexp-alist no longer wo

From: Laird Nelson
Subject: Upgraded to Emacs 24; custom compilation-error-regexp-alist no longer works
Date: Wed, 16 Jan 2013 16:58:10 -0800

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

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:

[INFO] -------------------------------------------------------------
[ERROR] /Users/ljnelson/Projects/github/foobar/src/main/java/foobar/[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):


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/[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]