GNU bug report logs - #20556
[PATCH] compilation mode highlights Maven compilation warnings as errors

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>

Date: Tue, 12 May 2015 14:06:02 UTC

Severity: minor

Tags: patch

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20556 in the body.
You can then email your comments to 20556 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#20556; Package emacs. (Tue, 12 May 2015 14:06:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Pogonyshev <pogonyshev <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 12 May 2015 14:06:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Pogonyshev <pogonyshev <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] compilation mode highlights Maven compilation warnings as
 errors
Date: Tue, 12 May 2015 16:04:58 +0200
[Message part 1 (text/plain, inline)]
Trivial patch follows. Might be not generic enough, but certainly an
improvement in my case.

Paul

--- /tmp/olBiri_compile.el    2015-05-12 16:02:38.958969722 +0200
+++ lisp/progmodes/compile.el    2015-05-12 16:02:36.838967609 +0200
@@ -216,7 +216,7 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?
     ;; due to matching filenames via \\(.*?\\).  This might be faster.
     (maven
      ;; Maven is a popular free software build tool for Java.
-     "\\([^ \n]\\(?:[^\n :]\\| [^-/\n]\\|:[^
\n]\\)*?\\):\\[\\([0-9]+\\),\\([0-9]+\\)\\] " 1 2 3)
+     "\\(\\[WARNING\\] *\\)?\\([^ \n]\\(?:[^\n :]\\| [^-/\n]\\|:[^
\n]\\)*?\\):\\[\\([0-9]+\\),\\([0-9]+\\)\\] " 2 3 4 (1))

     (jikes-line
      "^ *\\([0-9]+\\)\\.[ \t]+.*\n +\\(<-*>\n\\*\\*\\*
\\(?:Error\\|Warnin\\(g\\)\\)\\)"
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20556; Package emacs. (Sat, 16 May 2015 14:16:03 GMT) Full text and rfc822 format available.

Message #8 received at 20556 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Paul Pogonyshev <pogonyshev <at> gmail.com>, 20556 <at> debbugs.gnu.org
Subject: Re: bug#20556: [PATCH] compilation mode highlights Maven compilation
 warnings as errors
Date: Sat, 16 May 2015 17:15:51 +0300
Hi!

On 05/12/2015 05:04 PM, Paul Pogonyshev wrote:
> Trivial patch follows. Might be not generic enough, but certainly an
> improvement in my case.

Do you have an example of relevant Maven output?

A patch adding a case to test/automated/compile-tests.el would be ideal.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20556; Package emacs. (Mon, 18 May 2015 07:27:02 GMT) Full text and rfc822 format available.

Message #11 received at 20556 <at> debbugs.gnu.org (full text, mbox):

From: Paul Pogonyshev <pogonyshev <at> gmail.com>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 20556 <at> debbugs.gnu.org
Subject: Re: bug#20556: [PATCH] compilation mode highlights Maven compilation
 warnings as errors
Date: Mon, 18 May 2015 09:25:56 +0200
[Message part 1 (text/plain, inline)]
This is an excerpt of Maven 3.1 output on a project, where I artificially
added some errors to the source code:

[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ test ---
[INFO] Compiling 2 source files to /home/test/test/target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] /home/test/test/src/main/java/foo/bar/Test.java:[27,43] unchecked
conversion
  required: java.util.Collection<java.lang.Object>
  found:    java.util.ArrayList
[INFO] 1 warning
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/test/test/src/main/java/foo/bar/Test.java:[28,9] cannot find
symbol
  symbol:   method test()
  location: class foo.bar.Test
[Message part 2 (text/html, inline)]

Reply sent to Dmitry Gutov <dgutov <at> yandex.ru>:
You have taken responsibility. (Mon, 18 May 2015 21:06:03 GMT) Full text and rfc822 format available.

Notification sent to Paul Pogonyshev <pogonyshev <at> gmail.com>:
bug acknowledged by developer. (Mon, 18 May 2015 21:06:04 GMT) Full text and rfc822 format available.

Message #16 received at 20556-done <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Paul Pogonyshev <pogonyshev <at> gmail.com>
Cc: 20556-done <at> debbugs.gnu.org
Subject: Re: bug#20556: [PATCH] compilation mode highlights Maven compilation
 warnings as errors
Date: Tue, 19 May 2015 00:04:55 +0300
On 05/18/2015 10:25 AM, Paul Pogonyshev wrote:
> This is an excerpt of Maven 3.1 output on a project, where I
> artificially added some errors to the source code:

Thanks. I've pushed your patch.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 16 Jun 2015 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 8 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.