Add gradle-kotlin to compilation-error-regexp-alist-alist
* lisp/progmodes/compile.el: Add gradle-kotlin to compilation-error-regexp-alist-alist. * etc/compilation.txt: Add samples for it.
This commit is contained in:
parent
dafc87efd0
commit
6d2c73e8c7
3 changed files with 27 additions and 2 deletions
|
|
@ -185,6 +185,14 @@ Warning near line 10 file arrayclash.f: Module contains no executable
|
|||
Nonportable usage near line 31 col 9 file assign.f: mixed default and explicit
|
||||
|
||||
|
||||
* Gradle with kotlin-gradle-plugin
|
||||
|
||||
symbol: gradle-kotlin
|
||||
|
||||
e: /src/Test.kt: (34, 15): foo: bar
|
||||
w: /src/Test.kt: (34, 15): foo: bar
|
||||
|
||||
|
||||
* IAR Systems C Compiler
|
||||
|
||||
symbol: iar
|
||||
|
|
|
|||
|
|
@ -236,6 +236,16 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
|
|||
"\\(^Warning .*\\)? line[ \n]\\([0-9]+\\)[ \n]\\(?:col \\([0-9]+\\)[ \n]\\)?file \\([^ :;\n]+\\)"
|
||||
4 2 3 (1))
|
||||
|
||||
;; Gradle with kotlin-gradle-plugin (see
|
||||
;; GradleStyleMessagerRenderer.kt in kotlin sources, see
|
||||
;; https://youtrack.jetbrains.com/issue/KT-34683).
|
||||
(gradle-kotlin
|
||||
,(concat
|
||||
"^\\(?:\\(w\\)\\|.\\): *" ;type
|
||||
"\\(\\(?:[A-Za-z]:\\)?[^:\n]+\\): *" ;file
|
||||
"(\\([0-9]+\\), *\\([0-9]+\\))") ;line, column
|
||||
2 3 4 (1))
|
||||
|
||||
(iar
|
||||
"^\"\\(.*\\)\",\\([0-9]+\\)\\s-+\\(?:Error\\|Warnin\\(g\\)\\)\\[[0-9]+\\]:"
|
||||
1 2 nil (3))
|
||||
|
|
|
|||
|
|
@ -212,6 +212,13 @@
|
|||
1 nil 27041 "{standard input}")
|
||||
("boost/container/detail/flat_tree.hpp:589:25: [ skipping 5 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]"
|
||||
1 25 589 "boost/container/detail/flat_tree.hpp" 0)
|
||||
;; gradle-kotlin
|
||||
("e: /src/Test.kt: (34, 15): foo: bar" 4 15 34 "/src/Test.kt" 2)
|
||||
("w: /src/Test.kt: (11, 98): foo: bar" 4 98 11 "/src/Test.kt" 1)
|
||||
("e: e:/cygwin/src/Test.kt: (34, 15): foo: bar" 4 15 34 "e:/cygwin/src/Test.kt" 2)
|
||||
("w: e:/cygwin/src/Test.kt: (11, 98): foo: bar" 4 98 11 "e:/cygwin/src/Test.kt" 1)
|
||||
("e: e:\\src\\Test.kt: (34, 15): foo: bar" 4 15 34 "e:\\src\\Test.kt" 2)
|
||||
("w: e:\\src\\Test.kt: (11, 98): foo: bar" 4 98 11 "e:\\src\\Test.kt" 1)
|
||||
;; Guile
|
||||
("In foo.scm:\n" 1 nil nil "foo.scm")
|
||||
(" 63:4 [call-with-prompt prompt0 ...]" 1 4 63 nil)
|
||||
|
|
@ -413,8 +420,8 @@ The test data is in `compile-tests--test-regexps-data'."
|
|||
(compilation-num-warnings-found 0)
|
||||
(compilation-num-infos-found 0))
|
||||
(mapc #'compile--test-error-line compile-tests--test-regexps-data)
|
||||
(should (eq compilation-num-errors-found 87))
|
||||
(should (eq compilation-num-warnings-found 32))
|
||||
(should (eq compilation-num-errors-found 90))
|
||||
(should (eq compilation-num-warnings-found 35))
|
||||
(should (eq compilation-num-infos-found 26)))))
|
||||
|
||||
(ert-deftest compile-test-grep-regexps ()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue