unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattiase@acm.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 56249@debbugs.gnu.org, "Rudolf Adamkovič" <salutis@me.com>
Subject: bug#56249: 29.0.50; Compilation buffer parsing "ERROR:" incorrectly
Date: Sun, 10 Jul 2022 15:49:28 +0200	[thread overview]
Message-ID: <7BCA72A3-6D90-4D47-9438-8837D0DF503A@acm.org> (raw)
In-Reply-To: <87bku31p29.fsf@gnus.org>

[-- Attachment #1: Type: text/plain, Size: 867 bytes --]

5 juli 2022 kl. 18.50 skrev Lars Ingebrigtsen <larsi@gnus.org>:

> Feel free to add tests, by all means.

Sorry about the delay; here is what it might look like. It's all very hand-wavy and cut-and-paste because I don't really know what it's for or even what to call it. The message pattern I suggested was an expedience intended for individual Emacs customisation; I doubt it's of Emacs release quality.

Normally I try to track down the source code and exact location of the code that emits the message, to get a feeling for what the varying parts are -- for example in this case, can the word "ERROR" be "WARNING" or something else? Are there variants? Is the code stable? Is the leading whitespace always the same? And so on. But I didn't really intend to dive through all of Gradle and the Android tools; someone else probably knows much more about it.


[-- Attachment #2: gradle-android-compile-tests.diff --]
[-- Type: application/octet-stream, Size: 2216 bytes --]

diff --git a/etc/compilation.txt b/etc/compilation.txt
index 111b2a37dc..fc254dd3d7 100644
--- a/etc/compilation.txt
+++ b/etc/compilation.txt
@@ -193,6 +193,15 @@ symbol: gradle-kotlin
 e: /src/Test.kt: (34, 15): foo: bar
 w: /src/Test.kt: (34, 15): foo: bar
 
+* Gradle Android resource linking
+
+symbol: gradle-android
+
+Execution failed for task ':app:processDebugResources'.
+> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
+   > Android resource linking failed
+     ERROR:/Users/salutis/src/AndroidSchemeExperiment/app/build/intermediates/incremental/debug/mergeDebugResources/stripped.dir/layout/item.xml:3: AAPT: error: '16dpw' is incompatible with attribute padding (attr) dimension.
+
 
 * IAR Systems C Compiler
 
diff --git a/test/lisp/progmodes/compile-tests.el b/test/lisp/progmodes/compile-tests.el
index 774370be4c..36bdbe4c91 100644
--- a/test/lisp/progmodes/compile-tests.el
+++ b/test/lisp/progmodes/compile-tests.el
@@ -260,6 +260,9 @@ compile-tests--test-regexps-data
      "e: e:\\src\\Test.kt: (34, 15): foo: bar" 4 15 34 "e:\\src\\Test.kt" 2)
     (gradle-kotlin
      "w: e:\\src\\Test.kt: (11, 98): foo: bar" 4 98 11 "e:\\src\\Test.kt" 1)
+    (gradle-android
+     "     ERROR:/Users/salutis/src/AndroidSchemeExperiment/app/build/intermediates/incremental/debug/mergeDebugResources/stripped.dir/layout/item.xml:3: AAPT: error: '16dpw' is incompatible with attribute padding (attr) dimension."
+     1 nil 3 "/Users/salutis/src/AndroidSchemeExperiment/app/build/intermediates/incremental/debug/mergeDebugResources/stripped.dir/layout/item.xml" 2)
     ;; Guile
     (guile-file "In foo.scm:\n" 1 nil nil "foo.scm")
     (guile-line "  63:4 [call-with-prompt prompt0 ...]" 1 4 63 nil)
@@ -492,7 +495,7 @@ compile-test-error-regexps
           (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 97))
+      (should (eq compilation-num-errors-found 98))
       (should (eq compilation-num-warnings-found 35))
       (should (eq compilation-num-infos-found 28)))))
 

  reply	other threads:[~2022-07-10 13:49 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-27  7:04 bug#56249: 29.0.50; Compilation buffer parsing "ERROR:" incorrectly Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-27  8:09 ` Lars Ingebrigtsen
2022-06-28 17:36   ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-29  9:53     ` Lars Ingebrigtsen
2022-06-29 12:16 ` Mattias Engdegård
2022-06-29 12:28   ` Lars Ingebrigtsen
2022-06-29 15:43     ` Mattias Engdegård
2022-06-29 19:47       ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-29 20:09         ` Mattias Engdegård
2022-06-30  9:04       ` Lars Ingebrigtsen
2022-06-30 11:08         ` Mattias Engdegård
2022-07-05 16:04           ` Mattias Engdegård
2022-07-05 16:50             ` Lars Ingebrigtsen
2022-07-10 13:49               ` Mattias Engdegård [this message]
2022-07-11  9:48                 ` Lars Ingebrigtsen
2022-07-11 10:31                   ` Mattias Engdegård
2022-07-14  6:55                     ` Rudolf Adamkovič via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7BCA72A3-6D90-4D47-9438-8837D0DF503A@acm.org \
    --to=mattiase@acm.org \
    --cc=56249@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=salutis@me.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).