Subject: [PATCH ]31.0.50; C# dotnet compiler output incorrectly handled by compilation-mode

From: Jostein Kjønigsen <[email-masked]>
Date: Wed, 16 Apr 2025 20:24:44 +0200

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

￼