From df8ad7f733fb92d0a427ba24e20668ed6e2b266c Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 2 Feb 2022 13:34:53 -0800 Subject: [PATCH] [oni-csharp] Add compilation regular expression for devenv errors --- oni-csharp/oni-csharp.el | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/oni-csharp/oni-csharp.el b/oni-csharp/oni-csharp.el index 3e69208..11c1dcf 100644 --- a/oni-csharp/oni-csharp.el +++ b/oni-csharp/oni-csharp.el @@ -181,6 +181,24 @@ _cs_: Solution (setq lsp-csharp-omnisharp-roslyn-server-dir (expand-file-name "~/scoop/apps/omnisharp/current")))) +(with-eval-after-load 'compile + (add-to-list 'compilation-error-regexp-alist + `(,(rx (minimal-match (one-or-more digit)) ">" + (group (any alpha) + ":\\" + (minimal-match (one-or-more (any alpha "\\" ".")))) + "(" + (group (minimal-match (one-or-more digit))) + "," + (group (minimal-match (one-or-more digit))) + "," + (group (minimal-match (one-or-more digit))) + "," + (group (minimal-match (one-or-more digit))) + "): " + (group "error" (one-or-more any))) + 1 (2 . 4) (3 . 5) 2 6))) + (with-eval-after-load 'csharp-mode (with-eval-after-load 'yasnippet (oni-csharp-snippets-initialize)))