List Info

Thread: compilation mode does not parse error messages from ant correctly




compilation mode does not parse error messages from ant correctly
user name
2008-06-03 08:33:48
Hi,

The compilation mode does not parse error messages from ant
correctly.
I have this problem with Emacs HEAD from this morning, but
the problem
is probably older.

To reproduce, visit etc/compilation.txt. In the ant section,
emacs
highlights the filenames correctly, e.g. in the line

    [javac] /src/DataBaseTestCase.java:27: unreported
exception ...

/src/DataBaseTestCase.java is shown with the
compilation-error face as
expected.  However, when clicking on the line with mouse
button 1, I get
a prompt in the minibuffer with:

Find this error in (default     [javac]
/src/DataBaseTestCase.java):
/vol1/opt/src/emacs-hg-sarge/etc/

I. e. the default filename is the contents of the error line
from the
beginning of the line until the first colon.  That is, it
includes the "
[javac] " which is not part of the filename.

AFAICT, this is due to the gnu regexp from
compilation-error-regexp-alist-alist also matching the ant
line.

  Bernhard



Re: compilation mode does not parse error messages from ant correctly
user name
2008-06-03 09:49:34
> The compilation mode does not parse error messages from
ant correctly.
> I have this problem with Emacs HEAD from this morning,
but the problem
> is probably older.

> To reproduce, visit etc/compilation.txt. In the ant
section, emacs
> highlights the filenames correctly, e.g. in the line

>     [javac] /src/DataBaseTestCase.java:27: unreported
exception ...

> /src/DataBaseTestCase.java is shown with the
compilation-error face as
> expected.  However, when clicking on the line with
mouse button 1, I get
> a prompt in the minibuffer with:

> Find this error in (default     [javac]
/src/DataBaseTestCase.java):
/vol1/opt/src/emacs-hg-sarge/etc/

> I. e. the default filename is the contents of the error
line from the
> beginning of the line until the first colon.  That is,
it includes the "
> [javac] " which is not part of the filename.

> AFAICT, this is due to the gnu regexp from
> compilation-error-regexp-alist-alist also matching the
ant line.

If you'd used M-x report-emacs-bug, I wouldn't need to ask:
what version
of Emacs was that?  I've installed a patch recently which
rules out " /"
from some filenames and should have fixed this problem.


        Stefan



Re: compilation mode does not parse error messages from ant correctly
user name
2008-06-03 10:06:40
Stefan Monnier <monnieriro.umontreal.ca>
writes:

> If you'd used M-x report-emacs-bug, I wouldn't need to
ask: what version
> of Emacs was that?  I've installed a patch recently
which rules out " /"
> from some filenames and should have fixed this
problem.

I though it was the from CVS HEAD this morning, but as it
turns out it
was from April.  With the
compilation-error-regexp-alist-alist from CVS
HEAD it works fine.  Sorry for the noise.

  Bernhard



[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )