emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/csharp-mode eff5dec 345/459: Try improve compilation-mo


From: ELPA Syncer
Subject: [elpa] externals/csharp-mode eff5dec 345/459: Try improve compilation-mode support for dotnet test fails.
Date: Sun, 22 Aug 2021 13:59:58 -0400 (EDT)

branch: externals/csharp-mode
commit eff5dec3939bc4cd96e67d316e9e69e873b51eab
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>

    Try improve compilation-mode support for dotnet test fails.
    
    This addresses https://github.com/josteink/csharp-mode/issues/192.
---
 csharp-mode.el | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/csharp-mode.el b/csharp-mode.el
index cb995b5..d890531 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -427,16 +427,22 @@
 
 (defconst csharp-compilation-re-dotnet-testfail
   (concat
-   "\\[[A-Za-z.]+[[:blank:]]+[0-9]+:[0-9]+:[0-9]+.[0-9]+\\][^(\r\n)]+ 
\\[FAIL\\]\n"
-   "[[:blank:]]+X \\(?:.+\n\\)+"
+   "\\[[A-Za-z.]+[[:blank:]]+[0-9]+:[0-9]+:[0-9]+.[0-9]+\\][^(\n)]+ 
\\[FAIL\\]\n"
+   "[[:blank:]]+X \\(?:.+\n\\)"
+   "[[:blank:]]+Error Message:\n"
+   "[[:blank:]]+\\(?:.+\n\\)"
    "[[:blank:]]+Stack Trace:\n"
-   "[[:blank:]]+at [^\r\n]+ in \\([^\r\n]+\\):line \\([0-9]+\\)"))
+   "[[:blank:]]+at [^\n]+ in \\([^\n]+\\):line \\([0-9]+\\)"))
+
 
 (eval-after-load 'compile
   (lambda ()
     (dolist
         (regexp
-         `((xbuild-error
+         `((dotnet-testfail
+            ,csharp-compilation-re-dotnet-testfail
+            1 2)
+           (xbuild-error
             ,csharp-compilation-re-xbuild-error
             1 2 3 2)
            (xbuild-warning
@@ -465,10 +471,7 @@
             1)
            (dotnet-warning
             ,csharp-compilation-re-dotnet-warning
-            1 nil nil 1)
-           (dotnet-testfail
-            ,csharp-compilation-re-dotnet-testfail
-            1 2)))
+            1 nil nil 1)))
       (add-to-list 'compilation-error-regexp-alist-alist regexp)
       (add-to-list 'compilation-error-regexp-alist (car regexp)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]