From unknown Tue Jun 17 22:26:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24623: 25.1; Flymake turns off if check command fails without reporting errors in the file being edited Resent-From: Dave Abrahams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 05 Oct 2016 19:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24623 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 24623@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.147569690928236 (code B ref -1); Wed, 05 Oct 2016 19:49:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Oct 2016 19:48:29 +0000 Received: from localhost ([127.0.0.1]:46051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brsB2-0007LM-Ko for submit@debbugs.gnu.org; Wed, 05 Oct 2016 15:48:28 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1brsB0-0007L6-CA for submit@debbugs.gnu.org; Wed, 05 Oct 2016 15:48:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brsAt-0002lI-IG for submit@debbugs.gnu.org; Wed, 05 Oct 2016 15:48:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:48469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brsAt-0002kk-FH for submit@debbugs.gnu.org; Wed, 05 Oct 2016 15:48:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brsAq-0000qq-GE for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2016 15:48:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1brsAm-0002iv-7G for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2016 15:48:15 -0400 Received: from mail-pa0-x22a.google.com ([2607:f8b0:400e:c03::22a]:33592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1brsAl-0002if-RQ for bug-gnu-emacs@gnu.org; Wed, 05 Oct 2016 15:48:12 -0400 Received: by mail-pa0-x22a.google.com with SMTP id cd13so85397500pac.0 for ; Wed, 05 Oct 2016 12:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boostpro-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:user-agent:mime-version; bh=NwkeGSin+l7RQ0sP/7KOYhvky3GVuS2BP8fQhAR19aI=; b=R4QHKURzxyIWFEMotDgBDQDXxsKTtfoxHodazoFkl1xiKu5dGeyZCKvWVqdWQkGYF7 Nkalh+F9/90tbqoWdWfdB3s8U3KZSDlnZ+7yJh1liVEMUWA0XBy0VfEGCSXY4VDtov+0 5xsCrWKe0bOpI2SpFrKIc+R8jO08R63T3qsSIHehLFf80D0rJRMDaKgg2mn08mpIKeB0 pf0+bdFqrt5Oc5H7pdVWZCCm9dZToztTWkEkAqi7R1ligY94Q0waGVPbiWWlmp2skQeO +Q7S09OdsG2yQYIe8SOC7X0GthGyNi89s1P8rD/zTLbu8467w/gHjE0k20GOCHgk6t7v 0pQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=NwkeGSin+l7RQ0sP/7KOYhvky3GVuS2BP8fQhAR19aI=; b=RffolwCaskZLjARJXKwUAZ/MxQtIvk/tCgbzStlu7S+GZ58rSpjsCxMndAEZvkCaWC LzFxI3IhIX8w2yxzxxqoKr4i/VnP+CjgwvQfPesEBBjje0EnZgQ56LI99EM6J7m5cbFx onD/vZ/BazE96CKq+w32gSavR+Vj1LFHe/H8CvP1VNKjIDHB6tFdgOw/NLQ4FOUYWrT5 X0nx5QCBEzRbX4iACtS2kIHMKHfBVoDpNxcdUcfgJ66FkO8Q+cpDkAh9UtiMkV2xKhJ+ NgXmtBoILvkkOClrbSud2GkKR68Cku7Vc6DFlnJ9+f/4ywYmv0LS4esRC1yN3CqwVMzF eOmg== X-Gm-Message-State: AA6/9RllG5R/IKUSfDYEUKuSJowW+WwI3KU2yXu/g3H0o/znuHGZrDaO4anCMgHanqiygA== X-Received: by 10.66.88.74 with SMTP id be10mr306983pab.113.1475696890170; Wed, 05 Oct 2016 12:48:10 -0700 (PDT) Received: from Wingy.local ([17.234.96.97]) by smtp.gmail.com with ESMTPSA id c66sm65557191pfd.24.2016.10.05.12.48.08 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 05 Oct 2016 12:48:09 -0700 (PDT) Received: by Wingy.local (Postfix, from userid 501) id 8A5DD18435EC7; Wed, 5 Oct 2016 12:48:07 -0700 (PDT) From: Dave Abrahams Date: Tue, 04 Oct 2016 10:47:32 -0700 Received: from Wingy.local ([17.235.2.63]) by smtp.gmail.com with ESMTPSA id 28sm2232736pft.76.2016.10.04.10.47.37 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Oct 2016 10:47:38 -0700 (PDT) Received: by Wingy.local (Postfix, from userid 501) id DE9701841E955; Tue, 4 Oct 2016 10:47:32 -0700 (PDT) X-TUID: 9qfLAvoUhmVr Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) In these lines from flymake-post-syntax-check: (if (and (equal 0 err-count) (equal 0 warn-count)) (if (equal 0 exit-status) (flymake-report-status "" "") ; PASSED (if (not flymake-check-was-interrupted) (flymake-report-fatal-status "CFGERR" (format "Configuration error has occurred while running %s" command)) (flymake-report-status nil ""))) ; "STOPPED" (flymake-report-status (format "%d/%d" err-count warn-count) ""))))) err-count and warn-count are the count of errors detected *in the file being edited*. My syntax check command must consider a whole batch of files at once, and sometimes those other files have errors in them. That should not disable syntax checking in the current file, but flymake has this behavior unconditionally, and there's no way to turn it off. In GNU Emacs 25.1.2 (x86_64-apple-darwin13.4.0, Carbon Version 157 AppKit 1265.21) of 2016-08-23 built on Atago.local Repository revision: 990dafce23a64d86fd6e3fbf5c93d1183fee6082 Windowing system distributor 'Apple Inc.', version 10.12.1 Configured using: 'configure --with-mac --enable-mac-app=/Users/build/emacs-mac-build --prefix=/Users/build/emacs-mac-build' Configured features: NOTIFY ACL LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: recentf-mode: t diff-auto-refine-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t me-minor-mode: t winner-mode: t which-function-mode: t show-paren-mode: t server-mode: t ido-everywhere: t global-auto-revert-mode: t display-time-mode: t delete-selection-mode: t auto-insert-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t mac-mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Wrote /Users/dave/src/s/swift/utils/swift-project-settings.el Quit [2 times] Saving file /var/folders/m1/tmpgcrzx4035fts37r89qtxc0000gn/T/swift-gyb24853FRa/!var!folders!m1!tmpgcrzx4035fts37r89qtxc0000gn!T!FloatingPointTypes.swift.gyb-flymake24853Ve1.swift... Wrote /var/folders/m1/tmpgcrzx4035fts37r89qtxc0000gn/T/swift-gyb24853FRa/!var!folders!m1!tmpgcrzx4035fts37r89qtxc0000gn!T!FloatingPointTypes.swift.gyb-flymake24853Ve1.swift Making completion list... Quit Making completion list... Mark saved where search started Mark set Info-search: Search failed: "flymake" next-line: End of buffer [3 times] Load-path shadows: /Applications/Emacs-25.1.app/Contents/Resources/lisp/progmodes/compile hides ~/.emacs.d/site-lisp/non-GPL3/compile Features: (shadow sort emacsbug sendmail network-stream nsm starttls tls gnutls mail-extr edebug python dabbrev files-x recentf tree-widget pp misearch multi-isearch eieio-opt speedbar sb-image ezimage dframe debug vc-git whitespace swift-mode flymake derived gnus-dired swift-project-settings compile skeleton cc-styles cc-align cc-engine cc-vars cc-defs jka-compr ffap thingatpt modal elec-pair magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit magit-apply magit-wip magit-log magit-diff smerge-mode diff-mode magit-core magit-autorevert magit-process magit-popup magit-mode magit-git crm magit-section magit-utils git-commit log-edit eudc eudc-vars message rfc822 mml mml-sec epg mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async tramp-sh tramp tramp-compat tramp-loaddefs trampver shell pcomplete comint ansi-color format-spec cus-edit+ cl page-ext system-type-darwin-theme disp-table dired-x dired winner ring which-func imenu paren server ido autorevert filenotify time delsel autoinsert edmacro kmacro initsplit cus-edit cus-start cus-load wid-edit find-func elhome use-package diminish bind-key easy-mmode finder-inf column-enforce-mode-autoloads elhome-autoloads gh-common gh-profile url-parse auth-source gnus-util mm-util help-fns mail-prsvr password-cache url-vars rx s ucs-normalize marshal eieio-compat cl-seq ht json map dash eieio eieio-core cl-macs maxframe-autoloads info advice package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib mule-util time-date tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel mac-win term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote kqueue mac multi-tty make-network-process emacs) Memory information: ((conses 16 456311 95214) (symbols 48 39232 0) (miscs 40 3655 1742) (strings 32 99499 16751) (string-bytes 1 3696221) (vectors 16 65804) (vector-slots 8 1947268 182298) (floats 8 523 633) (intervals 56 8620 2359) (buffers 976 72)) -- -Dave From unknown Tue Jun 17 22:26:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24623: 25.1; Flymake turns off if check command fails without reporting errors in the file being edited Resent-From: joaotavora@gmail.com (=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Nov 2017 11:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24623 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dave Abrahams Cc: 24623@debbugs.gnu.org, eliz@gnu.org Received: via spool by 24623-submit@debbugs.gnu.org id=B24623.150970989619644 (code B ref 24623); Fri, 03 Nov 2017 11:52:02 +0000 Received: (at 24623) by debbugs.gnu.org; 3 Nov 2017 11:51:36 +0000 Received: from localhost ([127.0.0.1]:48801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAaVb-00056l-LD for submit@debbugs.gnu.org; Fri, 03 Nov 2017 07:51:36 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:49740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAaVa-00056J-HY for 24623@debbugs.gnu.org; Fri, 03 Nov 2017 07:51:34 -0400 Received: by mail-wm0-f45.google.com with SMTP id b189so937699wmd.4 for <24623@debbugs.gnu.org>; Fri, 03 Nov 2017 04:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=XoDEWxVu7dl9d7U2bgrMfzp+SiVezQ4ZS9HnmU5QSaA=; b=RzKjng1EbYUtdSCXUeDXDLEcrhjgqwNfKsxtGYqmO8PsKH/6dT7UdCCAsn6ARU7rWl xwrLrEZP35L29QHMT7V0USX2GaFTPEz1H6cAxK0YZDEqO24AuMymAvs8V71nJY5tw+S6 MrwRjeCqADJALt5BkCHU0lAdZJPVWwWhb659aMclgYU6oZ4iXh5acM7+V3UkKiCSGKjY wEY8psRT0OgGMcBdZMxW9er4KXBsUNGrRSY/OOyzU7BTvdY9s3nFDObnJ2Ktr2T/LsB7 99vO/4k62pk585IrHCYrd/GNm49X7dfqv1HzAD01yedAE5OkmL3uKXDrEi4Tc5LnW8Fl urGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=XoDEWxVu7dl9d7U2bgrMfzp+SiVezQ4ZS9HnmU5QSaA=; b=Lm/Nyu7+iQdmg0Ym2avG2F06QLKlJK5wje1jLdU/PUb09S/4kkh/0nMAcTThp82aes ppiwYS277DDa46iUEbI5f6iAOjgSWP9StN5WJKJjBPHYZPDxlzke128LNt2QX/ieP7vL aoaD66gliog2txz633vNIXnVUp2tfEwz8dYS32A9bWH9PwRnqtVgSntnKE707oWTe+fX Jdx4oisrlrOUV07pJQLzyhV7AiUPT7NwXvPJX9IHskb6ykyb0w74Oe77LelU5V5fm+gw nkQGoIigpV8l9frqU92sh3f0vQmOAk8NPVoEfmpzj1uGXAV3khYkXFbYEMUlpJA2NojR 4bMg== X-Gm-Message-State: AMCzsaX9xzAEB08yG+yB6CkDX9spVA0WmxOHmujlYWyJW1sJk5IczGOg cFLcEMzTBewYlYcp9e4yIN4= X-Google-Smtp-Source: ABhQp+TPN7yn2fgYUZGswxEduhJS3+3lutdTuQyG7TXhpD7r/j9O9YI5JwZkVf1R3V+t1uzDndTiVA== X-Received: by 10.28.126.146 with SMTP id z140mr4553033wmc.126.1509709888481; Fri, 03 Nov 2017 04:51:28 -0700 (PDT) Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id 64sm4293594wrk.46.2017.11.03.04.51.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Nov 2017 04:51:27 -0700 (PDT) From: joaotavora@gmail.com (=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?=) References: Date: Fri, 03 Nov 2017 11:51:23 +0000 In-Reply-To: (Dave Abrahams's message of "Tue, 04 Oct 2016 10:47:32 -0700") Message-ID: <877ev7vav8.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) Dave Abrahams writes: > In these lines from flymake-post-syntax-check: > > (if (and (equal 0 err-count) (equal 0 warn-count)) > (if (equal 0 exit-status) > (flymake-report-status "" "") ; PASSED > (if (not flymake-check-was-interrupted) > (flymake-report-fatal-status "CFGERR" > (format "Configuration error= has occurred while running %s" command)) > (flymake-report-status nil ""))) ; "STOPPED" > (flymake-report-status (format "%d/%d" err-count warn-count) ""))= ))) > > err-count and warn-count are the count of errors detected *in the file > being edited*. My syntax check command must consider a whole batch of > files at once, and sometimes those other files have errors in them. > That should not disable syntax checking in the current file, but flymake > has this behavior unconditionally, and there's no way to turn it off. [Eli, I=E2=80=99m CC=E2=80=99ing you since I think this bug can be marked "= wontfix" or equivalent] Hello Dave and sorry for the extremely late reply to this bug. This is easy to reproduce with GCC as a checker tool when checking a .h file with no errors but included by a .c file with some errors. I just wanted to note, if you haven=E2=80=99t noticed already, that Flymake= has been redesigned in the upcoming Emacs 26 and the functionality you refer to is now considered obsolete. Nevertheless, it is still supported and lives in a so called "legacy backend". Your particular problem also popped up for me testing. My solution would be to invoke your syntax checker tool in a way that the invocation univocally returns 0, like having this in a Makefile: syntax-check: mytool $(CHK_SOURCES) || true But there are new much better ways to configure Flymake with your syntax checker. They are described in the Flymake Info manual, which also broadly describes the redesign effort). You can read this manual with M-x info in the upcoming Emacs version (or one of the already available pretests thereof). Given the workaround, I don=E2=80=99t there=E2=80=99s much reason to fix th= is. Jo=C3=A3o From unknown Tue Jun 17 22:26:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24623: 25.1; Flymake turns off if check command fails without reporting errors in the file being edited Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Nov 2017 13:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24623 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: joaotavora@gmail.com (=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?=) Cc: dave@boostpro.com, 24623@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 24623-submit@debbugs.gnu.org id=B24623.15097153112990 (code B ref 24623); Fri, 03 Nov 2017 13:22:01 +0000 Received: (at 24623) by debbugs.gnu.org; 3 Nov 2017 13:21:51 +0000 Received: from localhost ([127.0.0.1]:48886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAbuw-0000mA-P9 for submit@debbugs.gnu.org; Fri, 03 Nov 2017 09:21:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAbuu-0000ls-TV for 24623@debbugs.gnu.org; Fri, 03 Nov 2017 09:21:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eAbum-0002bn-0q for 24623@debbugs.gnu.org; Fri, 03 Nov 2017 09:21:43 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55392) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eAbul-0002bX-TK; Fri, 03 Nov 2017 09:21:39 -0400 Received: from [176.228.60.248] (port=1897 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eAbul-0006fV-CO; Fri, 03 Nov 2017 09:21:39 -0400 Date: Fri, 03 Nov 2017 15:21:37 +0200 Message-Id: <83o9ojv6ou.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <877ev7vav8.fsf@gmail.com> (joaotavora@gmail.com) References: <877ev7vav8.fsf@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: joaotavora@gmail.com (João Távora) > Cc: 24623@debbugs.gnu.org, eliz@gnu.org > Date: Fri, 03 Nov 2017 11:51:23 +0000 > > [Eli, I’m CC’ing you since I think this bug can be marked "wontfix" or > equivalent] There's no need to CC me, because I read all the messages that the issue tracker reflects to the bug-gnu-emacs mailing list. From unknown Tue Jun 17 22:26:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#24623: 25.1; Flymake turns off if check command fails without reporting errors in the file being edited Resent-From: Dave Abrahams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Nov 2017 17:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24623 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Cc: 24623@debbugs.gnu.org, eliz@gnu.org Received: via spool by 24623-submit@debbugs.gnu.org id=B24623.150981729312208 (code B ref 24623); Sat, 04 Nov 2017 17:42:02 +0000 Received: (at 24623) by debbugs.gnu.org; 4 Nov 2017 17:41:33 +0000 Received: from localhost ([127.0.0.1]:50882 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eB2Rp-0003Aq-EJ for submit@debbugs.gnu.org; Sat, 04 Nov 2017 13:41:33 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:51138) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eB2Ro-0003Ad-0N for 24623@debbugs.gnu.org; Sat, 04 Nov 2017 13:41:32 -0400 Received: by mail-pf0-f178.google.com with SMTP id b6so4600803pfh.7 for <24623@debbugs.gnu.org>; Sat, 04 Nov 2017 10:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boostpro-com.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=BgItlHcj/C+73abKyyRXA+PMHbkB3NRItmxRKP9143g=; b=QOXGvVmhLkvST25kD5lH45T36GqRifJh+B2sY4oABW6vaBYP3bFXwJIaXDctoSrxiP 8tImVQt9XF6k2Con85bSW32LXYgP55zY5Hw/Hqc/YCNGuJwUovUVVZdlG2pxXvyGPZxk BCpa+boaRv10cxV//K9YbDglsCJyo0FmvGZHcjkT6XcICkp5BW8JR4n3GCmhd7c54QQ7 ivkN/3ho1ekWgSVpK81IgoVe6r0rHiIims1fRKZ0DIDhy0MhAoiORuJvaQZ9pfUVgBzb z+50buZGphA3X3260kgyPY5p46LywkCflXfRCz/kQOz5zDTVhckWTdVDAi4W+10UBlR8 ATUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=BgItlHcj/C+73abKyyRXA+PMHbkB3NRItmxRKP9143g=; b=c1+7VpgP4SkKaXNcnqNzLCnx7Bvh9v3J5kZtCuI25M7QVWHxMDsfogXyWCxZ7DCuRF 4FeVOlwyEXJuyzD4TgwjDeae+W4+eVr6meIQjlU0llfqx4by1ClMUf8Y57ZFz0K0dFVb HVPP4uqouIisne0vAGl6HqOT1aVZOKJZ3MOjm9sCWKvg9phLN9rctojdnPAGn5Xvoqvl CCIZ7gb1Bj2yrgfsbm1a3vQVRGl9XkBR0KZO5J4WJNmIxZhLFn3tZSOlWJYpoC9Fevg4 2suW39+PC8BYqza4M70O7No8AiURFNGiS9TuPeDpPcvpBTMglvUNSNKVGjdYJJ9RFB2C a4Ow== X-Gm-Message-State: AJaThX6xNn49HqQCqJNs6+AUBFGUB5gRRba00PVsnNIreaapq84Oo1PL VK2Ae3DLEbjnI3w4xikqi96tvw== X-Google-Smtp-Source: ABhQp+Tqm7kFzEJtfqUfNRZciJf8uVs8Ja27xLXJh1T/ivqZWc31GCFtOXYuMJ5IUSrUpJ0h0nrEYw== X-Received: by 10.98.137.68 with SMTP id v65mr4802649pfd.170.1509817285827; Sat, 04 Nov 2017 10:41:25 -0700 (PDT) Received: from miles.lan (c-73-93-149-15.hsd1.ca.comcast.net. [73.93.149.15]) by smtp.gmail.com with ESMTPSA id e24sm17393909pfl.43.2017.11.04.10.41.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Nov 2017 10:41:23 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) From: Dave Abrahams In-Reply-To: <877ev7vav8.fsf@gmail.com> Date: Sat, 4 Nov 2017 10:41:20 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <6DC71505-4D91-4AB7-BEAF-EDAAA0175DA4@boostpro.com> References: <877ev7vav8.fsf@gmail.com> X-Mailer: Apple Mail (2.3445.4.7) X-Spam-Score: -2.8 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) > On Nov 3, 2017, at 4:51 AM, Jo=C3=A3o T=C3=A1vora = wrote: >=20 > Dave Abrahams writes: >=20 >> In these lines from flymake-post-syntax-check: >>=20 >> (if (and (equal 0 err-count) (equal 0 warn-count)) >> (if (equal 0 exit-status) >> (flymake-report-status "" "") ; PASSED >> (if (not flymake-check-was-interrupted) >> (flymake-report-fatal-status "CFGERR" >> (format "Configuration = error has occurred while running %s" command)) >> (flymake-report-status nil ""))) ; "STOPPED" >> (flymake-report-status (format "%d/%d" err-count warn-count) = ""))))) >>=20 >> err-count and warn-count are the count of errors detected *in the = file >> being edited*. My syntax check command must consider a whole batch = of >> files at once, and sometimes those other files have errors in them. >> That should not disable syntax checking in the current file, but = flymake >> has this behavior unconditionally, and there's no way to turn it off. >=20 > [Eli, I=E2=80=99m CC=E2=80=99ing you since I think this bug can be = marked "wontfix" or > equivalent] >=20 > Hello Dave and sorry for the extremely late reply to this bug. >=20 > This is easy to reproduce with GCC as a checker tool when checking a = .h > file with no errors but included by a .c file with some errors. >=20 > I just wanted to note, if you haven=E2=80=99t noticed already, that = Flymake has > been redesigned in the upcoming Emacs 26 and the functionality you = refer > to is now considered obsolete. >=20 > Nevertheless, it is still supported and lives in a so called "legacy > backend". Your particular problem also popped up for me testing. My > solution would be to invoke your syntax checker tool in a way that the > invocation univocally returns 0, like having this in a Makefile: >=20 > syntax-check: > mytool $(CHK_SOURCES) || true >=20 > But there are new much better ways to configure Flymake with your = syntax > checker. They are described in the Flymake Info manual, which also > broadly describes the redesign effort). You can read this manual with > M-x info in the upcoming Emacs version (or one of the already = available > pretests thereof). >=20 > Given the workaround, I don=E2=80=99t there=E2=80=99s much reason to = fix this. Hadn't noticed, thanks. I'll have to upgrade my emacs I guess. Thanks = for the update.= From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 05 16:52:32 2017 Received: (at control) by debbugs.gnu.org; 5 Nov 2017 21:52:33 +0000 Received: from localhost ([127.0.0.1]:52741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBSqG-0003g1-Mg for submit@debbugs.gnu.org; Sun, 05 Nov 2017 16:52:32 -0500 Received: from mail-wr0-f176.google.com ([209.85.128.176]:44041) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBSqF-0003fo-HI for control@debbugs.gnu.org; Sun, 05 Nov 2017 16:52:31 -0500 Received: by mail-wr0-f176.google.com with SMTP id z55so6907061wrz.1 for ; Sun, 05 Nov 2017 13:52:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:to:from:subject:mime-version :content-transfer-encoding; bh=PtGafuaK1g1ZwyTdXdJAScLCZmv1Q/eFAo8dEA5Vlmg=; b=symhPCxV4NwVmHv66/DzG3mmg5PAf+PwULxPL/MNXXtY/iYRrsxqnoaKK37jRbgTxc 6toy9K7lFauy3n3rZepsyTDqYPZ3tlx+SOIESJ+u2ICIRVM8WoeCltQ7I4DS3jX4PuvT k483rzVP5xK8iqKJZDFCL+XDlMypjgK1pdrX7wWav5ATLh5vm8lp2raCNsmlli+S/Nfp o+xNy7SBaHJIE2AfkLvDdRF+xA0oiwjCJahg4i0dyOYZeLGfeeG2ajcQj5fi5426JuMw /4FHnc1FSdFG3cOa17EetWsJTnuaxo6JJKUf6guUNIXQf/BsNlonE47/jdGH+PulZ2Kl /Qtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:to:from:subject:mime-version :content-transfer-encoding; bh=PtGafuaK1g1ZwyTdXdJAScLCZmv1Q/eFAo8dEA5Vlmg=; b=VAaD0gM4EzdxpPDz16UhUZ0ir4OcrF5s8IkInMqerRyC9/PFME9mxDttoV3PcLRCkD zlFy4uwK7eTNsml8pIRTaAkK/ldSHJqU35ind3SrqbvZw90TiKq5tc/JXKrqIimyZGTU 4krqL6am2uIjXNgavY9LzqU4H/hbUEa72WcHHGJ0+97WPt0GclobB65C2kS5E4+b0hGj zsNXuGaVsReL+/B3XhjxVxErwZzzXi7K6Jt9KklL3HYFMrt7BPKRa/QSjBgNKYC0YMnF ejOozkDdoxJXfY6Xam4tRKfYAJzjeh0qCi2pO4ruGIlQnxC/QfUyXSFcNBpDRcXvTjsQ XnIg== X-Gm-Message-State: AMCzsaUmGE//UEK9HgSJou7WqcCU0liqNo4rUWx6oA+dl3QFepsiOONo 8RH9rviW12vRgNv1QClT5DCuP/aR X-Google-Smtp-Source: ABhQp+QYhocvGj/XWJmuqsFALnnSTpqQJV/tcj4cxmsZ6WmTOWkt7+vZ9H2KQXUt77gCivWie3fhDw== X-Received: by 10.223.132.135 with SMTP id 7mr11693162wrg.74.1509918745284; Sun, 05 Nov 2017 13:52:25 -0800 (PST) Received: from lolita.yourcompany.com (188.139.62.94.rev.vodafone.pt. [94.62.139.188]) by smtp.gmail.com with ESMTPSA id d125sm4134182wmd.2.2017.11.05.13.52.24 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 05 Nov 2017 13:52:24 -0800 (PST) Date: Sun, 05 Nov 2017 21:52:23 +0000 Message-Id: <87ineoqtpk.fsf@gmail.com> To: control@debbugs.gnu.org From: joaotavora@gmail.com (=?utf-8?B?Sm/Do28gVMOhdm9yYQ==?=) Subject: control message for bug #24623 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) tags 24623 wontfix close 24623