[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode 3af278a 070/459: Parse the base directory f
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode 3af278a 070/459: Parse the base directory from MSBuild to support finding errors in dependency projects. |
Date: |
Sun, 22 Aug 2021 13:58:58 -0400 (EDT) |
branch: externals/csharp-mode
commit 3af278a7890c753b1b589496434a0b90ab41627c
Author: Nathan Phillip Brink <binki@gentoo.org>
Commit: Nathan Phillip Brink <binki@gentoo.org>
Parse the base directory from MSBuild to support finding errors in
dependency projects.
Without loading the base directory of the error, next-error will
either display an invalid file with the same relative path from the
current directory of the user or query the user for the correct
path. This change makes visiting errors in dependency MSBuild projects
as easy as visiting errors in the current project.
---
csharp-mode.el | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/csharp-mode.el b/csharp-mode.el
index 6b9b9b8..a691d80 100644
--- a/csharp-mode.el
+++ b/csharp-mode.el
@@ -2,7 +2,7 @@
;;; csharp-mode.el --- C# mode derived mode
;; Author : Dylan R. E. Moonfire (original)
-;; Maintainer : Jostein Kj�nigsen <jostein@gmail.com>
+;; Maintainer : Jostein Kjønigsen <jostein@gmail.com>
;; Created : Feburary 2005
;; Modified : November 2014
;; Version : 0.8.8
@@ -4137,16 +4137,21 @@ The return value is meaningless, and is ignored by
cc-mode.
;; (cons "C#" (c-lang-const c-mode-menu csharp)))
;;; Compilation regexps
+;; When invoked by MSBuild, csc’s errors look like this:
+;; subfolder\file.cs(6,18): error CS1006: Name of constructor must match name
of class [c:\Users\user\project.csproj]
+(defun csharp-compilation-error-file-resolve ()
+ ;; http://stackoverflow.com/a/18049590/429091
+ (cons (match-string 1) (match-string 4)))
(eval-after-load 'compile
(lambda ()
(dolist
(regexp
'((msbuild-error
- "^[[:blank:]]*\\([^(\r\n]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?):
error .+$"
- 1 2 3 2)
+ "^[[:blank:]]*\\([^(\r\n]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?):
error .+?\\(?:\\[\\([^[\r\n]+\\)[\\\\/][^\\\\/]+\\]\\)$"
+ csharp-compilation-error-file-resolve 2 3 2)
(msbuild-warning
- "^[[:blank:]]*\\([^(\r\n]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?):
warning .+$"
- 1 2 3 1)))
+ "^[[:blank:]]*\\([^(\r\n]+\\)(\\([0-9]+\\)\\(?:,\\([0-9]+\\)\\)?):
warning .+?\\(?:\\[\\([^[\r\n]+\\)[\\\\/][^\\\\/]+\\]\\)$"
+ csharp-compilation-error-file-resolve 2 3 1)))
(add-to-list 'compilation-error-regexp-alist-alist regexp))
(dolist (symbol '(msbuild-error msbuild-warning))
(add-to-list 'compilation-error-regexp-alist symbol))))
- [elpa] externals/csharp-mode ba36d6c 105/459: Replace `flet` with `letrec`, (continued)
- [elpa] externals/csharp-mode ba36d6c 105/459: Replace `flet` with `letrec`, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 494cbd9 106/459: Merge pull request #45 from wasamasa/fix-flet-warning, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode a182957 112/459: Update changelog., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 03e6200 109/459: Emacs: Tentative fix for fontification issues., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 64eb7db 114/459: Merge pull request #47 from josteink/feature-cl-lib, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 165a128 028/459: Update maintainer-ship and new repo-URL., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ac6a1ff 036/459: Don't package stuff we only need for the build., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f000c97 037/459: Add link to Travis., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 0762f78 038/459: remove the debug (message "Loading ...") forms, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 49d213a 045/459: Remove csharp-insert-open-brace. Recommend electric-pair-mode instead., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3af278a 070/459: Parse the base directory from MSBuild to support finding errors in dependency projects.,
ELPA Syncer <=
- [elpa] externals/csharp-mode e73ad4e 071/459: Merge pull request #30 from binki/compilation-regexps, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode baef28a 072/459: fix error highlighting and use filename functions, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2303fe0 074/459: Add msbuild and xbuild log-files for ERT-testing., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 69eaa1a 080/459: Add tests for compilation-mode regexps., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7ef0c5c 032/459: Configure travis-build., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 2fe1a72 033/459: Fix error in path in makefile., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 3d0f86b 043/459: Updated readme., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode fff8cb1 053/459: Merge branch 'devel', ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 689dd8b 056/459: make c# style the default style, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 421d3de 062/459: remove aspx code, ELPA Syncer, 2021/08/22