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

Previous Next

Package: emacs;

Reported by: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>

Date: Wed, 16 Apr 2025 18:26:03 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Jostein Kjønigsen <jostein <at> secure.kjonigsen.net>
To: 77846 <at> debbugs.gnu.org
Subject: bug#77846: [PATCH ]31.0.50; C# dotnet compiler output incorrectly handled by compilation-mode
Date: Wed, 16 Apr 2025 20:24:44 +0200
[Message part 1 (text/plain, inline)]
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.

—
Kind Regards
Jostein Kjønigsen


[Message part 2 (text/html, inline)]
[0001-compile.el-Handle-dotnet-compiler-escape-sequences.patch (application/octet-stream, attachment)]
[Message part 4 (text/html, inline)]

This bug report was last modified 19 days ago.

Previous Next


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