[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode 97903a2 327/459: Merge pull request #179 fr
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode 97903a2 327/459: Merge pull request #179 from josteink/feature/compilation-mode-dotnetcore |
Date: |
Sun, 22 Aug 2021 13:59:54 -0400 (EDT) |
branch: externals/csharp-mode
commit 97903a2d37a72aa38cda51ea4d12d961cbc51b9b
Merge: 217d3a7 15bc3cb
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: GitHub <noreply@github.com>
Merge pull request #179 from josteink/feature/compilation-mode-dotnetcore
Extend support for .NET Core in our compilation-mode regexps
---
csharp-mode-tests.el | 9 ++++++++-
csharp-mode.el | 24 +++++++++++++++++++++++-
test-files/dotnet-nuget-error.txt | 1 +
test-files/dotnet-nuget-warning.txt | 1 +
test-files/dotnet-test-fail-xunit.txt | 8 ++++++++
5 files changed, 41 insertions(+), 2 deletions(-)
diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index f18cf02..1bf7b47 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -237,7 +237,14 @@
"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"))
+ ("./test-files/dotnet-test-fail-xunit.txt"
,csharp-compilation-re-dotnet-testfail
+ ("/home/jostein/build/sample-app/Module/Testee.cs"))))
(let* ((file-name (car test-case))
(regexp (cadr test-case))
diff --git a/csharp-mode.el b/csharp-mode.el
index a680f69..50357c2 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -370,6 +370,19 @@ 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]+:")
+
+(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\\)+"
+ "[[:blank:]]+Stack Trace:\n"
+ "[[:blank:]]+at [^\r\n]+ in \\([^\r\n]+\\):line \\([0-9]+\\)"))
+
(eval-after-load 'compile
(lambda ()
(dolist
@@ -397,7 +410,16 @@ 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)
+ (dotnet-testfail
+ ,csharp-compilation-re-dotnet-testfail
+ 1 2)))
(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.
diff --git a/test-files/dotnet-test-fail-xunit.txt
b/test-files/dotnet-test-fail-xunit.txt
new file mode 100644
index 0000000..930308d
--- /dev/null
+++ b/test-files/dotnet-test-fail-xunit.txt
@@ -0,0 +1,8 @@
+[xUnit.net 00:00:00.60]
SampleApp.Module.Tests.TestClass.Some_Testcase_Gone_Wrong [FAIL]
+ X SampleApp.Module.Tests.TestClass.Some_Testcase_Gone_Wrong [2ms]
+ Error Message:
+ System.NotImplementedException : The method or operation is not implemented.
+ Stack Trace:
+ at SampleApp.Module.Testee..ctor(IHttpClient httpClient) in
/home/jostein/build/sample-app/Module/Testee.cs:line 24
+ at SampleApp.Module.Tests.TestClass.Some_Testcase_Gone_Wrong() in
/home/jostein/build/sample-app/tests/TestClass.cs:line 11
+
- [elpa] externals/csharp-mode 8d43a70 229/459: Fix fontification of using-statements., (continued)
- [elpa] externals/csharp-mode 8d43a70 229/459: Fix fontification of using-statements., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 4da4c39 231/459: Fix fontification of namespaces to match using-statement rules., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 5e47b77 260/459: Fix error handling multiline compiler-directives., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 20efdc8 262/459: Add support for highlighting function-invocation., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d365498 307/459: Merge pull request #170 from josteink/compiler-fontifications, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 72c1912 314/459: Name change of codedoc functions, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ecc3f38 317/459: Add annotation-top-cont as a new syntax construct, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 51ab628 319/459: Update README.org, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode be5af57 322/459: Fix optional type suffix regex, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 217d3a7 324/459: Revert "Add nullable operator to concatenated identifiers", ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 97903a2 327/459: Merge pull request #179 from josteink/feature/compilation-mode-dotnetcore,
ELPA Syncer <=
- [elpa] externals/csharp-mode c44989a 331/459: Merge pull request #183 from josteink/vscode-fontification, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2697c95 332/459: Move bobp checking in one level, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode adc69a4 335/459: Merge pull request #187 from josteink/bugfix/185, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fb1f7d5 338/459: Don't duplicate values and remove unneeded test, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fc6f94f 339/459: Handle "nameof" entirely in c-basic-matchers-after., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 77a7243 341/459: Finally adapt CC Mode namespace matcher function, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode eff5dec 345/459: Try improve compilation-mode support for dotnet test fails., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 605b0e0 346/459: Add configuration option to font-locking of codedoc tags, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 49ca95e 350/459: RIP Marmalade, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 73c27c7 353/459: Update build.yml, ELPA Syncer, 2021/08/22