[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode d9d257c 325/459: Add compilation-mode suppo
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode d9d257c 325/459: Add compilation-mode support for dotnet core &/ nuget errors. |
Date: |
Sun, 22 Aug 2021 13:59:54 -0400 (EDT) |
branch: externals/csharp-mode
commit d9d257cf9a31f2bf83196d3528f5562aac3c7f83
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Add compilation-mode support for dotnet core &/ nuget errors.
---
csharp-mode-tests.el | 7 ++++++-
csharp-mode.el | 15 ++++++++++++++-
test-files/dotnet-nuget-error.txt | 1 +
test-files/dotnet-nuget-warning.txt | 1 +
4 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index f18cf02..0cf3309 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -237,7 +237,12 @@
"C:\\inservice\\SystemTesting\\OperateDeviceProxy\\OperateDevice_Proxy\\Program.cs"
"c:\\inservice\\systemtesting\\operationsproxy\\operationsproxy.cpp"
"c:\\inservice\\systemtesting\\operationsproxy\\operationsproxy.cpp"
-
"c:\\inservice\\systemtesting\\operationsproxy\\operationsproxy.cpp"))))
+
"c:\\inservice\\systemtesting\\operationsproxy\\operationsproxy.cpp"))
+
+ ("./test-files/dotnet-nuget-error.txt"
,csharp-compilation-re-dotnet-error
+ ("/home/jostein/build/sample-app/sample-app.csproj"))
+ ("./test-files/dotnet-nuget-warning.txt"
,csharp-compilation-re-dotnet-warning
+ ("/home/jostein/build/sample-app/sample-app.csproj"))))
(let* ((file-name (car test-case))
(regexp (cadr test-case))
diff --git a/csharp-mode.el b/csharp-mode.el
index a680f69..2a14bd3 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -370,6 +370,13 @@ casts and declarations are fontified. Used on level 2 and
higher."
"warning [[:alnum:]]+: .+$")
"Regexp to match compilation warning from xbuild.")
+(defconst csharp-compilation-re-dotnet-error
+ "\\([^\r\n]+\\) : error [A-Z]+[0-9]+:")
+
+(defconst csharp-compilation-re-dotnet-warning
+ "\\([^\r\n]+\\) : warning [A-Z]+[0-9]+:")
+
+
(eval-after-load 'compile
(lambda ()
(dolist
@@ -397,7 +404,13 @@ casts and declarations are fontified. Used on level 2 and
higher."
1
nil
(1 compilation-warning-face)
- (4 compilation-warning-face))))
+ (4 compilation-warning-face))
+ (dotnet-error
+ ,csharp-compilation-re-dotnet-error
+ 1)
+ (dotnet-warning
+ ,csharp-compilation-re-dotnet-warning
+ 1 nil nil 1)))
(add-to-list 'compilation-error-regexp-alist-alist regexp)
(add-to-list 'compilation-error-regexp-alist (car regexp)))))
diff --git a/test-files/dotnet-nuget-error.txt
b/test-files/dotnet-nuget-error.txt
new file mode 100644
index 0000000..d746737
--- /dev/null
+++ b/test-files/dotnet-nuget-error.txt
@@ -0,0 +1 @@
+/home/jostein/build/sample-app/sample-app.csproj : error NU1102: - Found 24
version(s) in Net5 [ Nearest version: 5.0.0-rc.2.20513.86 ]
[/home/jostein/build/sample-app/sample-app.sln]
diff --git a/test-files/dotnet-nuget-warning.txt
b/test-files/dotnet-nuget-warning.txt
new file mode 100644
index 0000000..0cd5656
--- /dev/null
+++ b/test-files/dotnet-nuget-warning.txt
@@ -0,0 +1 @@
+/home/jostein/build/sample-app/sample-app.csproj : warning NU1604: Project
dependency JetBrains.Annotations does not contain an inclusive lower bound.
Include a lower bound in the dependency version to ensure consistent restore
results.
- [elpa] externals/csharp-mode 44740eb 282/459: Fix font lock breaks on strings #151, (continued)
- [elpa] externals/csharp-mode 44740eb 282/459: Fix font lock breaks on strings #151, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f6314e5 295/459: Merge pull request #166 from josteink/rework, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode da8eab4 290/459: const is a modifier, not a type., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5a7828f 298/459: Add xml like doc comments font locking, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode e0a2975 296/459: This is clearly a new version! Lets make it 0.10.0, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 8af265d 302/459: Change licenses inside the .el files also, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a753601 308/459: Add delegate to keywords, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode b928233 304/459: Add matchers-before and matchers-after, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f774b55 311/459: Add test for function fontification, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d458586 316/459: Use c-typeof-kwds, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d9d257c 325/459: Add compilation-mode support for dotnet core &/ nuget errors.,
ELPA Syncer <=
- [elpa] externals/csharp-mode 15bc3cb 326/459: Add support for dotnet test failures., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f4a0693 328/459: Richer font highlighting, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 82bcec9 329/459: Add missing LinQ keywords, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 91c0f3c 330/459: Extract type matcher into defconst, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 098aba3 334/459: Fix improper handling of "new" in buffers., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fa2e596 348/459: Update README.org, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 61bf8e5 352/459: Update build.yml, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2fe22ec 363/459: Update build.yml, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a6caa85 369/459: xUnit failures: Handle actual/expected output before stack-trace., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 134eeb6 289/459: Complete rework, ELPA Syncer, 2021/08/22