GNU bug report logs -
#62560
28.2; compile-mode misidentifies compiler output
Previous Next
Full log
Message #8 received at 62560 <at> debbugs.gnu.org (full text, mbox):
> From: Tom Tromey <tom <at> tromey.com>
> Date: Thu, 30 Mar 2023 23:37:43 -0600
>
>
> Put the text between the "===" lines into a file, say /tmp/F.
> Then M-x compile and for the compile command use "cat /tmp/F".
>
> For me, the "| ... unsigned char :3" lines are partly highlighted as if
> they are error messages, and next-error will erroneously try to select
> these.
>
> These lines occur because gcc prints some of the source code in the
> error message. I think Emacs should not treat them as if they explain
> the location of an error.
Any idea how to accomplish that, given that GCC emits unformatted and
unstructured text? We could complicate the heck out of our regexps,
but theoretically a compiler could emit an error message that quotes
text that looks exactly as warning/error message, and what do we do
then?
Are there any developments in compilers to produce structured text,
like JSON or XML? If so, it is probably better for us to use that
when available, because otherwise I see no way of solving these cases
100%.
This bug report was last modified 2 years and 84 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.