[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode 3c2f942 087/459: Merge pull request #34 fro
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode 3c2f942 087/459: Merge pull request #34 from binki/master |
Date: |
Sun, 22 Aug 2021 13:59:02 -0400 (EDT) |
branch: externals/csharp-mode
commit 3c2f94270ac61c2165f080efc59645dfe87447af
Merge: 1574d3e d4c7a5c
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>
Merge pull request #34 from binki/master
Support compilation output from msbuild /maxcpucount (/m).
---
csharp-mode-tests.el | 37 ++++++++++++++++++++++++++-----
csharp-mode.el | 4 ++--
test-files/msbuild-concurrent-error.txt | 30 +++++++++++++++++++++++++
test-files/msbuild-concurrent-warning.txt | 36 ++++++++++++++++++++++++++++++
4 files changed, 100 insertions(+), 7 deletions(-)
diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index 2021732..dd99934 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -49,21 +49,48 @@
(should
(equal buffer1 buffer2)))))
+(defun list-repeat-once (mylist)
+ (append mylist mylist))
+
(ert-deftest build-warnings-and-errors-are-parsed ()
(dolist (test-case
- `(("./test-files/msbuild-warning.txt"
,csharp-compilation-re-msbuild-warning 3)
- ("./test-files/msbuild-error.txt"
,csharp-compilation-re-msbuild-error 1)
- ("./test-files/xbuild-warning.txt"
,csharp-compilation-re-xbuild-warning 5)
- ("./test-files/xbuild-error.txt"
,csharp-compilation-re-xbuild-error 1)
+ `(("./test-files/msbuild-warning.txt"
,csharp-compilation-re-msbuild-warning 8
+ ,(list-repeat-once
+ '("Class1.cs"
+ "Folder\\Class1.cs"
+ "Program.cs"
+ "Program.cs")))
+ ("./test-files/msbuild-error.txt"
,csharp-compilation-re-msbuild-error 2
+ ,(list-repeat-once
+ '("Folder\\Class1.cs")))
+ ("./test-files/msbuild-concurrent-warning.txt"
,csharp-compilation-re-msbuild-warning 2
+ ,(list-repeat-once
+ '("Program.cs")))
+ ("./test-files/msbuild-concurrent-error.txt"
,csharp-compilation-re-msbuild-error 2
+ ,(list-repeat-once
+ '("Program.cs")))
+ ("./test-files/xbuild-warning.txt"
,csharp-compilation-re-xbuild-warning 10
+ ,(list-repeat-once
+
'("/Users/jesseblack/Dropbox/barfapp/ConsoleApplication1/ClassLibrary1/Class1.cs"
+
"/Users/jesseblack/Dropbox/barfapp/ConsoleApplication1/ClassLibrary1/Folder/Class1.cs"
+
"/Users/jesseblack/Dropbox/barfapp/ConsoleApplication1/ConsoleApplication1/Program.cs"
+
"/Users/jesseblack/Dropbox/barfapp/ConsoleApplication1/ConsoleApplication1/Program.cs"
+
"/Users/jesseblack/Dropbox/barfapp/ConsoleApplication1/ConsoleApplication1/Program.cs")))
+ ("./test-files/xbuild-error.txt"
,csharp-compilation-re-xbuild-error 2
+ ,(list-repeat-once
+
'("/Users/jesseblack/Dropbox/barfapp/ConsoleApplication1/ClassLibrary1/Folder/Class1.cs")))
))
(let* ((file-name (car test-case))
(regexp (cadr test-case))
(times (caddr test-case))
+ (matched-file-names (cadddr test-case))
(find-file-hook '()) ;; avoid vc-mode file-hooks when opening!
(buffer (find-file-read-only file-name)))
(dotimes (number times)
- (re-search-forward regexp))
+ (re-search-forward regexp)
+ (should
+ (equal (nth number matched-file-names) (match-string 1))))
(kill-buffer buffer))))
;;(ert-run-tests-interactively t)
diff --git a/csharp-mode.el b/csharp-mode.el
index fcac8d3..fc21c89 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -4150,14 +4150,14 @@ The return value is meaningless, and is ignored by
cc-mode.
(defconst csharp-compilation-re-msbuild-error
(concat
- "^[[:blank:]]*"
+ "^[[:blank:]]*\\(?:[[:digit:]]+>\\)?"
"\\([^(\r\n)]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
"error [[:alnum:]]+: [^[\r\n]+\\[\\([^]\r\n]+\\)\\]$")
"Regexp to match compilation error from msbuild.")
(defconst csharp-compilation-re-msbuild-warning
(concat
- "^[[:blank:]]*"
+ "^[[:blank:]]*\\(?:[[:digit:]]+>\\)?"
"\\([^(\r\n)]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?): "
"warning [[:alnum:]]+: [^[\r\n]+\\[\\([^]\r\n]+\\)\\]$")
"Regexp to match compilation warning from msbuild.")
diff --git a/test-files/msbuild-concurrent-error.txt
b/test-files/msbuild-concurrent-error.txt
new file mode 100644
index 0000000..7c160c2
--- /dev/null
+++ b/test-files/msbuild-concurrent-error.txt
@@ -0,0 +1,30 @@
+-*- mode: compilation; default-directory: "~/Documents/Visual Studio
2015/Projects/ConsoleApplication3/ConsoleApplication3/" -*-
+Compilation started at Mon Apr 20 01:44:35
+
+bash -c "for m in *akefile; do break; done; if [[ ${m} != \"*akefile\" ]];
then PATH=\"${PATH}:/c/Program Files (x86)/MSBuild/14.0/Bin:/c/Program
Files/Emacs/bin\" make; else set -o pipefail; 'c:/Program Files
(x86)/MSBuild/14.0/Bin/MSBuild.exe' //m; fi"
+Microsoft (R) Build Engine version 14.0.22609.0
+Copyright (C) Microsoft Corporation. All rights reserved.
+
+Build started 2015-04-20 01:44:36.
+The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at
"C:\Program Files
(x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets (60,11)" does
not exist in the project, and will be ignored.
+The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at
"C:\Program Files
(x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets (108,11)" does
not exist in the project, and will be ignored.
+ 1>Project "c:\Users\ohnob\Documents\Visual Studio
2015\Projects\ConsoleApplication3\ConsoleApplication3\ConsoleApplication3.csproj"
on node 1 (default targets).
+ 1>GenerateTargetFrameworkMonikerAttribute:
+ Skipping target "GenerateTargetFrameworkMonikerAttribute" because all
output files are up-to-date with respect to the input files.
+ CoreCompile:
+ C:\Program Files (x86)\MSBuild\14.0\bin\csc2.exe /noconfig
/nowarn:1701,1702 /nostdlib+ /platform:anycpu32bitpreferred /errorreport:prompt
/warn:4 /define:DEBUG;TRACE /highentropyva+ /reference:"C:\Program Files
(x86)\Reference
Assemblies\Microsoft\Framework\.NETFramework\v4.5\Microsoft.CSharp.dll"
/reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll"
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framewor [...]
+ 1>Program.cs(13,2): error CS1002: ; expected
[c:\Users\ohnob\Documents\Visual Studio
2015\Projects\ConsoleApplication3\ConsoleApplication3\ConsoleApplication3.csproj]
+ 1>Done Building Project "c:\Users\ohnob\Documents\Visual Studio
2015\Projects\ConsoleApplication3\ConsoleApplication3\ConsoleApplication3.csproj"
(default targets) -- FAILED.
+
+Build FAILED.
+
+ "c:\Users\ohnob\Documents\Visual Studio
2015\Projects\ConsoleApplication3\ConsoleApplication3\ConsoleApplication3.csproj"
(default target) (1) ->
+ (CoreCompile target) ->
+ Program.cs(13,2): error CS1002: ; expected
[c:\Users\ohnob\Documents\Visual Studio
2015\Projects\ConsoleApplication3\ConsoleApplication3\ConsoleApplication3.csproj]
+
+ 0 Warning(s)
+ 1 Error(s)
+
+Time Elapsed 00:00:00.15
+
+Compilation exited abnormally with code 1 at Mon Apr 20 01:44:36
diff --git a/test-files/msbuild-concurrent-warning.txt
b/test-files/msbuild-concurrent-warning.txt
new file mode 100644
index 0000000..4f702f4
--- /dev/null
+++ b/test-files/msbuild-concurrent-warning.txt
@@ -0,0 +1,36 @@
+-*- mode: compilation; default-directory: "~/Documents/Visual Studio
2015/Projects/ConsoleApplication3/ConsoleApplication3/" -*-
+Compilation started at Mon Apr 20 01:44:21
+
+bash -c "for m in *akefile; do break; done; if [[ ${m} != \"*akefile\" ]];
then PATH=\"${PATH}:/c/Program Files (x86)/MSBuild/14.0/Bin:/c/Program
Files/Emacs/bin\" make; else set -o pipefail; 'c:/Program Files
(x86)/MSBuild/14.0/Bin/MSBuild.exe' //m; fi"
+Microsoft (R) Build Engine version 14.0.22609.0
+Copyright (C) Microsoft Corporation. All rights reserved.
+
+Build started 2015-04-20 01:44:22.
+The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at
"C:\Program Files
(x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets (60,11)" does
not exist in the project, and will be ignored.
+The target "AfterGenerateAppxManifest" listed in an AfterTargets attribute at
"C:\Program Files
(x86)\MSBuild\Microsoft\.NetNative\Microsoft.NetNative.targets (108,11)" does
not exist in the project, and will be ignored.
+ 1>Project "c:\Users\ohnob\Documents\Visual Studio
2015\Projects\ConsoleApplication3\ConsoleApplication3\ConsoleApplication3.csproj"
on node 1 (default targets).
+ 1>GenerateTargetFrameworkMonikerAttribute:
+ Skipping target "GenerateTargetFrameworkMonikerAttribute" because all
output files are up-to-date with respect to the input files.
+ CoreCompile:
+ C:\Program Files (x86)\MSBuild\14.0\bin\csc2.exe /noconfig
/nowarn:1701,1702 /nostdlib+ /platform:anycpu32bitpreferred /errorreport:prompt
/warn:4 /define:DEBUG;TRACE /highentropyva+ /reference:"C:\Program Files
(x86)\Reference
Assemblies\Microsoft\Framework\.NETFramework\v4.5\Microsoft.CSharp.dll"
/reference:"C:\Program Files (x86)\Reference
Assemblies\Microsoft\Framework\.NETFramework\v4.5\mscorlib.dll"
/reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framewor [...]
+ 1>Program.cs(13,10): warning CS1030: #warning: 'asdf'
[c:\Users\ohnob\Documents\Visual Studio
2015\Projects\ConsoleApplication3\ConsoleApplication3\ConsoleApplication3.csproj]
+ _CopyAppConfigFile:
+ Skipping target "_CopyAppConfigFile" because all output files are
up-to-date with respect to the input files.
+ CopyFilesToOutputDirectory:
+ Copying file from "obj\Debug\ConsoleApplication3.exe" to
"bin\Debug\ConsoleApplication3.exe".
+ ConsoleApplication3 -> c:\Users\ohnob\Documents\Visual Studio
2015\Projects\ConsoleApplication3\ConsoleApplication3\bin\Debug\ConsoleApplication3.exe
+ Copying file from "obj\Debug\ConsoleApplication3.pdb" to
"bin\Debug\ConsoleApplication3.pdb".
+ 1>Done Building Project "c:\Users\ohnob\Documents\Visual Studio
2015\Projects\ConsoleApplication3\ConsoleApplication3\ConsoleApplication3.csproj"
(default targets).
+
+Build succeeded.
+
+ "c:\Users\ohnob\Documents\Visual Studio
2015\Projects\ConsoleApplication3\ConsoleApplication3\ConsoleApplication3.csproj"
(default target) (1) ->
+ (CoreCompile target) ->
+ Program.cs(13,10): warning CS1030: #warning: 'asdf'
[c:\Users\ohnob\Documents\Visual Studio
2015\Projects\ConsoleApplication3\ConsoleApplication3\ConsoleApplication3.csproj]
+
+ 1 Warning(s)
+ 0 Error(s)
+
+Time Elapsed 00:00:00.20
+
+Compilation finished at Mon Apr 20 01:44:22
- [elpa] externals/csharp-mode 2d13a9c 058/459: Add very broad build-level test., (continued)
- [elpa] externals/csharp-mode 2d13a9c 058/459: Add very broad build-level test., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 723341b 067/459: Fix incorrect-code tags in readme., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a86839b 064/459: Merged from master., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0a2a3b0 066/459: Fix Emacs-lockup during fontification., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f2fda33 041/459: Fix errors in `make package`., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a6eb8bd 047/459: Merge changes from branch 'devel', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 6289cfd 051/459: Fix broken byte-compile., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 1f2fc21 055/459: Remove obsolete workarounds from README., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode d7ba765 063/459: Merge changes from devel., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ed628e6 075/459: Attempt fix compilation-mode regexps for both xbuild & msbuild., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3c2f942 087/459: Merge pull request #34 from binki/master,
ELPA Syncer <=
- [elpa] externals/csharp-mode 31eebb9 079/459: create separate compilation regexps for xbuild, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 42ca773 097/459: Fix runtime warnings about obsolete Emacs-functions., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0779fe4 107/459: Update changelog., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 1f0465b 126/459: Fix comments, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 6efd459 127/459: Stylistic fixes, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3b54997 130/459: Merge pull request #55 from josteink/derive-from-prog-mode, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a553430 146/459: Merge pull request #66 from shoover/explicit-interface-property, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 157299a 013/459: Update TFS module., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3651a40 119/459: Use cl-lib equivalent, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 91fff08 124/459: Fontify conversion operators definitions. Fontify base interfaces names for 'interface' and 'struct' declarations., ELPA Syncer, 2021/08/22