From debbugs-submit-bounces@debbugs.gnu.org Tue May 12 10:05:27 2015 Received: (at submit) by debbugs.gnu.org; 12 May 2015 14:05:27 +0000 Received: from localhost ([127.0.0.1]:42488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsAoE-0006uB-IH for submit@debbugs.gnu.org; Tue, 12 May 2015 10:05:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:40898) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YsAo7-0006tq-Mr for submit@debbugs.gnu.org; Tue, 12 May 2015 10:05:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsAny-0007TU-H6 for submit@debbugs.gnu.org; Tue, 12 May 2015 10:05:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:47347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsAny-0007T7-Dp for submit@debbugs.gnu.org; Tue, 12 May 2015 10:05:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsAnx-0006Pi-6e for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 10:05:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YsAns-0007HC-HJ for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 10:05:05 -0400 Received: from mail-ie0-x22b.google.com ([2607:f8b0:4001:c03::22b]:33025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YsAns-0007H0-CT for bug-gnu-emacs@gnu.org; Tue, 12 May 2015 10:05:00 -0400 Received: by iebgx4 with SMTP id gx4so1650089ieb.0 for ; Tue, 12 May 2015 07:04:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=jsFE4ncxHEhywYE/YnMC1STRtAXQ8A2aK/5ZUokPxyk=; b=jXg5qMxmSKZ19ley4Za5htiD/NFKmh9IEE1GEgPwBQJdv8Ad2i5RokQQNzsr0slvs1 hYqC2flZvGxuBrbhKdUoOY/kSLGoRFmDuBMVHFaEz4EY2tiKA5RupJfoVaGGhxHrKvdM ksrdPiDzX1uviU+1kyq9NmuDEqCMF60oxrTJZmwxt+PK/5GDTu2Of9RXlc3nePnV0esb FXljvMG5iMDcFDJVu+cj4YSN5JRSLM6WagpNNk2+wYm/X6P2gVDC8YO5LMtmCP2ueJdZ J/Tw3PANVHmsD9sE1d4IDos4psg+00bt10csPIAri7Ww3oMYUJsBsDIyJQNaJ5vFLGBk DWHw== MIME-Version: 1.0 X-Received: by 10.107.152.14 with SMTP id a14mr19690913ioe.59.1431439498789; Tue, 12 May 2015 07:04:58 -0700 (PDT) Received: by 10.36.121.210 with HTTP; Tue, 12 May 2015 07:04:58 -0700 (PDT) Date: Tue, 12 May 2015 16:04:58 +0200 Message-ID: Subject: [PATCH] compilation mode highlights Maven compilation warnings as errors From: Paul Pogonyshev To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a11409f18d7c8ab0515e2fa95 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a11409f18d7c8ab0515e2fa95 Content-Type: text/plain; charset=UTF-8 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\\)\\)\\)" --001a11409f18d7c8ab0515e2fa95 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Trivial patch follows. Might be not generic enough, b= ut certainly an improvement in my case.

Paul

= --- /tmp/olBiri_compile.el=C2=A0=C2=A0=C2=A0 2015-05-12 16:02:38.958969722 = +0200
+++ lisp/progmodes/compile.el=C2=A0=C2=A0=C2=A0 2015-05-12 16:02:3= 6.838967609 +0200
@@ -216,7 +216,7 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\&= quot;:\n]+\\)\"?
=C2=A0=C2=A0=C2=A0=C2=A0 ;; due to matching filena= mes via \\(.*?\\).=C2=A0 This might be faster.
=C2=A0=C2=A0=C2=A0=C2=A0 = (maven
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ;; Maven is a popular free softwar= e build tool for Java.
-=C2=A0=C2=A0=C2=A0=C2=A0 "\\([^ \n]\\(?:[^\= n :]\\| [^-/\n]\\|:[^ \n]\\)*?\\):\\[\\([0-9]+\\),\\([0-9]+\\)\\] " 1 = 2 3)
+=C2=A0=C2=A0=C2=A0=C2=A0 "\\(\\[WARNING\\] *\\)?\\([^ \n]\\(?= :[^\n :]\\| [^-/\n]\\|:[^ \n]\\)*?\\):\\[\\([0-9]+\\),\\([0-9]+\\)\\] "= ; 2 3 4 (1))
=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0 (jikes-line
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 "^ *\\([0-9]+\\)\\.[ \t]+.*\n +\\(<-*>\n\\= *\\*\\* \\(?:Error\\|Warnin\\(g\\)\\)\\)"

--001a11409f18d7c8ab0515e2fa95-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 16 10:16:01 2015 Received: (at 20556) by debbugs.gnu.org; 16 May 2015 14:16:01 +0000 Received: from localhost ([127.0.0.1]:47400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ytcsh-0004sc-VF for submit@debbugs.gnu.org; Sat, 16 May 2015 10:16:01 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:35309) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Ytcsg-0004sO-B3 for 20556@debbugs.gnu.org; Sat, 16 May 2015 10:15:59 -0400 Received: by wgkx2 with SMTP id x2so23191100wgk.2 for <20556@debbugs.gnu.org>; Sat, 16 May 2015 07:15:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=mohOzPL7mNwu1cqMtxpunx+uJCUHos6cbx8kXDg4ph8=; b=GTSYKxk9CTFGgQXnqyMJW74dbmMVkbyoqEx5HtwW1gi12lGIDaL1FTH+uyF7kw3gY5 j5fYo9MaGSR+25z8TnWyaNJt2ewLMy5q7t25W6xNmvH1BLfZcl2xJ3goEvEuEffBOD8s fpoH6p2n3+4/pZNmf63LbXcJFsSgUcqOiTjbY9E5mzNB2wbvL9yMKot11JXzHaWQoRFC LlhnkaB1iupueLP0PAttJhfmSwBx2UQeLKf2/wg/fOsu4fBsyPQuw2qhSvdEH0KOthp3 l6uq9cwUqNNZVFCsZf3qylbaynlO1Fvdgw0e3is4P8Sj1rzSlnViTcbZ//lq8Z75uiqc BT+Q== X-Received: by 10.194.92.2 with SMTP id ci2mr25191875wjb.34.1431785752742; Sat, 16 May 2015 07:15:52 -0700 (PDT) Received: from [192.168.0.185] (static-nbl2-118.cytanet.com.cy. [212.31.107.118]) by mx.google.com with ESMTPSA id bz11sm3114323wib.2.2015.05.16.07.15.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 16 May 2015 07:15:52 -0700 (PDT) Subject: Re: bug#20556: [PATCH] compilation mode highlights Maven compilation warnings as errors To: Paul Pogonyshev , 20556@debbugs.gnu.org References: From: Dmitry Gutov Message-ID: <55575117.2080207@yandex.ru> Date: Sat, 16 May 2015 17:15:51 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20556 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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. From debbugs-submit-bounces@debbugs.gnu.org Mon May 18 03:26:04 2015 Received: (at 20556) by debbugs.gnu.org; 18 May 2015 07:26:04 +0000 Received: from localhost ([127.0.0.1]:48598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YuFR6-0005BB-5p for submit@debbugs.gnu.org; Mon, 18 May 2015 03:26:04 -0400 Received: from mail-ie0-f177.google.com ([209.85.223.177]:35603) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YuFR4-0005Ah-4B for 20556@debbugs.gnu.org; Mon, 18 May 2015 03:26:02 -0400 Received: by iesa3 with SMTP id a3so76481007ies.2 for <20556@debbugs.gnu.org>; Mon, 18 May 2015 00:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=0VxKGLs/c+L9XpPnnGd/0D/TvWy5VmNQsQYWk0ubRMo=; b=EhWiFGegW2f9kZkTUxhgPDt4NF/tW+wBsULMI+i8mFBYZufgfQw+5e/Y/NlOKVFWkc HnsQZ1mfuBXOG3bTxNp1zBVYZNTF9Dlyc7L08ARuRI+497X39B7Nxd06VCB7WEfSe3Z+ eiv7c2rSp4TSYSCCOmqJu2Gyo4jmxlYNeYGpkamF4+5dXfHFzZAswdtJdrCmc0lCYYBU CwuQEw48cX9GJTaA191Xmrcfm4PNLG2TQ7KIiYaQnY4AzMnhjzTYADiUGEQxCDVUKZX7 stKvIs5NeicZOidzdg8IcwmtwIHGXz7KCZEXGvk+ZLNkxoBNEq210NUEEH01YT+IQnud MGog== MIME-Version: 1.0 X-Received: by 10.107.152.14 with SMTP id a14mr27623833ioe.59.1431933956607; Mon, 18 May 2015 00:25:56 -0700 (PDT) Received: by 10.36.121.210 with HTTP; Mon, 18 May 2015 00:25:56 -0700 (PDT) In-Reply-To: <55575117.2080207@yandex.ru> References: <55575117.2080207@yandex.ru> Date: Mon, 18 May 2015 09:25:56 +0200 Message-ID: Subject: Re: bug#20556: [PATCH] compilation mode highlights Maven compilation warnings as errors From: Paul Pogonyshev To: Dmitry Gutov Content-Type: multipart/alternative; boundary=001a11409f18d379f30516561ab9 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20556 Cc: 20556@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --001a11409f18d379f30516561ab9 Content-Type: text/plain; charset=UTF-8 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 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 --001a11409f18d379f30516561ab9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This is an excerpt of Maven 3.1 output on a project, = where I artificially added some errors to the source code:

[INF= O] --- maven-compiler-plugin:3.3:compile (default-compile) @ test ---
[I= NFO] Compiling 2 source files to /home/test/test/target/classes
[INFO] -= ------------------------------------------------------------
[WARNING] C= OMPILATION WARNING :
[INFO] -------------------------------------------= ------------------
[WARNING] /home/test/test/src/main/java/foo/bar/Test.= java:[27,43] unchecked conversion
=C2=A0 required: java.util.Collection&= lt;java.lang.Object>
=C2=A0 found:=C2=A0=C2=A0=C2=A0 java.util.ArrayL= ist
[INFO] 1 warning
[INFO] -----------------------------------------= --------------------
[INFO] --------------------------------------------= -----------------
[ERROR] COMPILATION ERROR :
[INFO] ---------------= ----------------------------------------------
[ERROR] /home/test/test/s= rc/main/java/foo/bar/Test.java:[28,9] cannot find symbol
=C2=A0 symbol:= =C2=A0=C2=A0 method test()
=C2=A0 location: class foo.bar.Test

=
--001a11409f18d379f30516561ab9-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 18 17:05:07 2015 Received: (at 20556-done) by debbugs.gnu.org; 18 May 2015 21:05:07 +0000 Received: from localhost ([127.0.0.1]:49440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YuSDi-0000y1-Dq for submit@debbugs.gnu.org; Mon, 18 May 2015 17:05:07 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:34663) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YuSDf-0000xU-LT for 20556-done@debbugs.gnu.org; Mon, 18 May 2015 17:05:04 -0400 Received: by wguv19 with SMTP id v19so141585616wgu.1 for <20556-done@debbugs.gnu.org>; Mon, 18 May 2015 14:04:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=lZsaB+8o8iKnEv9ixfunoOHH6VvTedgRLUhQdBIxTuA=; b=X2cCagBWyU7ploMMNzqfSVy7WjzgedLcNuahLijRIZ8xHfU1rFLUxixq92CekLAmKv BENj3en48FDlwx/fHfFPltG+iPGHpcXJ9j0rGNEGoAIeq8vrvUuNr1JQf3n9WCst9nzf PxALVeRKEnOUC6l07hIHb7xLKVSURsEZxW7ZqP4pYmqSo+UjsUP/cJKPI9JYjymLcZP/ BuLMBuQHoG3vnG/OqwERZIGkxp3QBFO8fzC74JXxym7xoVotqc1UUgjJVgoXwChIZreI lJdmtKeZ5BltpDZpfsSa5b0mpQnAVA9P5WSh5CfTPDTu8HzPNYr9vOUrLtnEHcgPGHGU h11Q== X-Received: by 10.181.11.137 with SMTP id ei9mr24754109wid.48.1431983097917; Mon, 18 May 2015 14:04:57 -0700 (PDT) Received: from [192.168.1.2] ([82.102.93.54]) by mx.google.com with ESMTPSA id ex5sm14191405wib.2.2015.05.18.14.04.57 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 May 2015 14:04:57 -0700 (PDT) Subject: Re: bug#20556: [PATCH] compilation mode highlights Maven compilation warnings as errors To: Paul Pogonyshev References: <55575117.2080207@yandex.ru> From: Dmitry Gutov Message-ID: <555A53F7.3080305@yandex.ru> Date: Tue, 19 May 2015 00:04:55 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 20556-done Cc: 20556-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) 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. From unknown Sun Jun 22 04:29:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 16 Jun 2015 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator