GNU bug report logs - #77846
[PATCH ]31.0.50; C# dotnet compiler output incorrectly handled by compilation-mode

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: Jostein Kjønigsen <jostein@HIDDEN>; Keywords: patch; dated Wed, 16 Apr 2025 18:26:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 77846) by debbugs.gnu.org; 18 Apr 2025 15:15:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Apr 18 11:15:26 2025
Received: from localhost ([127.0.0.1]:52487 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u5nR5-0001m2-Vb
	for submit <at> debbugs.gnu.org; Fri, 18 Apr 2025 11:15:26 -0400
Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]:44045)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <mattias.engdegard@HIDDEN>)
 id 1u5nQp-0001cF-Bg
 for 77846 <at> debbugs.gnu.org; Fri, 18 Apr 2025 11:15:12 -0400
Received: by mail-lj1-x22e.google.com with SMTP id
 38308e7fff4ca-30c2d427194so17988681fa.0
 for <77846 <at> debbugs.gnu.org>; Fri, 18 Apr 2025 08:15:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1744989296; x=1745594096; darn=debbugs.gnu.org;
 h=to:cc:date:message-id:subject:mime-version
 :content-transfer-encoding:from:sender:from:to:cc:subject:date
 :message-id:reply-to;
 bh=KHfY7krQx+AwioUMhxqg+DkSheyAjpAVZcsTl4MiyF4=;
 b=NqVHjb23LLouyvEw1RXCo8VRtH1lvce7yRbpDJLKflXrZbCkufen+IZtsfwSJ3yn5K
 v98tMT+TwDT0t7GJjMG1HQBKilsIjnYZzBZyofdMbqUjXJUtt0tO/JCJzENUwvF9sN2T
 icj0kRtYW8+96sBwwgDNT2f2uvZlH2b6m0QPkYtrCIVnyRmLY1jvcYy+RN3vxm73Twqj
 BzxBDu+9xkFdkg+gDWl30vu8XOiRoPyPR10N59usManeridQ2Xhmb+q+sTPyvWAZZXne
 JYvJmyIBIedy+N6rIphB7+p+P+L0dKmgO1Yq/hzexOKiuQhD5sCYFfaQFskE1ANSJG0p
 4FMw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1744989296; x=1745594096;
 h=to:cc:date:message-id:subject:mime-version
 :content-transfer-encoding:from:sender:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=KHfY7krQx+AwioUMhxqg+DkSheyAjpAVZcsTl4MiyF4=;
 b=Rf0L9rHKBUyW/Vjg+NtXjA5vCXw5plAyU9IVBM5J0S10VeWASQjVsX0Ma/53RdxRfC
 rP4pZePSkNes1rS0TBfp3NPm8RsCiInF5y05uX/Iw587tbZqvhBgNq0HufVXy10Jsszd
 5kakrYzEOAFGlfr/19mARv2CwhMVWcIok4G4HdqdEzPocy6lCARMZPk8nC01NNHBgeGL
 9V04CUxkrQhVJS1VgWUOtdyp9sC5p3PDhlDrXf+UtvB4UjnGp6EcyO9GE4QA7njfh+5P
 jmohHRIjM1HVg6jHNrnQkWqQbEDuDD+GhgiRmY4izFglBThzBWwZyMRGMxzTanVcxv5t
 AsBw==
X-Forwarded-Encrypted: i=1;
 AJvYcCVXoRaJVv/1xXHllAq0ScI1AcMWDAm2yXB5iB2+PueeRT2xMz6my4JKtRGUzwSEmymKlpEBSw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzCEuWInYZgbDfbvOAT9IjxAYADSEXDYUEr8rsGUEkkoC8AmSo2
 jcaWT4hMwxQxxKiOSkW4ccT+xkgt0bifocFeqrsrjCdLn/j3KdI2
X-Gm-Gg: ASbGnctZaUDoN5WjC/oSS+PQSpNWVD4vJ/KJM/qySNtz7Rq4HBg+4w0VAKGTlr97PcZ
 pPXRbV25NkSqTC4Rd6ru7wQw3ccfBpTnuQom4qrvURocpmO1gO1ZfYLNxhLqrFUdxI15Tdv3p/H
 MH+H1DNUeHB6lFObaUd9+jc+j30NHyMEVZs/AuHI6mA80VRwM+BarqySIhUIgth+ZzlEecvrvx+
 5o5VTDo+g3JcyopComFaZ0CL4Mn1TJYtNwmGVKrxFyWnFOFuaroZilk5oGbcFIh+7CCDdJ3MUWz
 U1y8Dc5DVxlQnftRLAYDJ3YCV4sktDecr9fuRJTVgcR82dFRf0JPq1elvUxUiTObOVwyU21Pgvb
 84LbOgD+lNKIXdtOmsuFy7zE75RsepYc=
X-Google-Smtp-Source: AGHT+IHf0NUrM6E9+NX+wUCBm7M8G2h6cOq8dL7xlu1U/DMitu6JwxdBmuciffl+Q+bukhYEvJg23A==
X-Received: by 2002:a05:651c:883:b0:30b:aabf:fa8 with SMTP id
 38308e7fff4ca-3109055407bmr14383451fa.28.1744989296180; 
 Fri, 18 Apr 2025 08:14:56 -0700 (PDT)
Received: from smtpclient.apple (c188-150-186-155.bredband.tele2.se.
 [188.150.186.155]) by smtp.gmail.com with ESMTPSA id
 38308e7fff4ca-31090782fc4sm2528801fa.35.2025.04.18.08.14.55
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 18 Apr 2025 08:14:55 -0700 (PDT)
From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= <mattias.engdegard@HIDDEN>
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\))
Subject: bug#77846: [PATCH ]31.0.50; C# dotnet compiler output incorrectly
 handled by compilation-mode 
Message-Id: <86BC72DE-B99A-4F33-9FD1-331D01AB30E0@HIDDEN>
Date: Fri, 18 Apr 2025 17:14:54 +0200
To: =?utf-8?Q?Jostein_Kj=C3=B8nigsen?= <jostein@HIDDEN>
X-Mailer: Apple Mail (2.3654.120.0.1.15)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77846
Cc: Eli Zaretskii <eliz@HIDDEN>, 77846 <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: -1.0 (-)

+          (optional (seq "{ESC}=1B=3D")) ; escape sequence sometimes =
found on first line of output

Please keep lines within 80 columns, and don't put actual control chars =
in source code; use escape sequences. You don't need the `seq`.
Something like

+          (opt "\e=3D")  ; sequence sometimes found on first line of =
output

perhaps.

As Eli remarked we'd like to see an example in compilation.txt, and just =
as important is adding a test case in compile-tests.el.

It would also be useful to know precisely what that escape sequence is =
supposed to be doing. As far as I can tell, `ESC =3D` is the DECKPAM =
sequence that puts the keypad in application mode, which makes no sense =
at all in this context.

Perhaps it's compilation-filter-hook that really should be used to =
filter it out, and other sequences like it?





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

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


Received: (at 77846) by debbugs.gnu.org; 17 Apr 2025 05:52:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 17 01:52:55 2025
Received: from localhost ([127.0.0.1]:45452 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u5IBD-0004Uc-Dk
	for submit <at> debbugs.gnu.org; Thu, 17 Apr 2025 01:52:55 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:57604)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1u5IBA-0004U2-7f
 for 77846 <at> debbugs.gnu.org; Thu, 17 Apr 2025 01:52:52 -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 1u5IB4-0000zi-Sz; Thu, 17 Apr 2025 01:52:46 -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=NJA8cmoLVMFmn1298JeuUhNhhwxYCTVgkwp5nGDm4iU=; b=MVXs1Q+EcIIsUkvcRfNJ
 4HnDQ73SNvPE/EOPHDJXPTUgmjME2TchzpNRnxa/sS+fRE0wis2LGYTKPKCld6yKgW/xsze7C3bid
 fvpDAoqNZplallO7FK07M080Lcf9yIQnaF/1PLsPWCqdSSH6z3L/xu4I0qluk4iS6Qul24dwiTuX+
 Qp0eBGpSR3Sukk/7DdoNAO1u1VGg5ZV/2BBvXgH7VYIw2RbVxW/dik/Ql5QgYl5KliabHuQZbzCUd
 oD+VkVjcaOdR2ls+0Iu0RENXaKfbcJaDeSYfmYSh3m14B3ioGWOzN+loFgpIxWp1GAcxu3E5MNrl/
 i8af7gDJK/1PVA==;
Date: Thu, 17 Apr 2025 08:52:42 +0300
Message-Id: <8634e7fi6t.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Jostein =?utf-8?Q?Kj=C3=B8nigsen?= <jostein@HIDDEN>
In-Reply-To: <4EC63677-D8D5-4966-A3C0-0DE5A1637149@HIDDEN>
 (message from Jostein =?utf-8?Q?Kj=C3=B8nigsen?= on Wed, 16 Apr 2025
 20:24:44 +0200)
Subject: Re: bug#77846: [PATCH ]31.0.50;
 C# dotnet compiler output incorrectly handled by compilation-mode
References: <4EC63677-D8D5-4966-A3C0-0DE5A1637149@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: 77846
Cc: 77846 <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: Jostein Kjønigsen <jostein@HIDDEN>
> Date: Wed, 16 Apr 2025 20:24:44 +0200
> 
> When using Emacs to compile a modern C# project, one uses the dotnet CLI to do so (dotnet build).
> 
> The output from recent dotnet CLI versions are (unfortunately) optmized for "fancyness" these days, which means it contains various escape sequences.
> 
> The current regexp in compilation-mode incorrectly includes this escape sequence for the first error reported, making navigation to the first error found fail.
> 
> Attached is a patch which excludes this escape sequence from the captured value, fixing navigation again.

Thanks, but please also update etc/compilation.txt accordingly.




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

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


Received: (at submit) by debbugs.gnu.org; 16 Apr 2025 18:25:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 16 14:25:33 2025
Received: from localhost ([127.0.0.1]:41833 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1u57S0-00079i-M6
	for submit <at> debbugs.gnu.org; Wed, 16 Apr 2025 14:25:32 -0400
Received: from lists.gnu.org ([2001:470:142::17]:49060)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <jostein@HIDDEN>)
 id 1u57Ru-00075b-Cc
 for submit <at> debbugs.gnu.org; Wed, 16 Apr 2025 14:25:29 -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 <jostein@HIDDEN>)
 id 1u57RU-00073Q-PU
 for bug-gnu-emacs@HIDDEN; Wed, 16 Apr 2025 14:25:07 -0400
Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <jostein@HIDDEN>)
 id 1u57RS-0005I0-80
 for bug-gnu-emacs@HIDDEN; Wed, 16 Apr 2025 14:25:00 -0400
Received: from phl-compute-03.internal (phl-compute-03.phl.internal
 [10.202.2.43])
 by mailfout.stl.internal (Postfix) with ESMTP id A8C951140254
 for <bug-gnu-emacs@HIDDEN>; Wed, 16 Apr 2025 14:24:56 -0400 (EDT)
Received: from phl-mailfrontend-01 ([10.202.2.162])
 by phl-compute-03.internal (MEProxy); Wed, 16 Apr 2025 14:24:56 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 secure.kjonigsen.net; 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=1744827896; x=1744914296; bh=Lm5sIjixAH
 p1KFYLjNmqM6zsmpvBuXqXYyK4Wh5ACNI=; b=LFxq2WaJ1LO3Ax9/gPfPVJTxX6
 uAiDCKZNaHCohBy6sgmsjFaAYvqWRI0wVASMARplqsgPUS1/2z5uI9ffKfoV+8xx
 K9DV3cahHlToseoGO61MzEXr1CeHs705jckQ5YQE2oL7Y7Gb7zAXA/P9a04Kmdde
 oE5eOork/tuFJZy/3UroMgBFjeKLZkSgzmSXq/UbepwhEh1zHN0wOhbLaITsDi61
 3mx+35wBx3BjYwXt80xLNwkWKV4YWrRc+Xg+M8VqCpKtYxJgd7yAlO1tZ7sToKD5
 JWGbDJ9VdhMXTod110NRKr1ygOzxqAPH1YGyRJ3BGjVvMDFWFnSiSXHxuQWQ==
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-sender:x-me-sender:x-sasl-enc; s=fm2; t=1744827896; x=
 1744914296; bh=Lm5sIjixAHp1KFYLjNmqM6zsmpvBuXqXYyK4Wh5ACNI=; b=l
 qpaeuCN8xPomsprHgx/85066aifv+/9YhLSJKaObVFRdVhBBptsmY3pV8sg7YbcF
 4eMxPceVyiq24RyFBPFLqt5roZ+wf+WW80ycbZnl7O6zo0pgsGFLnKorRn5e52pG
 t8ZU4pRUG+8wLszbJKlXmnAF/Iux23eAMG1cSnNpAWYwf5GOdWEr/WtSaOZXewaD
 DQjCPhlRWh1etYTjSXf9i9On/qvAmAt14fwEQ+kEudAOXVEdDaPgKbanoZ7JHpU9
 y7tQId4yCStDGRE6ZN0f1+GnX4/oZeC2j9zRa0WlQacpk7UMCkN2VElHGxy+TiB1
 ydtF3eSfyOW/rZEUkj1Aw==
X-ME-Sender: <xms:-PX_ZzmKHFrdLqWRiStIjuSKWLv5iwH1SFCPZ08TiKfzep2_ZWJXpQ>
 <xme:-PX_Z20s2CSZYnoMNVbX5tKl1xwl-2ojbu0dDLzVN_prE57CixQnoGGEgMu3v-LW7
 KUfgefBqzTFwKvTgQ>
X-ME-Received: <xmr:-PX_Z5ow0VmUnZlZ1lmnL6HOEk2yjNSMV6uCnihGHo_xH0faq_BWZ2yxih_zTVD6wFs2o_o0Dhc35WYloZK8bRyz1zLOMIW2hg>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvvdejtdekucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv
 pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhtg
 gguffkfffvofesrgdtmherhhdtjeenucfhrhhomheplfhoshhtvghinhcumfhjpphnihhg
 shgvnhcuoehjohhsthgvihhnsehsvggtuhhrvgdrkhhjohhnihhgshgvnhdrnhgvtheqne
 cuggftrfgrthhtvghrnhepffdtieegteeggffhkefgtdelffdufffgffefvdefffeghedu
 vdejvdfhvdffveeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh
 hfrhhomhepjhhoshhtvghinhesshgvtghurhgvrdhkjhhonhhighhsvghnrdhnvghtpdhn
 sggprhgtphhtthhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegsuhhgqd
 hgnhhuqdgvmhgrtghssehgnhhurdhorhhg
X-ME-Proxy: <xmx:-PX_Z7l5l85zf7_zeaG-AUnFmJIPuBB_Kri43OvsvBVWKRI-SIl8xg>
 <xmx:-PX_Zx3Oqu5GHvCTZq5uTlOoiLgRSfSdxNvP92C472NZ5N5mnoYHCg>
 <xmx:-PX_Z6tsir3i7lA-TZXmp0skm4HPUqe2eaTZB4yk9XJUQMUsYIUsKg>
 <xmx:-PX_Z1V40_tEBS-wYFKPnbZIlES2qiVjbNzBrtu7oXVlB16I9SJ_Jw>
 <xmx:-PX_Z-mrCf83Ahf3AvCAuP6023wkmi5rGGX30P_80vf2WYWH3tAMW66->
Feedback-ID: ib2f84088:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA for
 <bug-gnu-emacs@HIDDEN>; Wed, 16 Apr 2025 14:24:55 -0400 (EDT)
From: =?utf-8?Q?Jostein_Kj=C3=B8nigsen?= <jostein@HIDDEN>
Content-Type: multipart/alternative;
 boundary="Apple-Mail=_5316262A-FFC0-4975-8D05-4C17194BFA3C"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\))
Subject: [PATCH ]31.0.50; C# dotnet compiler output incorrectly handled by
 compilation-mode
Message-Id: <4EC63677-D8D5-4966-A3C0-0DE5A1637149@HIDDEN>
Date: Wed, 16 Apr 2025 20:24:44 +0200
To: bug-gnu-emacs@HIDDEN
X-Mailer: Apple Mail (2.3826.400.131.1.6)
Received-SPF: pass client-ip=202.12.124.149;
 envelope-from=jostein@HIDDEN;
 helo=fout-b6-smtp.messagingengine.com
X-Spam_score_int: -26
X-Spam_score: -2.7
X-Spam_bar: --
X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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-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 (/)


--Apple-Mail=_5316262A-FFC0-4975-8D05-4C17194BFA3C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hey everyone.

When using Emacs to compile a modern C# project, one uses the dotnet CLI =
to do so (dotnet build).

The output from recent dotnet CLI versions are (unfortunately) optmized =
for "fancyness" these days, which means it contains various escape =
sequences.

The current regexp in compilation-mode incorrectly includes this escape =
sequence for the first error reported, making navigation to the first =
error found fail.

Attached is a patch which excludes this escape sequence from the =
captured value, fixing navigation again.

=E2=80=94
Kind Regards
Jostein Kj=C3=B8nigsen

=EF=BF=BC=

--Apple-Mail=_5316262A-FFC0-4975-8D05-4C17194BFA3C
Content-Type: multipart/mixed;
	boundary="Apple-Mail=_4794B13F-F741-49E8-8F1A-BCD060DA299C"


--Apple-Mail=_4794B13F-F741-49E8-8F1A-BCD060DA299C
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;"><div>Hey =
everyone.</div><div><br></div><div>When using Emacs to compile a modern =
C# project, one uses the dotnet CLI to do so (dotnet =
build).</div><div><br></div><div>The output from recent dotnet CLI =
versions are (unfortunately) optmized for "fancyness" these days, which =
means it contains various escape sequences.</div><div><br></div><div>The =
current regexp in compilation-mode incorrectly includes this escape =
sequence for the first error reported, making navigation to the first =
error found fail.</div><div><br></div><div>Attached is a patch which =
excludes this escape sequence from the captured value, fixing navigation =
again.</div><br><div>
<meta charset=3D"UTF-8"><div>=E2=80=94<br>Kind Regards<br>Jostein =
Kj=C3=B8nigsen</div><div><br></div>
</div>
</body></html>=

--Apple-Mail=_4794B13F-F741-49E8-8F1A-BCD060DA299C
Content-Disposition: attachment;
	filename=0001-compile.el-Handle-dotnet-compiler-escape-sequences.patch
Content-Type: application/octet-stream;
	x-unix-mode=0644;
	name="0001-compile.el-Handle-dotnet-compiler-escape-sequences.patch"
Content-Transfer-Encoding: quoted-printable

=46rom=205aeeb99079482f47652897fd364daf80c11ec806=20Mon=20Sep=2017=20=
00:00:00=202001=0AFrom:=20=3D?UTF-8?q?Jostein=3D20Kj=3DC3=3DB8nigsen?=3D=20=
<jostein@HIDDEN>=0ADate:=20Mon,=2024=20Mar=202025=2011:51:19=20=
+0100=0ASubject:=20[PATCH]=20compile.el:=20Handle=20dotnet=20compiler=20=
escape=20sequences.=0A=0Acompilation-error-regexp-alist-alist:=20Exclude=20=
known=20escape=20sequences=0Afrom=20filename.=0A---=0A=20=
lisp/progmodes/compile.el=20|=202=20++=0A=201=20file=20changed,=202=20=
insertions(+)=0A=0Adiff=20--git=20a/lisp/progmodes/compile.el=20=
b/lisp/progmodes/compile.el=0Aindex=201ca58b3ac7d..5f3bc606287=20100644=0A=
---=20a/lisp/progmodes/compile.el=0A+++=20b/lisp/progmodes/compile.el=0A=
@@=20-717,8=20+717,10=20@@=20compilation-error-regexp-alist-alist=0A=20=0A=
=20=20=20=20=20;;=20Typescript=20compilation=20prior=20to=20tsc=20=
version=202.7,=20"plain"=20format:=0A=20=20=20=20=20;;=20=
greeter.ts(30,12):=20error=20TS2339:=20Property=20'foo'=20does=20not=20=
exist.=0A+=20=20=20=20;;=20Also=20used=20by=20"dotnet=20build"=0A=20=20=20=
=20=20(typescript-tsc-plain=0A=20=20=20=20=20=20,(rx=20bol=0A+=20=20=20=20=
=20=20=20=20=20=20(optional=20(seq=20"=1B=3D"))=20;=20escape=20sequence=20=
sometimes=20found=20on=20first=20line=20of=20output=0A=20=20=20=20=20=20=20=
=20=20=20=20(group=20(not=20(in=20"=20\t\n()"))=20=20=20;=201:=20file=0A=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20(*=20(not=20(in=20=
"\n()"))))=0A=20=20=20=20=20=20=20=20=20=20=20"("=0A--=20=0A2.49.0=0A=0A=

--Apple-Mail=_4794B13F-F741-49E8-8F1A-BCD060DA299C
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"></body></html>
--Apple-Mail=_4794B13F-F741-49E8-8F1A-BCD060DA299C--

--Apple-Mail=_5316262A-FFC0-4975-8D05-4C17194BFA3C--




Acknowledgement sent to Jostein Kjønigsen <jostein@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#77846; 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: Fri, 18 Apr 2025 15:30:02 UTC

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