GNU bug report logs - #70797
[PATCH] Make the Compilation mode recognize non-legacy Kotlin/Gradle errors

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Rudolf Adamkovič <rudolf@HIDDEN>; Keywords: patch; dated Mon, 6 May 2024 07:11:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 70797 <at> debbugs.gnu.org:


Received: (at 70797) by debbugs.gnu.org; 8 Jun 2024 11:45:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 08 07:45:01 2024
Received: from localhost ([127.0.0.1]:37621 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sFuVI-0007iB-Mm
	for submit <at> debbugs.gnu.org; Sat, 08 Jun 2024 07:45:01 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42520)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sFuVG-0007hl-AO
 for 70797 <at> debbugs.gnu.org; Sat, 08 Jun 2024 07:44:58 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1sFuUt-0006XX-14; Sat, 08 Jun 2024 07:44:36 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=7JKMyCm9v+bARrhK/3pv+sDMhLbCU73NaZSTzb0OrgQ=; b=W8KPWvunwQ/D2ffYExlX
 JY+VTlO+XgYnWPzXzN9UWHWv8rpWYev7AFegxyfVlZazESpvglXUlIjPAWH4CCpL9Nf+6PoPM7OUA
 Rt+Ep8Ucr2sKBAOnHxPo3JPJkseXGupfd8eukEbrmLxJyceh8rd4z0EY0zv0Rcb00CILBLad7AvlF
 hcRv2VYEqQmRi9cKK1fOwiu7AkpPkZ4dHFkDdZNaFlaayvZGTq7K8q0QL7Z8S/czzLOZLCIaGDUbc
 HX0PRQF9wpWQ6yJ7aGGXZKyUix8R0NXtZANZn766a/CHsx/dRahKN7qQTLO0dPN1m6spD+VgqimRL
 CMOJIkJwpEAaRQ==;
Date: Sat, 08 Jun 2024 14:44:31 +0300
Message-Id: <86y17fd5gg.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: rudolf@HIDDEN
In-Reply-To: <864jam1ggi.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 25
 May 2024 10:46:53 +0300)
Subject: Re: bug#70797: [PATCH] Make the Compilation mode recognize non-legacy
 Kotlin/Gradle errors
References: <m2fruvx5xv.fsf@HIDDEN> <86jzk03exp.fsf@HIDDEN>
 <864jam1ggi.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70797
Cc: 70797 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ping! Ping! Can we please resolve this issue?

> Cc: 70797 <at> debbugs.gnu.org
> Date: Sat, 25 May 2024 10:46:53 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> Ping!  Can we please make progress with resolving this issue?
> 
> > Cc: 70797 <at> debbugs.gnu.org
> > Date: Sat, 11 May 2024 11:56:02 +0300
> > From: Eli Zaretskii <eliz@HIDDEN>
> > 
> > > From: Rudolf Adamkovič <rudolf@HIDDEN>
> > > Date: Mon, 06 May 2024 00:14:04 +0200
> > > 
> > > >From 8ff95a02a321d730e2c3171b18ddb55f3a554d20 Mon Sep 17 00:00:00 2001
> > > From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= <rudolf@HIDDEN>
> > > Date: Thu, 2 May 2024 19:06:11 +0200
> > > Subject: [PATCH] Make the Compilation mode recognize non-legacy Kotlin/Gradle
> > >  errors
> > > 
> > > The Compilation mode recognizes Kotlin/Gradle errors but only in the old
> > > format.  The new format, which has been in wide use for about a year, is
> > > not supported.  This patch adds support for the new format.
> > > 
> > > * etc/compilation.txt:
> > > (symbols): Add a non-legacy Kotlin/Gradle warning and error.
> > > * lisp/progmodes/compile.el:
> > > (compilation-error-regexp-alist-alist): Rename 'gradle-kotlin' to
> > > 'gradle-kotlin-legacy' and add 'grade-kotlin' that matches errors and
> > > warnings outputted by non-legacy Kotlin/Gradle.
> > > ---
> > >  etc/compilation.txt       | 13 +++++++++++--
> > >  lisp/progmodes/compile.el | 20 +++++++++++++++++---
> > >  2 files changed, 28 insertions(+), 5 deletions(-)
> > 
> > Thanks, but:
> > 
> >   . applying this fails compile-tests in the test suite, so I guess
> >     some adjustment there is also needed;
> >   . you removed the comment with the pointer to kotlin sources, which
> >     might be still useful for the legacy format (unless the URL is no
> >     longer valid), so please restore that if the pointer can still be
> >     useful
> > 
> > Thanks.
> > 
> > 
> > 
> > 
> 
> 
> 
> 




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70797; Package emacs. Full text available.

Message received at 70797 <at> debbugs.gnu.org:


Received: (at 70797) by debbugs.gnu.org; 25 May 2024 07:47:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 25 03:47:12 2024
Received: from localhost ([127.0.0.1]:41858 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sAm7T-0006vd-TX
	for submit <at> debbugs.gnu.org; Sat, 25 May 2024 03:47:12 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53128)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sAm7S-0006vW-5d
 for 70797 <at> debbugs.gnu.org; Sat, 25 May 2024 03:47:11 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1sAm7F-0007az-Eo; Sat, 25 May 2024 03:46:57 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=VhJp4i8JYPhl74k2GaUYhlY6ICrQ9u87fJlFcXBwkpU=; b=C4DFtz+1788CGsSVn4sa
 QoSzHuJ6bP3UeHuwMnNipiBNsPqG8CQOuIK9gUm6wHgo5/iIYT8QIfC+k0TUHUq76QIsiY8Jv8Jk/
 1FOGA8PvpMj8GyC9NQUfMvp3lsKZFZjjNw6XL88hk0UITOkH1z0SgD1ZdGuF39YPNLejqtIEyMN3A
 QU8fCzUtNI0LttdWo1F6qMXnyKyZ1aS1zBzpYOUBQWx0dBZygvD9GE6VipLe0SbF5rgLgG3yQM4U8
 rMA3Y9WMkd3p2PGB9zr8wMgvKnMdKPzD9LwcfDrpclu4gfokhvwx/iDJSH4Xfq3JdzzyToAtRcMj0
 ZMhtSKiXnglEZw==;
Date: Sat, 25 May 2024 10:46:53 +0300
Message-Id: <864jam1ggi.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: rudolf@HIDDEN
In-Reply-To: <86jzk03exp.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 11
 May 2024 11:56:02 +0300)
Subject: Re: bug#70797: [PATCH] Make the Compilation mode recognize non-legacy
 Kotlin/Gradle errors
References: <m2fruvx5xv.fsf@HIDDEN> <86jzk03exp.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70797
Cc: 70797 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ping!  Can we please make progress with resolving this issue?

> Cc: 70797 <at> debbugs.gnu.org
> Date: Sat, 11 May 2024 11:56:02 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> > From: Rudolf Adamkovič <rudolf@HIDDEN>
> > Date: Mon, 06 May 2024 00:14:04 +0200
> > 
> > >From 8ff95a02a321d730e2c3171b18ddb55f3a554d20 Mon Sep 17 00:00:00 2001
> > From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= <rudolf@HIDDEN>
> > Date: Thu, 2 May 2024 19:06:11 +0200
> > Subject: [PATCH] Make the Compilation mode recognize non-legacy Kotlin/Gradle
> >  errors
> > 
> > The Compilation mode recognizes Kotlin/Gradle errors but only in the old
> > format.  The new format, which has been in wide use for about a year, is
> > not supported.  This patch adds support for the new format.
> > 
> > * etc/compilation.txt:
> > (symbols): Add a non-legacy Kotlin/Gradle warning and error.
> > * lisp/progmodes/compile.el:
> > (compilation-error-regexp-alist-alist): Rename 'gradle-kotlin' to
> > 'gradle-kotlin-legacy' and add 'grade-kotlin' that matches errors and
> > warnings outputted by non-legacy Kotlin/Gradle.
> > ---
> >  etc/compilation.txt       | 13 +++++++++++--
> >  lisp/progmodes/compile.el | 20 +++++++++++++++++---
> >  2 files changed, 28 insertions(+), 5 deletions(-)
> 
> Thanks, but:
> 
>   . applying this fails compile-tests in the test suite, so I guess
>     some adjustment there is also needed;
>   . you removed the comment with the pointer to kotlin sources, which
>     might be still useful for the legacy format (unless the URL is no
>     longer valid), so please restore that if the pointer can still be
>     useful
> 
> Thanks.
> 
> 
> 
> 




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70797; Package emacs. Full text available.

Message received at 70797 <at> debbugs.gnu.org:


Received: (at 70797) by debbugs.gnu.org; 11 May 2024 08:56:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 11 04:56:13 2024
Received: from localhost ([127.0.0.1]:47132 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s5iWa-0006ss-TY
	for submit <at> debbugs.gnu.org; Sat, 11 May 2024 04:56:13 -0400
Received: from eggs.gnu.org ([209.51.188.92]:33286)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1s5iWZ-0006sm-27
 for 70797 <at> debbugs.gnu.org; Sat, 11 May 2024 04:56:12 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1s5iWU-0001y1-Ed; Sat, 11 May 2024 04:56:06 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=mshnIxk7Ri9KA9pfR5mZ0hzqAJwNhDrFY1ePI3eYE6M=; b=ZRye67SKM8xwrbLaS6Xu
 InXvU3PWzJYAs+rkRyaJlFHSFM82rG87mc1vE6Hd1tO9uo/kOlTsCDU/Vxxi9jnQxYAK78xV6K6u3
 WfEGy0iqjuLW6fM1KOtje1986Ho98W6Z4R4Gu5s/ZVQPzi+lDln2YvBRcnMgMRx8u3HF2ZLt3t/zY
 2ZMJj2rlnur8Y5cSQ010sKuFyQj0XAZLUOWfHvNsO6TtJ/OrWfBjOFlb8moQnt9aOgV9lVduVTSjn
 dw1AjrK6ugyCt45Fui4aoHh0PCIfutb5VRSwWxcTNBA2OLgazhRma36NS/bq6oB3S0mq25MBqkQjN
 OSpW/Cqugr7AKQ==;
Date: Sat, 11 May 2024 11:56:02 +0300
Message-Id: <86jzk03exp.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= <rudolf@HIDDEN>
In-Reply-To: <m2fruvx5xv.fsf@HIDDEN> (message from Rudolf
 =?utf-8?Q?Adamkovi=C4=8D?= on Mon, 06 May 2024 00:14:04 +0200)
Subject: Re: bug#70797: [PATCH] Make the Compilation mode recognize non-legacy
 Kotlin/Gradle errors
References: <m2fruvx5xv.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 70797
Cc: 70797 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Rudolf Adamkovič <rudolf@HIDDEN>
> Date: Mon, 06 May 2024 00:14:04 +0200
> 
> >From 8ff95a02a321d730e2c3171b18ddb55f3a554d20 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= <rudolf@HIDDEN>
> Date: Thu, 2 May 2024 19:06:11 +0200
> Subject: [PATCH] Make the Compilation mode recognize non-legacy Kotlin/Gradle
>  errors
> 
> The Compilation mode recognizes Kotlin/Gradle errors but only in the old
> format.  The new format, which has been in wide use for about a year, is
> not supported.  This patch adds support for the new format.
> 
> * etc/compilation.txt:
> (symbols): Add a non-legacy Kotlin/Gradle warning and error.
> * lisp/progmodes/compile.el:
> (compilation-error-regexp-alist-alist): Rename 'gradle-kotlin' to
> 'gradle-kotlin-legacy' and add 'grade-kotlin' that matches errors and
> warnings outputted by non-legacy Kotlin/Gradle.
> ---
>  etc/compilation.txt       | 13 +++++++++++--
>  lisp/progmodes/compile.el | 20 +++++++++++++++++---
>  2 files changed, 28 insertions(+), 5 deletions(-)

Thanks, but:

  . applying this fails compile-tests in the test suite, so I guess
    some adjustment there is also needed;
  . you removed the comment with the pointer to kotlin sources, which
    might be still useful for the legacy format (unless the URL is no
    longer valid), so please restore that if the pointer can still be
    useful

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#70797; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 May 2024 07:10:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 06 03:10:39 2024
Received: from localhost ([127.0.0.1]:36178 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1s3sUd-0005Vc-Tm
	for submit <at> debbugs.gnu.org; Mon, 06 May 2024 03:10:39 -0400
Received: from lists.gnu.org ([2001:470:142::17]:51398)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rudolf@HIDDEN>) id 1s3k84-0008An-3H
 for submit <at> debbugs.gnu.org; Sun, 05 May 2024 18:14:45 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rudolf@HIDDEN>)
 id 1s3k7Z-0007zm-Mb
 for bug-gnu-emacs@HIDDEN; Sun, 05 May 2024 18:14:14 -0400
Received: from wfout4-smtp.messagingengine.com ([64.147.123.147])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rudolf@HIDDEN>)
 id 1s3k7X-0008Ds-EV
 for bug-gnu-emacs@HIDDEN; Sun, 05 May 2024 18:14:13 -0400
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46])
 by mailfout.west.internal (Postfix) with ESMTP id 538401C0010D
 for <bug-gnu-emacs@HIDDEN>; Sun,  5 May 2024 18:14:08 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute2.internal (MEProxy); Sun, 05 May 2024 18:14:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamkovic.org;
 h=cc:content-type:content-type:date:date:from:from:in-reply-to
 :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1;
 t=1714947247; x=1715033647; bh=OOvKICg5qQryx1KnkMdtfMmadQCnwnDD
 pLRxhzf2X38=; b=d6yrlSJkD6olwL7PsZsAIbaJGOGcttcUAntH87qNxxuvineT
 8KKoFHB3Av40br5nYiMyROYInJ3XJ/Uz+uazePSyfG9LixJHA/zpEQVn8kF32lfm
 JEF8f9/xKvvoEMKcUob8ytvCHk4WoybTm3mrtCU2y32SHzIhiKZNs52vAjTS8uIM
 +SC3tN7BM7mBc2wvrCJOeLANACJXmp5foSDYedHKV0djD16zFsJjsGaydJVwvPdr
 EwWavEGqBdY+aZsg0/bW8MnnGPa9uMqDGFhGGMWXGUjyyOcAGnqCfuXfqtDzzZER
 YqMYhcubuAmu6gZqpRpnbwTrcalKVgUpBX5JCA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-type:content-type:date:date
 :feedback-id:feedback-id:from:from:in-reply-to:message-id
 :mime-version:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=
 1714947247; x=1715033647; bh=OOvKICg5qQryx1KnkMdtfMmadQCnwnDDpLR
 xhzf2X38=; b=PzyC7krUI2Kr2VdEZTHwiFmjkeYdEaqmMw9oVfKFK/2Oo8VoU+M
 PiQ5x39A+7UvktsUHY2Rf+Zz+HlXr/pwvKtRpY/ENQSF12A4eqUOlOok+ixXOTTA
 sfqaJu/x0oCmDclTYqS1/x/EA1XrplR/XDh+zM62tMy3bZ9G3oqSrDd/YD6sZ2y2
 dQMrENvVoNUafRCqBbojHiaXOY6obUwOLykOJ33+ar/2rRhkojC/Fq7yQWhzZImL
 eqRSqCEge+eMsVO4jRzdONoGFgwih40EyXg52eE3qX935dnMBTqdGkdqF4DbWUGa
 gGAS8u9SaxJ7z2c/pcA1OOReHj45wKIsHnA==
X-ME-Sender: <xms:rwQ4ZvrSZpwmnCCXFlbECx-0T59gHcbmPVjuFV6_AbHnbhDjFeUMeA>
 <xme:rwQ4ZpqMwosjZUeKaZuYalYTuwt-CTJWZ-D2GWKX1WU2arg_bHbn2acaDcmcNRAi5
 JatMonYsrU90mW0Bjc>
X-ME-Received: <xmr:rwQ4ZsORgG2crBvaj7Kji0rNhVKfojfhUtCkguSnciTzZh5eBY4BzYjgC3Cn0vAlOhqGRpL5l-o-j7omfGgqoNN_BYmG8XM_XLihC3NwzlWRs8m->
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvhedgtdejucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehmtderredttd
 ejnecuhfhrohhmpeftuhguohhlfhcutegurghmkhhovhhitgcuoehruhguohhlfhesrggu
 rghmkhhovhhitgdrohhrgheqnecuggftrfgrthhtvghrnhepffekfeeuudeftdekveejje
 evteffudetjeetgedtffduuedvjeekvdejueeiveffnecuvehluhhsthgvrhfuihiivgep
 tdenucfrrghrrghmpehmrghilhhfrhhomheprhhuugholhhfsegruggrmhhkohhvihgtrd
 horhhg
X-ME-Proxy: <xmx:rwQ4Zi6uWuHbpJ1IaSg6DgAV014DdB09MEe8OEGkW4LnxT3AOWZzvA>
 <xmx:rwQ4Zu5BxR4dsFjwIWefp84jgbokCSjHbtzZDbLDFPyXHFQlKGUE5A>
 <xmx:rwQ4ZqiCh_9uBvr5ca3T24LlZ9iGZo6gmFhtjrjdIbA6YMnptlhd0Q>
 <xmx:rwQ4Zg4jkyFw-FpB6mhjb3PcAU7bnoamW9dm93cd16JTgF3lYR7Z8Q>
 <xmx:rwQ4ZkQR3DiHchQcYuAokVZaqwjyDw5AM66G2DVmtYIjTSCnEKstn5_K>
Feedback-ID: i88214938:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Sun, 5 May 2024 18:14:07 -0400 (EDT)
From: =?utf-8?Q?Rudolf_Adamkovi=C4=8D?= <rudolf@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: [PATCH] Make the Compilation mode recognize non-legacy Kotlin/Gradle
 errors
Date: Mon, 06 May 2024 00:14:04 +0200
Message-ID: <m2fruvx5xv.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=64.147.123.147; envelope-from=rudolf@HIDDEN;
 helo=wfout4-smtp.messagingengine.com
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 06 May 2024 03:10:34 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

--=-=-=
Content-Type: text/plain

Tags: patch


--=-=-=
Content-Type: text/patch
Content-Disposition: attachment;
 filename=0001-Make-the-Compilation-mode-recognize-non-legacy-Kotli.patch

From 8ff95a02a321d730e2c3171b18ddb55f3a554d20 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= <rudolf@HIDDEN>
Date: Thu, 2 May 2024 19:06:11 +0200
Subject: [PATCH] Make the Compilation mode recognize non-legacy Kotlin/Gradle
 errors

The Compilation mode recognizes Kotlin/Gradle errors but only in the old
format.  The new format, which has been in wide use for about a year, is
not supported.  This patch adds support for the new format.

* etc/compilation.txt:
(symbols): Add a non-legacy Kotlin/Gradle warning and error.
* lisp/progmodes/compile.el:
(compilation-error-regexp-alist-alist): Rename 'gradle-kotlin' to
'gradle-kotlin-legacy' and add 'grade-kotlin' that matches errors and
warnings outputted by non-legacy Kotlin/Gradle.
---
 etc/compilation.txt       | 13 +++++++++++--
 lisp/progmodes/compile.el | 20 +++++++++++++++++---
 2 files changed, 28 insertions(+), 5 deletions(-)

diff --git a/etc/compilation.txt b/etc/compilation.txt
index 05f0829864c..e4e361ecfc7 100644
--- a/etc/compilation.txt
+++ b/etc/compilation.txt
@@ -186,13 +186,22 @@ Warning near line 10 file arrayclash.f: Module contains no executable
 Nonportable usage near line 31 col 9 file assign.f: mixed default and explicit
 
 
-* Gradle with kotlin-gradle-plugin
+* Gradle with Kotlin plugin
 
-symbol: gradle-kotlin
+symbol: grade-kotlin
+
+e: file:///src/Test.kt:267:5 foo: bar
+w: file:///src/Test.kt:267:5 foo: bar
+
+
+* Gradle with Kotlin plugin (legacy)
+
+symbol: gradle-kotlin-legacy
 
 e: /src/Test.kt: (34, 15): foo: bar
 w: /src/Test.kt: (34, 15): foo: bar
 
+
 * Gradle Android resource linking
 
 symbol: gradle-android
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index b18eb81fee1..76a89bea4fc 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -258,10 +258,24 @@ compilation-error-regexp-alist-alist
      "\\(^Warning .*\\)? line[ \n]\\([0-9]+\\)[ \n]\\(?:col \\([0-9]+\\)[ \n]\\)?file \\([^ :;\n]+\\)"
      4 2 3 (1))
 
-    ;; Gradle with kotlin-gradle-plugin (see
-    ;; GradleStyleMessagerRenderer.kt in kotlin sources, see
-    ;; https://youtrack.jetbrains.com/issue/KT-34683).
     (gradle-kotlin
+     ,(rx bol
+          (| (group "w")                ; 1: warning
+             (group (in "iv"))          ; 2: info
+             "e")                       ; error
+          ": "
+          "file://"
+          (group                        ; 3: file
+           (? (in "A-Za-z") ":")
+           (+ (not (in "\n:"))))
+          ":"
+          (group (+ digit))             ; 4: line
+          ":"
+          (group (+ digit))             ; 5: column
+          " ")
+     3 4 5 (1 . 2))
+
+    (gradle-kotlin-legacy
      ,(rx bol
           (| (group "w")                ; 1: warning
              (group (in "iv"))          ; 2: info
-- 
2.39.3 (Apple Git-146)


--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

--=20
"All you have to do is write one true sentence.  Write the truest
sentence that you know."  --- Ernest Miller Hemingway (1899-1961)

Rudolf Adamkovi=C4=8D <rudolf@HIDDEN> [he/him]
Studenohorsk=C3=A1 25, 84103 Bratislava, Slovakia, European Union

--=-=-=--




Acknowledgement sent to Rudolf Adamkovič <rudolf@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#70797; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 8 Jun 2024 12:00:02 UTC

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