GNU logs - #36001, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36001: 26.2; compile-mode.el/compilation-mode spontaneous behaviour
Resent-From: Evgeniy Dushistov <dushistov@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 30 May 2019 09:50:01 +0000
Resent-Message-ID: <handler.36001.B.15592097952841 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 36001
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 36001 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.15592097952841
          (code B ref -1); Thu, 30 May 2019 09:50:01 +0000
Received: (at submit) by debbugs.gnu.org; 30 May 2019 09:49:55 +0000
Received: from localhost ([127.0.0.1]:60769 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hWHh4-0000jl-Di
	for submit <at> debbugs.gnu.org; Thu, 30 May 2019 05:49:54 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35434)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dushistov@HIDDEN>) id 1hWHh1-0000jV-Dg
 for submit <at> debbugs.gnu.org; Thu, 30 May 2019 05:49:52 -0400
Received: from lists.gnu.org ([209.51.188.17]:50636)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <dushistov@HIDDEN>) id 1hWHgw-0000kk-7D
 for submit <at> debbugs.gnu.org; Thu, 30 May 2019 05:49:46 -0400
Received: from eggs.gnu.org ([209.51.188.92]:49812)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <dushistov@HIDDEN>) id 1hWHgu-0004r1-Em
 for bug-gnu-emacs@HIDDEN; Thu, 30 May 2019 05:49:46 -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.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <dushistov@HIDDEN>) id 1hWHgs-0000bu-SW
 for bug-gnu-emacs@HIDDEN; Thu, 30 May 2019 05:49:44 -0400
Received: from smtp37.i.mail.ru ([94.100.177.97]:33030)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <dushistov@HIDDEN>) id 1hWHgs-0000Uh-48
 for bug-gnu-emacs@HIDDEN; Thu, 30 May 2019 05:49:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru;
 s=mail2; 
 h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date;
 bh=pM9T//NKOiY+0DIR/arayTLQfHDgshYKfKU3leea898=; 
 b=KmZV5YlbhiK1ABD9cAVwQ4SijhP4hIKr+y+/OXSLsc9d7yWzIsaeuOBstXtM6PoZZnHTlAVDvcmBuE8iAZpX+i9Nm/corj9XTwdjUOzUifctmbbDSD4crxH3waWLxQPvWENMStBHghlv/eXQJM85y4NAAfd26qclvNOc9n65FcE=;
Received: by smtp37.i.mail.ru with esmtpa (envelope-from <dushistov@HIDDEN>)
 id 1hWHgn-0003Tj-U6
 for bug-gnu-emacs@HIDDEN; Thu, 30 May 2019 12:49:38 +0300
Date: Thu, 30 May 2019 12:49:36 +0300
From: Evgeniy Dushistov <dushistov@HIDDEN>
Message-ID: <20190530094936.GA22903@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
"X-PGP-Key: https://sks-keyservers.net/pks/lookup?op=vindex&search=dushistov%40mail.ru"
User-Agent: Mutt/1.12.0 (2019-05-25)
Authentication-Results: smtp37.i.mail.ru; auth=pass smtp.auth=dushistov@HIDDEN
 smtp.mailfrom=dushistov@HIDDEN
X-77F55803: CF41D5CA8C6D3C0C7F9F52485CB584D7FE68477BFBFC01B4058C33616D76487C79EEDE595C41A9666F0EA0E894F5140B660823B2EEFD31DC
X-7FA49CB5: 0D63561A33F958A568D795CC3FF6DDA13510624218EFA46F628718AE786D08B38941B15DA834481FA18204E546F3947CEDCF5861DED71B2F389733CBF5DBD5E9C8A9BA7A39EFB7666BA297DBC24807EA117882F44604297287769387670735209ECD01F8117BC8BEA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249A0EE70D6C0970CA7D81D268191BDAD3DBD4B6F7A4D31EC0B5563AC4C43EF3CD7090A508E0FED62990E30A4C9C8E338DA96C9B5BF839F39F6B3661434B16C20AC93541453170D46FCAAAE862A0553A39223F8577A6DFFEA7C7047E69D63EA1A55C7704B39DCBE0C69EFF80C71ABB335746BA297DBC24807EA27F269C8F02392CDCDCF839C8780CBD93C9F3DD0FB1AF5EB4E70A05D1297E1BBCB5012B2E24CD356
X-Mailru-Sender: AFD8F0D0D0E72874173F5846337BA163D3EC3C518F337943DE7009DE65110A40F31FE319BF0A92C91BC9E2BE8152FC633DDE9B364B0DF28983F97ED9068BB8531752C749FAB18CA3AE208404248635DF
X-Mras: OK
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 94.100.177.97
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Spam-Score: -1.3 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hi,

compile-mode.el (compilation-mode) works in really spontaneous way.

I run compilation via:

(defun rust-compile ()
  "Compile using `cargo build`"
  (interactive)
  (compile "cargo build"))
 
Sometimes errors are highlighted, sometimes aren't.
For example I run compilation, and the first error is not highlighted:

https://user-images.githubusercontent.com/156697/58186628-f013bf80-7cbd-11e9-956b-741e64fabbe6.png

Then I switch buffer '*compilation*' and run M-x compilation-mode,
and error is highlighted in the right way:

https://user-images.githubusercontent.com/156697/58186629-f013bf80-7cbd-11e9-88c4-7a1fc90b08d8.png

Also jump to the error via C-x ` sometimes doesn't work (emacs insitead of jump to code,
asks where find source file), but after I would switch to '*compilation*' and
run M-x compilation-mode, C-x ` works again. 

These are spontaneous errors, I have ~10 good cases,
when all works fine vs 1 bad case, when rending or jump to source location works
only for subset of errors/warnings.


In GNU Emacs 26.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.8)
 of 2019-04-12 built on juergen
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Arch Linux

Recent messages:
Mark saved where search started
Mark set
Undo!
Mark set
Saving file /home/evgeniy/bigdisk1/projects/rust-infra/swig/macroslib/src/lib.rs...
Formatted buffer with rustfmt.
Wrote /home/evgeniy/bigdisk1/projects/rust-infra/swig/macroslib/src/lib.rs
Cargo-Process exited abnormally with code 101
Quit [3 times]
Making completion list...

Configured using:
 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong
 -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2

Important settings:
  value of $LANG: ru_RU.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Rust

Minor modes in effect:
  diff-auto-refine-mode: t
  lsp-ui-mode: t
  lsp-ui-doc-mode: t
  lsp-ui-sideline-mode: t
  column-enforce-mode: t
  show-paren-mode: t
  shell-dirtrack-mode: t
  company-mode: t
  lsp--managed-mode: t
  lsp-mode: t
  flymake-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
/home/evgeniy/.emacs.d/elpa/cmake-mode-20180709.1426/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode

Features:
(shadow sort mail-extr emacsbug message rfc822 mml mml-sec epa epg
gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils rect pulse dabbrev company-lsp
misearch multi-isearch vc-git diff-mode company-oddmuse company-keywords
company-etags etags company-gtags company-dabbrev-code company-dabbrev
company-files company-capf company-cmake company-xcode company-clang
company-semantic company-eclim company-bbdb lsp-ui lsp-ui-doc goto-addr
lsp-ui-imenu lsp-ui-peek lsp-ui-sideline lsp-clients lsp-elm lsp-dart
lsp-clojure lsp-go lsp-xml lsp-css lsp-intelephense lsp-vetur lsp-html
lsp-solargraph lsp-rust lsp-pyls column-enforce-mode elec-pair paren
cus-start cus-load company-rtags company-template rtags repeat tramp
tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete
parse-time format-spec advice asm-mode cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs bookmark
company edmacro kmacro ra-emacs-lsp derived lsp cargo cargo-process
lsp-mode ewoc markdown-mode color noutline outline tree-widget wid-edit
xref url-util spinner pcase network-stream puny nsm rmc starttls tls
gnutls inline imenu filenotify f s em-glob esh-util dash-functional
flymake-proc flymake compile comint ansi-color ring warnings thingatpt
project rust-mode json map req-package view req-package-cycles
req-package-args req-package-hooks ht log4e rx dash el-get
el-get-autoloading el-get-list-packages el-get-dependencies el-get-build
el-get-status pp el-get-methods el-get-fossil el-get-svn el-get-pacman
el-get-github-zip el-get-github-tar el-get-http-zip el-get-http-tar
el-get-hg el-get-go el-get-git-svn el-get-fink el-get-emacswiki
el-get-http el-get-notify el-get-emacsmirror el-get-github el-get-git
el-get-elpa el-get-darcs el-get-cvs el-get-bzr el-get-brew
el-get-builtin el-get-apt-get el-get-recipes el-get-byte-compile subr-x
el-get-custom cl-extra help-mode el-get-core autoload radix-tree
lisp-mnt dired dired-loaddefs use-package use-package-ensure
use-package-delight use-package-diminish use-package-bind-key bind-key
easy-mmode use-package-core cl finder-inf info package easymenu
epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core
cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib time-date mule-util cyril-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors 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 composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray 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 threads dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)

Memory information:
((conses 16 491650 111898)
 (symbols 48 40933 1)
 (miscs 40 1396 3515)
 (strings 32 117161 17565)
 (string-bytes 1 3238003)
 (vectors 16 64057)
 (vector-slots 8 1158194 111302)
 (floats 8 309 1019)
 (intervals 56 9184 4079)
 (buffers 992 26))

-- 
/Evgeniy




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Evgeniy Dushistov <dushistov@HIDDEN>
Subject: bug#36001: Acknowledgement (26.2; compile-mode.el/compilation-mode
 spontaneous behaviour)
Message-ID: <handler.36001.B.15592097952841.ack <at> debbugs.gnu.org>
References: <20190530094936.GA22903@HIDDEN>
X-Gnu-PR-Message: ack 36001
X-Gnu-PR-Package: emacs
Reply-To: 36001 <at> debbugs.gnu.org
Date: Thu, 30 May 2019 09:50:01 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 36001 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
36001: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36001
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36001: 26.2; compile-mode.el/compilation-mode spontaneous behaviour
Resent-From: "Basil L. Contovounesios" <contovob@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 30 May 2019 11:41:02 +0000
Resent-Message-ID: <handler.36001.B36001.155921642023413 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36001
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Evgeniy Dushistov <dushistov@HIDDEN>
Cc: 36001 <at> debbugs.gnu.org
Received: via spool by 36001-submit <at> debbugs.gnu.org id=B36001.155921642023413
          (code B ref 36001); Thu, 30 May 2019 11:41:02 +0000
Received: (at 36001) by debbugs.gnu.org; 30 May 2019 11:40:20 +0000
Received: from localhost ([127.0.0.1]:60859 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hWJPv-00065Y-Op
	for submit <at> debbugs.gnu.org; Thu, 30 May 2019 07:40:19 -0400
Received: from mail-ed1-f67.google.com ([209.85.208.67]:34577)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <contovob@HIDDEN>) id 1hWJPt-00065E-B3
 for 36001 <at> debbugs.gnu.org; Thu, 30 May 2019 07:40:18 -0400
Received: by mail-ed1-f67.google.com with SMTP id i11so6936592edn.1
 for <36001 <at> debbugs.gnu.org>; Thu, 30 May 2019 04:40:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=tcd-ie.20150623.gappssmtp.com; s=20150623;
 h=from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=nO9XBzJ6Qm6yJKa8rik79jZKjnej+9CYUYHAl2zNOhE=;
 b=2Shyk7oe3ZypXrpaIYkqvdbsdzQwQQbs+5dVDBdcK5MtEe74PkCGdLAFLtGYAQy3Aa
 DVhK8O6+2oHS6bfw9yzJUpBS8PZ49GrvFp6zZryOsp/V+WnG9NpeZBPlzzd4M8a4mI8P
 48g9IHmkQmNCt6R4Ra9qftP6r/0XDVZIFSUge4DUx6jRZFEC9IjuYvcS6lzdV9KfV4aB
 5LviEJ+3kPh0WVExYJU2pFjbNog83UGjzzFotkKDNkX2Tqa+/OeEDBrwnqfgTeyVhEOc
 cy+tsp8VaEGsDs/q0Ij7p4nT5jOfZmez0e2ZKAtVi92I6q/dEjMP9lI45xZLF614Rhtr
 afmQ==
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;
 bh=nO9XBzJ6Qm6yJKa8rik79jZKjnej+9CYUYHAl2zNOhE=;
 b=sgJuL9+FaAtlHP4dQnlXYimL77NYZB+4K2E3/haZu4Qclz3zbSFXGAyKvapLFsMYHG
 owm8pEbNQ5/RCjOn4rhFwW/dNYlKUXYZDWRZDjfOeLZutJjuGbyrbuh9b0Iy6oPKamzA
 zv9Xu7rob7qUbnHevF13ZMXes8ThzK6ok6WHn9edcGWRZJHcBV/7kK222d5CNZOL+5Qj
 ydVzU7pdvzfoeIVM7dDzh6g+fSOzWYL6MqRIhkRa0+rmJKolYY0EkQwSWq2CQLEEEBoI
 nwVVrf1ARxDwUbeTEzagNkouDKi7neucHpD4c7zjtkyuD9WZn4NcwUKxDGgrAeTDt/9M
 /dTw==
X-Gm-Message-State: APjAAAWD0Czy0T1waviQH3nvBKwbpJhtRoj1JuXvb6bnaFIYWiYWLEn5
 LWYARtNOZgKKVvwGEX6H2nNVsg==
X-Google-Smtp-Source: APXvYqyCYx25w/PZWuF1dcnwmH8woUt0xRaysXK1OtrTFSHhHaVehU8S1kYwyn4khw7WwFk9TBIwjA==
X-Received: by 2002:a17:906:6812:: with SMTP id
 k18mr3059248ejr.95.1559216411308; 
 Thu, 30 May 2019 04:40:11 -0700 (PDT)
Received: from localhost ([2a02:8084:20e2:c380:8cad:ae29:555d:852d])
 by smtp.gmail.com with ESMTPSA id o17sm386221ejb.62.2019.05.30.04.40.10
 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);
 Thu, 30 May 2019 04:40:10 -0700 (PDT)
From: "Basil L. Contovounesios" <contovob@HIDDEN>
References: <20190530094936.GA22903@HIDDEN>
Date: Thu, 30 May 2019 12:40:09 +0100
In-Reply-To: <20190530094936.GA22903@HIDDEN> (Evgeniy Dushistov's
 message of "Thu, 30 May 2019 12:49:36 +0300")
Message-ID: <871s0gw4py.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.3 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.3 (-)

Evgeniy Dushistov <dushistov@HIDDEN> writes:

> compile-mode.el (compilation-mode) works in really spontaneous way.
>
> I run compilation via:
>
> (defun rust-compile ()
>   "Compile using `cargo build`"
>   (interactive)
>   (compile "cargo build"))
>  
> Sometimes errors are highlighted, sometimes aren't.
> For example I run compilation, and the first error is not highlighted:
>
> https://user-images.githubusercontent.com/156697/58186628-f013bf80-7cbd-11e9-956b-741e64fabbe6.png
>
> Then I switch buffer '*compilation*' and run M-x compilation-mode,
> and error is highlighted in the right way:
>
> https://user-images.githubusercontent.com/156697/58186629-f013bf80-7cbd-11e9-88c4-7a1fc90b08d8.png
>
> Also jump to the error via C-x ` sometimes doesn't work (emacs insitead of jump to code,
> asks where find source file), but after I would switch to '*compilation*' and
> run M-x compilation-mode, C-x ` works again. 
>
> These are spontaneous errors, I have ~10 good cases,
> when all works fine vs 1 bad case, when rending or jump to source location works
> only for subset of errors/warnings.

Are you able to reproduce these issues starting from 'emacs -Q'?

-- 
Basil




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36001: 26.2; compile-mode.el/compilation-mode spontaneous behaviour
Resent-From: Noam Postavsky <npostavs@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 30 May 2019 12:02:02 +0000
Resent-Message-ID: <handler.36001.B36001.155921768925956 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36001
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Evgeniy Dushistov <dushistov@HIDDEN>
Cc: 36001 <at> debbugs.gnu.org
Received: via spool by 36001-submit <at> debbugs.gnu.org id=B36001.155921768925956
          (code B ref 36001); Thu, 30 May 2019 12:02:02 +0000
Received: (at 36001) by debbugs.gnu.org; 30 May 2019 12:01:29 +0000
Received: from localhost ([127.0.0.1]:60898 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hWJkO-0006ka-KS
	for submit <at> debbugs.gnu.org; Thu, 30 May 2019 08:01:28 -0400
Received: from mail-io1-f49.google.com ([209.85.166.49]:39706)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>) id 1hWJkM-0006kJ-G7
 for 36001 <at> debbugs.gnu.org; Thu, 30 May 2019 08:01:27 -0400
Received: by mail-io1-f49.google.com with SMTP id r185so4806901iod.6
 for <36001 <at> debbugs.gnu.org>; Thu, 30 May 2019 05:01:26 -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;
 bh=tEQKTUJBg7oVCdSpxZbtyAdPUOmijuRhuTipnGti9eg=;
 b=esAHiAYFmQsGlkMwG7HWzD2T9lewAXVXbnyTTukxIg62G5uEjM3PeEItsSM7Q1f2CI
 yTweZEDXKOxpWKC4TDsMAwZsFko2ezlCF4xa/8dK79WTObEaO/QunYBczDcGKTUIgULY
 kTLxsrJ9LB5UreY0J2yDtSUWmhivF/27f8aGKwjvuGNm0rpNd5IO+H79E30xDItBkEFu
 FmNJe8mNgvgJD+4MqKtMdvjFipz+QPt8L8KFhTNEUwfAicNZYkMuThGP3X11hLmu46Gv
 M78uwW7mz1IkhyD1B3GpagXMGntmzMST1qrXzzlzHEhJr9oZd1mBUMgYimfSPg78JISu
 2lDA==
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;
 bh=tEQKTUJBg7oVCdSpxZbtyAdPUOmijuRhuTipnGti9eg=;
 b=rebPY46lhM5j49MLL+uVaGalg2NNQfcNSwnad0kEbxY3bTz7jNTcu5yya6z6wXI0Yj
 hqyTXlZvC9oZeQwYminaY4Y3fIk/c5Fm73NooOaz77ghquO0i2r9swIHu+uz0KczAqDa
 zlqH8aVgUJSGXQYABaZKwukBUukmlHb3FPgGcPINEivHse1q3WpwpJ7LvoBCMT3+m09g
 5jfdxqD+sqGvsXcfkOWl3oPZ06zLWpndsLCfmqYwXQxWE9nOW9ul2v/Cq/Aw0nAQQHSt
 fFHwuQ5rQgjsXGZhPhaoMwLFSYSWVkbMFgRwP4jGq3OwMwTHWcc4Nlm070rD6GaAA5jh
 4H3g==
X-Gm-Message-State: APjAAAXWG0UdZnwHJgtSuGrCRMxbUfZDAeKexN0a7DbtzOT1Z1oPpJMn
 k+v5EO5K2MsdqkmhbFK0MjDOohfp
X-Google-Smtp-Source: APXvYqxmG/WFltSoYkYItBUoRqCPRErVbnr9o0rsODYnN0VBqbRW5n2rsi46vDCgFBMskCy0o8HjtQ==
X-Received: by 2002:a6b:3e57:: with SMTP id l84mr2569021ioa.164.1559217680385; 
 Thu, 30 May 2019 05:01:20 -0700 (PDT)
Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.gmail.com with ESMTPSA id
 r12sm957726itb.2.2019.05.30.05.01.19
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 30 May 2019 05:01:19 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
References: <20190530094936.GA22903@HIDDEN>
Date: Thu, 30 May 2019 08:01:18 -0400
In-Reply-To: <20190530094936.GA22903@HIDDEN> (Evgeniy Dushistov's
 message of "Thu, 30 May 2019 12:49:36 +0300")
Message-ID: <87a7f46tip.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Evgeniy Dushistov <dushistov@HIDDEN> writes:

> These are spontaneous errors, I have ~10 good cases,
> when all works fine vs 1 bad case, when rending or jump to source location works
> only for subset of errors/warnings.

Could you evaluate the code below, and then post the contents of the
*trace-output* buffer after a bad case happens.

    (defun bug-36001-clear-trace (&rest _)
      (with-current-buffer trace-buffer
        (let ((inhibit-read-only t))
          (erase-buffer))))
    (advice-add 'compile :before #'bug-36001-clear-trace)
    (trace-function-background 'compilation-filter)




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36001: 26.2; compile-mode.el/compilation-mode spontaneous behaviour
Resent-From: Evgeniy Dushistov <dushistov@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 30 May 2019 13:59:01 +0000
Resent-Message-ID: <handler.36001.B36001.155922472315390 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36001
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Noam Postavsky <npostavs@HIDDEN>
Cc: 36001 <at> debbugs.gnu.org
Received: via spool by 36001-submit <at> debbugs.gnu.org id=B36001.155922472315390
          (code B ref 36001); Thu, 30 May 2019 13:59:01 +0000
Received: (at 36001) by debbugs.gnu.org; 30 May 2019 13:58:43 +0000
Received: from localhost ([127.0.0.1]:33471 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hWLZq-00040A-NI
	for submit <at> debbugs.gnu.org; Thu, 30 May 2019 09:58:43 -0400
Received: from smtp39.i.mail.ru ([94.100.177.99]:38618)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dushistov@HIDDEN>) id 1hWLZk-0003zo-QZ
 for 36001 <at> debbugs.gnu.org; Thu, 30 May 2019 09:58:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru;
 s=mail2; 
 h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date;
 bh=GzuFwBkVSm/2WJJPPBPvBosgc50SZXGB4efti66vMJM=; 
 b=qf9daMg9RlMVazF3Sx6BaaoYUWEOMMDyWk0B5G6wyh/9BCTPEhPvZWs1fQbn/SKRHAzr+uTJ8Oq5KXH3w7ED17yB8gEsoQWvzFF0wai6EdQP8IFJoiqzefuv3YhdaA1jxP9RfndFCdSzadIRGXY+nse7q82sAVKYdxdG0xZ9OkE=;
Received: by smtp39.i.mail.ru with esmtpa (envelope-from <dushistov@HIDDEN>)
 id 1hWLZd-0007w6-Ev; Thu, 30 May 2019 16:58:29 +0300
Date: Thu, 30 May 2019 16:58:28 +0300
From: Evgeniy Dushistov <dushistov@HIDDEN>
Message-ID: <20190530135828.GA111022@HIDDEN>
References: <20190530094936.GA22903@HIDDEN>
 <87a7f46tip.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="FL5UXtIhxfXey3p5"
Content-Disposition: inline
In-Reply-To: <87a7f46tip.fsf@HIDDEN>
"X-PGP-Key: https://sks-keyservers.net/pks/lookup?op=vindex&search=dushistov%40mail.ru"
User-Agent: Mutt/1.12.0 (2019-05-25)
Authentication-Results: smtp39.i.mail.ru; auth=pass smtp.auth=dushistov@HIDDEN
 smtp.mailfrom=dushistov@HIDDEN
X-77F55803: CF41D5CA8C6D3C0C7F9F52485CB584D7FE68477BFBFC01B44E21150E7E410051458E2E5B8A5DDE3DED16671C577CCB4F24DAF05A372A3159
X-7FA49CB5: 0D63561A33F958A52690999C4F708746F46F5E7B232586381F9256336CCD0CAD8941B15DA834481FA18204E546F3947CEDCF5861DED71B2F389733CBF5DBD5E9C8A9BA7A39EFB7666BA297DBC24807EA117882F44604297287769387670735209ECD01F8117BC8BEA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249E3848AE611125D6D3AA81AA40904B5D9CF19DD082D7633A093541453170D46FCD81D268191BDAD3D78DA827A17800CE7085E9CBA62FC42E5CD04E86FAF290E2DBBC930A3941E20C675ECD9A6C639B01B78DA827A17800CE75CDCF4E40258E2BD7FB943C6563AE75C75ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC8519DC0BE04022C72727F269C8F02392CD5571747095F342E88FB05168BE4CE3AF
X-Mailru-Sender: AFD8F0D0D0E72874173F5846337BA163B6BBC95375A54866053B3AF605256E5EB2197CA706A163A61BC9E2BE8152FC633DDE9B364B0DF28983F97ED9068BB8531752C749FAB18CA3AE208404248635DF
X-Mras: OK
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)


--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, May 30, 2019 at 08:01:18AM -0400, Noam Postavsky wrote:
> Evgeniy Dushistov <dushistov@HIDDEN> writes:
> 
> > These are spontaneous errors, I have ~10 good cases,
> > when all works fine vs 1 bad case, when rending or jump to source location works
> > only for subset of errors/warnings.
> 
> Could you evaluate the code below, and then post the contents of the
> *trace-output* buffer after a bad case happens.
> 
>     (defun bug-36001-clear-trace (&rest _)
>       (with-current-buffer trace-buffer
>         (let ((inhibit-read-only t))
>           (erase-buffer))))
>     (advice-add 'compile :before #'bug-36001-clear-trace)
>     (trace-function-background 'compilation-filter)

I attached two files,
one is *trace-output* another is *compilation*,
the first error is not marked as error:

> error...
>   --> macroslib/src/lib.rs:428:27

I uses rust-mode, it adds some regexps to
compilation-error-regexp-alist-alist:

https://github.com/rust-lang/rust-mode/blob/master/rust-mode.el


-- 
/Evgeniy

--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=trace-output

======================================================================
1 -> (compilation-filter #<process compilation> "   Compiling rust_swig v0.4.0-pre (/home/evgeniy/bigdisk1/projects/rust-infra/swig/macroslib)
")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error[E0599]: no method named `merge` found for type `typemap::TypeMap` in the current scope
   --> macroslib/src/lib.rs:428:27
    |
428 |             self.conv_map.merge(*code_id, code, target_pointer_width)?;
    |                           ^^^^^ help: did you mean: `merge2`
    | 
   ::: macroslib/src/typemap.rs:81:1
    |
81  | pub(crate) struct TypeMap {
    | ------------------------- method `merge` not found for this

")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/cpp/mod.rs:666:14
    |
666 |     conv_map.merge(SourceId::none(), &code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/cpp/mod.rs:799:14
    |
799 |     conv_map.merge(SourceId::none(), &code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/java_jni/rust_code.rs:349:14
    |
349 |     conv_map.merge(SourceId::none(), &code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/java_jni/rust_code.rs:401:14
    |
401 |     conv_map.merge(SourceId::none(), &new_conv_code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0599`.
")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error: Could not compile `rust_swig`.

To learn more, run the command again with --verbose.
")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "   Compiling rust_swig v0.4.0-pre (/home/evgeniy/bigdisk1/projects/rust-infra/swig/macroslib)
")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error[E0599]: no method named `merge` found for type `typemap::TypeMap` in the current scope
   --> macroslib/src/lib.rs:428:27
    |
428 |             self.conv_map.merge(*code_id, code, target_pointer_width)?;
    |                           ^^^^^ help: did you mean: `merge2`
    | 
")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "   ::: macroslib/src/typemap.rs:81:1
    |
81  | pub(crate) struct TypeMap {
    | ------------------------- method `merge` not found for this

")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/cpp/mod.rs:666:14
    |
666 |     conv_map.merge(SourceId::none(), &code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/cpp/mod.rs:799:14
    |
799 |     conv_map.merge(SourceId::none(), &code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/java_jni/rust_code.rs:349:14
    |
349 |     conv_map.merge(SourceId::none(), &code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/java_jni/rust_code.rs:401:14
    |
401 |     conv_map.merge(SourceId::none(), &new_conv_code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0599`.
")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error: Could not compile `rust_swig`.

To learn more, run the command again with --verbose.
")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "   Compiling rust_swig v0.4.0-pre (/home/evgeniy/bigdisk1/projects/rust-infra/swig/macroslib)
")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error[E0599]: no method named `merge` found for type `typemap::TypeMap` in the current scope
")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "   --> macroslib/src/lib.rs:428:27
    |
428 |             self.conv_map.merge(*code_id, code, target_pointer_width)?;
    |                           ^^^^^ help: did you mean: `merge2`
    | 
   ::: macroslib/src/typemap.rs:81:1
    |
81  | pub(crate) struct TypeMap {
    | ------------------------- method `merge` not found for this

")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/cpp/mod.rs:666:14
    |
666 |     conv_map.merge(SourceId::none(), &code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/cpp/mod.rs:799:14
    |
799 |     conv_map.merge(SourceId::none(), &code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/java_jni/rust_code.rs:349:14
    |
349 |     conv_map.merge(SourceId::none(), &code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`
")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "
error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/java_jni/rust_code.rs:401:14
    |
401 |     conv_map.merge(SourceId::none(), &new_conv_code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0599`.
")
1 <- compilation-filter: nil
======================================================================
1 -> (compilation-filter #<process compilation> "error: Could not compile `rust_swig`.

To learn more, run the command again with --verbose.
")
1 <- compilation-filter: nil

--FL5UXtIhxfXey3p5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=compilation

-*- mode: compilation; default-directory: "~/bigdisk1/projects/rust-infra/swig/macroslib/src/" -*-
Compilation started at Thu May 30 16:54:30

cargo build
   Compiling rust_swig v0.4.0-pre (/home/evgeniy/bigdisk1/projects/rust-infra/swig/macroslib)
error[E0599]: no method named `merge` found for type `typemap::TypeMap` in the current scope
   --> macroslib/src/lib.rs:428:27
    |
428 |             self.conv_map.merge(*code_id, code, target_pointer_width)?;
    |                           ^^^^^ help: did you mean: `merge2`
    | 
   ::: macroslib/src/typemap.rs:81:1
    |
81  | pub(crate) struct TypeMap {
    | ------------------------- method `merge` not found for this

error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/cpp/mod.rs:666:14
    |
666 |     conv_map.merge(SourceId::none(), &code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/cpp/mod.rs:799:14
    |
799 |     conv_map.merge(SourceId::none(), &code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/java_jni/rust_code.rs:349:14
    |
349 |     conv_map.merge(SourceId::none(), &code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

error[E0599]: no method named `merge` found for type `&mut typemap::TypeMap` in the current scope
   --> macroslib/src/java_jni/rust_code.rs:401:14
    |
401 |     conv_map.merge(SourceId::none(), &new_conv_code, pointer_target_width)?;
    |              ^^^^^ help: did you mean: `merge2`

error: aborting due to 5 previous errors

For more information about this error, try `rustc --explain E0599`.
error: Could not compile `rust_swig`.

To learn more, run the command again with --verbose.

Compilation exited abnormally with code 101 at Thu May 30 16:54:32

--FL5UXtIhxfXey3p5--




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36001: 26.2; compile-mode.el/compilation-mode spontaneous behaviour
Resent-From: Evgeniy Dushistov <dushistov@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 30 May 2019 14:11:02 +0000
Resent-Message-ID: <handler.36001.B36001.155922543916635 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36001
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: "Basil L. Contovounesios" <contovob@HIDDEN>
Cc: 36001 <at> debbugs.gnu.org
Received: via spool by 36001-submit <at> debbugs.gnu.org id=B36001.155922543916635
          (code B ref 36001); Thu, 30 May 2019 14:11:02 +0000
Received: (at 36001) by debbugs.gnu.org; 30 May 2019 14:10:39 +0000
Received: from localhost ([127.0.0.1]:33492 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hWLlP-0004KD-5b
	for submit <at> debbugs.gnu.org; Thu, 30 May 2019 10:10:39 -0400
Received: from smtp37.i.mail.ru ([94.100.177.97]:40670)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dushistov@HIDDEN>) id 1hWLlL-0004Jx-MI
 for 36001 <at> debbugs.gnu.org; Thu, 30 May 2019 10:10:37 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru;
 s=mail2; 
 h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date;
 bh=R1WwLSAZwvoDeuGDoZmO//DSx7svRYuQarYI5u1NgLk=; 
 b=f/+hCag5zLyIBIwTux//tnRf+sA44qbIoCt1dqmeqW7hQ35UL+AdOUAK0/Fs3iVFnTiug4bbcKy1JSrwlCWYQ7M0VAcGZSLb23c8EKVFmlenH53rU8ndeuNNxXSqjaNWvY4Eib4i5yIJu8Owo7VN/9IomsqiU+AvtFwem+bNpZg=;
Received: by smtp37.i.mail.ru with esmtpa (envelope-from <dushistov@HIDDEN>)
 id 1hWLlE-0001yp-Rs; Thu, 30 May 2019 17:10:29 +0300
Date: Thu, 30 May 2019 17:10:27 +0300
From: Evgeniy Dushistov <dushistov@HIDDEN>
Message-ID: <20190530141027.GB111022@HIDDEN>
References: <20190530094936.GA22903@HIDDEN> <871s0gw4py.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <871s0gw4py.fsf@HIDDEN>
"X-PGP-Key: https://sks-keyservers.net/pks/lookup?op=vindex&search=dushistov%40mail.ru"
User-Agent: Mutt/1.12.0 (2019-05-25)
Authentication-Results: smtp37.i.mail.ru; auth=pass smtp.auth=dushistov@HIDDEN
 smtp.mailfrom=dushistov@HIDDEN
X-77F55803: 257C4F86AB09C89C5A78504BD2AC2941988784FC6C4AE31F9A4BB7359F2BE50E98A83547E8183688090E58FD8DB933A3E8EEE4561BCE90F3
X-7FA49CB5: 0D63561A33F958A566406BB6993ACF4445D4A49885069CBCC16E91E0A76270938941B15DA834481FA18204E546F3947CEDCF5861DED71B2F389733CBF5DBD5E9C8A9BA7A39EFB7666BA297DBC24807EA117882F44604297287769387670735209ECD01F8117BC8BEA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249E3848AE611125D6D3AA81AA40904B5D9CF19DD082D7633A093541453170D46FCD81D268191BDAD3D78DA827A17800CE7085E9CBA62FC42E5CD04E86FAF290E2DBBC930A3941E20C675ECD9A6C639B01B78DA827A17800CE7D73D59C906BAAD4D86743C7FDB99CDB275ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC8519DC0BE04022C72727F269C8F02392CD5571747095F342E88FB05168BE4CE3AF
X-Mailru-Sender: AFD8F0D0D0E72874173F5846337BA1632D99D78A31A54E5907CAA7C82C46541AA8F1C559F500AFB91BC9E2BE8152FC633DDE9B364B0DF28983F97ED9068BB8531752C749FAB18CA3AE208404248635DF
X-Mras: OK
X-Spam-Score: -0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On Thu, May 30, 2019 at 12:40:09PM +0100, Basil L. Contovounesios wrote:
> Evgeniy Dushistov <dushistov@HIDDEN> writes:
> 
> > compile-mode.el (compilation-mode) works in really spontaneous way.
> >
> > I run compilation via:
> >
> > (defun rust-compile ()
> >   "Compile using `cargo build`"
> >   (interactive)
> >   (compile "cargo build"))
> >  
> > Sometimes errors are highlighted, sometimes aren't.
> > For example I run compilation, and the first error is not highlighted:
> >
> > https://user-images.githubusercontent.com/156697/58186628-f013bf80-7cbd-11e9-956b-741e64fabbe6.png
> >
> > Then I switch buffer '*compilation*' and run M-x compilation-mode,
> > and error is highlighted in the right way:
> >
> > https://user-images.githubusercontent.com/156697/58186629-f013bf80-7cbd-11e9-88c4-7a1fc90b08d8.png
> >
> > Also jump to the error via C-x ` sometimes doesn't work (emacs insitead of jump to code,
> > asks where find source file), but after I would switch to '*compilation*' and
> > run M-x compilation-mode, C-x ` works again. 
> >
> > These are spontaneous errors, I have ~10 good cases,
> > when all works fine vs 1 bad case, when rending or jump to source location works
> > only for subset of errors/warnings.
> 
> Are you able to reproduce these issues starting from 'emacs -Q'?
> 

I can reproduce it with:
emacs -Q 
M-: (load "~/.emacs.d/elpa/rust-mode-20190517.2037/rust-mode.el")

and then 
M-x compile
cargo build <-- command to run rust code compilation

Interesting, that `cargo build` works in deterministic way, it produces
the same output for the same code set on the Rust language.
So the content of *compilation* buffer is always the same,
except of course:
Compilation started at ...
Compilation exited abnormally with code 101 ...

But sometimes it renders ok, sometimes bad.
And if I run 
M-x compile
cat /tmp/saved-compilation-buffer-content.txt

the *compilation* rendering is always fine, no errors.


-- 
/Evgeniy




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 30 May 2019 16:36:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 30 12:36:01 2019
Received: from localhost ([127.0.0.1]:33687 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hWO25-00006f-4i
	for submit <at> debbugs.gnu.org; Thu, 30 May 2019 12:36:01 -0400
Received: from mail-io1-f50.google.com ([209.85.166.50]:43740)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1hWO23-00006M-DS; Thu, 30 May 2019 12:35:59 -0400
Received: by mail-io1-f50.google.com with SMTP id k20so5580219ios.10;
 Thu, 30 May 2019 09:35:59 -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;
 bh=ASgz0MR7l1RY0Ev5GW7m/t07gl6CHHJK1aucBrGhoDQ=;
 b=hjYA+7IfELpEdOemFf1UwGtwue2VnfB0sFO2l6YPEeUteEuQYiaqX0NYJAdh9qxuAC
 H3SCaFhVN9RccZv28iQs5nlBDZqZ9fPg3aEDZamuhhTJW+StHTQ14Eg7NK7NJfq0jBhE
 WrywAZ2HTQAn9cURipKr6BC+gSwSOlKD049kE+VvJnkkvcxsN9ObLwHz/bTzjGwhfnA1
 wnhGr2b6xgNFFK6xcRV3IXFkuj3sCFPR53hQQn8RZKifNkzOQntUsxcu5yYelgo2v8hs
 yPJwRSNPimEDWVi5SPrCNcecKc1xz2hoNfKdVJUB/270hIyLs2lrnBCGNlZmJC53KXkv
 4j/Q==
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;
 bh=ASgz0MR7l1RY0Ev5GW7m/t07gl6CHHJK1aucBrGhoDQ=;
 b=XqpaUwEtzlUKfILRDS2JbowjaXK84RObn14qvIztVkyULhppNSasiIhAu5+K/Xz2Ik
 bkrH5cRaCbkkaEO8NboANK3SQHDXi/YaQwhDuZuqdgxoAhI6RiLarO86DE0d8pEIeF+N
 UKCbjFJDGFSxX0BHDZTe/+0PtiZ07haR/tMq/Y0NkXCIXJu5Jlxj4SShIVHbF+Uwyaxk
 ml6zR3xZZIFscDAbytY/Sc37fYVN6d4QFm5n/Y2vjcyho1h4nOboWqgxl7feMR1AuQ0m
 GERk0TXupsep8biBl6JuvtMC5pGk/JTBYge5cwdwaAlcTyI3UH8Tp69t6AAFcYUM1/xN
 OuGw==
X-Gm-Message-State: APjAAAWdfw1QByuYYPQ9xpeQp63enRti2QuNKbQ6OMPu3j3YQAWgHT15
 8TKjIcym4hl697rS3onKFu2Vqi+k
X-Google-Smtp-Source: APXvYqwLHqNOLtg5IpWSfREZBQ6M4euVNyvkATFohsu03x4Adw0BtwIkIyYkwdfYCUghulUy2qzYGA==
X-Received: by 2002:a6b:e50d:: with SMTP id y13mr2863442ioc.160.1559234153487; 
 Thu, 30 May 2019 09:35:53 -0700 (PDT)
Received: from vhost2
 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196])
 by smtp.gmail.com with ESMTPSA id n26sm1039906ioc.74.2019.05.30.09.35.51
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 30 May 2019 09:35:51 -0700 (PDT)
From: npostavs@HIDDEN
To: Evgeniy Dushistov <dushistov@HIDDEN>
Subject: Re: bug#36001: 26.2;
 compile-mode.el/compilation-mode spontaneous behaviour
References: <20190530094936.GA22903@HIDDEN>
 <87a7f46tip.fsf@HIDDEN> <20190530135828.GA111022@HIDDEN>
Date: Thu, 30 May 2019 12:35:50 -0400
In-Reply-To: <20190530135828.GA111022@HIDDEN> (Evgeniy Dushistov's
 message of "Thu, 30 May 2019 16:58:28 +0300")
Message-ID: <85ef4fdhnd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
Cc: 36001 <at> debbugs.gnu.org, Noam Postavsky <npostavs@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain

merge 36001 25133
quit

Evgeniy Dushistov <dushistov@HIDDEN> writes:

> the first error is not marked as error:
>
>> error...
>>   --> macroslib/src/lib.rs:428:27
>
> I uses rust-mode, it adds some regexps to
> compilation-error-regexp-alist-alist:
>
> https://github.com/rust-lang/rust-mode/blob/master/rust-mode.el

Thanks, I attach a simple reproducer based on this, run as

    emacs -Q -l bug-36001-reproducer.el -f bug-36001-reproducer


--=-=-=
Content-Type: text/plain
Content-Disposition: attachment; filename=bug-36001-reproducer.el
Content-Description: bug reproducer

(require 'compile)

(defun bug-36001-reproducer ()
  (interactive)
  (with-current-buffer (get-buffer-create "*test bug 36001*")
    (compilation-mode)
    (display-buffer (current-buffer))
    (mapc
     (lambda (s)
       (let ((inhibit-read-only t))
         (insert s))
       (sit-for 0))
     '("   Compiling rust_swig v0.4.0-pre (/home/evgeniy/bigdisk1/projects/rust-infra/swig/macroslib)
"
              "error[E0599]: no method named `merge` found for type `typemap::TypeMap` in the current scope
"
              "   --> macroslib/src/lib.rs:428:27
    |
428 |             self.conv_map.merge(*code_id, code, target_pointer_width)?;
    |                           ^^^^^ help: did you mean: `merge2`
    | 
   ::: macroslib/src/typemap.rs:81:1
    |
81  | pub(crate) struct TypeMap {
    | ------------------------- method `merge` not found for this

"))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Copied from https://github.com/rust-lang/rust-mode/raw/master/rust-mode.el
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(defvar rustc-compilation-regexps
  (let ((file "\\([^\n]+\\)")
        (start-line "\\([0-9]+\\)")
        (start-col  "\\([0-9]+\\)"))
    (let ((re (concat "^\\(?:error\\|\\(warning\\)\\)[^-]+--> \\(" file ":" start-line ":" start-col "\\)")))
      (cons re '(3 4 5 (1) 2))))
  "Specifications for matching errors in rustc invocations.
See `compilation-error-regexp-alist' for help on their format.")


(defvar rustc-colon-compilation-regexps
  (let ((file "\\([^\n]+\\)")
        (start-line "\\([0-9]+\\)")
        (start-col  "\\([0-9]+\\)"))
    (let ((re (concat "^ *::: " file ":" start-line ":" start-col ; ::: foo/bar.rs
                      )))
      (cons re '(1 2 3 0)))) ;; 0 for info type
  "Specifications for matching `:::` hints in rustc invocations.
See `compilation-error-regexp-alist' for help on their format.")

;; Match test run failures and panics during compilation as
;; compilation warnings
(defvar cargo-compilation-regexps
  '("^\\s-+thread '[^']+' panicked at \\('[^']+', \\([^:]+\\):\\([0-9]+\\)\\)" 2 3 nil nil 1)
  "Specifications for matching panics in cargo test invocations.
See `compilation-error-regexp-alist' for help on their format.")

(progn
   (add-to-list 'compilation-error-regexp-alist-alist
                (cons 'rustc rustc-compilation-regexps))
   (add-to-list 'compilation-error-regexp-alist 'rustc)
   (add-to-list 'compilation-error-regexp-alist-alist
                (cons 'rustc-colon rustc-colon-compilation-regexps))
   (add-to-list 'compilation-error-regexp-alist 'rustc-colon)
   (add-to-list 'compilation-error-regexp-alist-alist
                (cons 'cargo cargo-compilation-regexps))
   (add-to-list 'compilation-error-regexp-alist 'cargo)
   (add-hook 'next-error-hook 'rustc-scroll-down-after-next-error))

--=-=-=
Content-Type: text/plain


The basic problem is that rust-mode is using a multiline regexp, so it's
the same bug#25133.

--=-=-=--




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#36001: 26.2; compile-mode.el/compilation-mode spontaneous behaviour
Resent-From: npostavs@HIDDEN
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 30 May 2019 16:36:02 +0000
Resent-Message-ID: <handler.36001.B36001.1559234162433 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 36001
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: confirmed
To: Evgeniy Dushistov <dushistov@HIDDEN>
Cc: 36001 <at> debbugs.gnu.org, Noam Postavsky <npostavs@HIDDEN>
Received: via spool by 36001-submit <at> debbugs.gnu.org id=B36001.1559234162433
          (code B ref 36001); Thu, 30 May 2019 16:36:02 +0000
Received: (at 36001) by debbugs.gnu.org; 30 May 2019 16:36:02 +0000
Received: from localhost ([127.0.0.1]:33689 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hWO25-00006h-Fk
	for submit <at> debbugs.gnu.org; Thu, 30 May 2019 12:36:01 -0400
Received: from mail-io1-f50.google.com ([209.85.166.50]:43740)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1hWO23-00006M-DS; Thu, 30 May 2019 12:35:59 -0400
Received: by mail-io1-f50.google.com with SMTP id k20so5580219ios.10;
 Thu, 30 May 2019 09:35:59 -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;
 bh=ASgz0MR7l1RY0Ev5GW7m/t07gl6CHHJK1aucBrGhoDQ=;
 b=hjYA+7IfELpEdOemFf1UwGtwue2VnfB0sFO2l6YPEeUteEuQYiaqX0NYJAdh9qxuAC
 H3SCaFhVN9RccZv28iQs5nlBDZqZ9fPg3aEDZamuhhTJW+StHTQ14Eg7NK7NJfq0jBhE
 WrywAZ2HTQAn9cURipKr6BC+gSwSOlKD049kE+VvJnkkvcxsN9ObLwHz/bTzjGwhfnA1
 wnhGr2b6xgNFFK6xcRV3IXFkuj3sCFPR53hQQn8RZKifNkzOQntUsxcu5yYelgo2v8hs
 yPJwRSNPimEDWVi5SPrCNcecKc1xz2hoNfKdVJUB/270hIyLs2lrnBCGNlZmJC53KXkv
 4j/Q==
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;
 bh=ASgz0MR7l1RY0Ev5GW7m/t07gl6CHHJK1aucBrGhoDQ=;
 b=XqpaUwEtzlUKfILRDS2JbowjaXK84RObn14qvIztVkyULhppNSasiIhAu5+K/Xz2Ik
 bkrH5cRaCbkkaEO8NboANK3SQHDXi/YaQwhDuZuqdgxoAhI6RiLarO86DE0d8pEIeF+N
 UKCbjFJDGFSxX0BHDZTe/+0PtiZ07haR/tMq/Y0NkXCIXJu5Jlxj4SShIVHbF+Uwyaxk
 ml6zR3xZZIFscDAbytY/Sc37fYVN6d4QFm5n/Y2vjcyho1h4nOboWqgxl7feMR1AuQ0m
 GERk0TXupsep8biBl6JuvtMC5pGk/JTBYge5cwdwaAlcTyI3UH8Tp69t6AAFcYUM1/xN
 OuGw==
X-Gm-Message-State: APjAAAWdfw1QByuYYPQ9xpeQp63enRti2QuNKbQ6OMPu3j3YQAWgHT15
 8TKjIcym4hl697rS3onKFu2Vqi+k
X-Google-Smtp-Source: APXvYqwLHqNOLtg5IpWSfREZBQ6M4euVNyvkATFohsu03x4Adw0BtwIkIyYkwdfYCUghulUy2qzYGA==
X-Received: by 2002:a6b:e50d:: with SMTP id y13mr2863442ioc.160.1559234153487; 
 Thu, 30 May 2019 09:35:53 -0700 (PDT)
Received: from vhost2
 (CPE001143542e1f-CMf81d0f809fa0.cpe.net.cable.rogers.com. [99.230.51.196])
 by smtp.gmail.com with ESMTPSA id n26sm1039906ioc.74.2019.05.30.09.35.51
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Thu, 30 May 2019 09:35:51 -0700 (PDT)
From: npostavs@HIDDEN
References: <20190530094936.GA22903@HIDDEN>
 <87a7f46tip.fsf@HIDDEN> <20190530135828.GA111022@HIDDEN>
Date: Thu, 30 May 2019 12:35:50 -0400
In-Reply-To: <20190530135828.GA111022@HIDDEN> (Evgeniy Dushistov's
 message of "Thu, 30 May 2019 16:58:28 +0300")
Message-ID: <85ef4fdhnd.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (windows-nt)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain

merge 36001 25133
quit

Evgeniy Dushistov <dushistov@HIDDEN> writes:

> the first error is not marked as error:
>
>> error...
>>   --> macroslib/src/lib.rs:428:27
>
> I uses rust-mode, it adds some regexps to
> compilation-error-regexp-alist-alist:
>
> https://github.com/rust-lang/rust-mode/blob/master/rust-mode.el

Thanks, I attach a simple reproducer based on this, run as

    emacs -Q -l bug-36001-reproducer.el -f bug-36001-reproducer


--=-=-=
Content-Type: text/plain
Content-Disposition: attachment; filename=bug-36001-reproducer.el
Content-Description: bug reproducer

(require 'compile)

(defun bug-36001-reproducer ()
  (interactive)
  (with-current-buffer (get-buffer-create "*test bug 36001*")
    (compilation-mode)
    (display-buffer (current-buffer))
    (mapc
     (lambda (s)
       (let ((inhibit-read-only t))
         (insert s))
       (sit-for 0))
     '("   Compiling rust_swig v0.4.0-pre (/home/evgeniy/bigdisk1/projects/rust-infra/swig/macroslib)
"
              "error[E0599]: no method named `merge` found for type `typemap::TypeMap` in the current scope
"
              "   --> macroslib/src/lib.rs:428:27
    |
428 |             self.conv_map.merge(*code_id, code, target_pointer_width)?;
    |                           ^^^^^ help: did you mean: `merge2`
    | 
   ::: macroslib/src/typemap.rs:81:1
    |
81  | pub(crate) struct TypeMap {
    | ------------------------- method `merge` not found for this

"))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Copied from https://github.com/rust-lang/rust-mode/raw/master/rust-mode.el
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(defvar rustc-compilation-regexps
  (let ((file "\\([^\n]+\\)")
        (start-line "\\([0-9]+\\)")
        (start-col  "\\([0-9]+\\)"))
    (let ((re (concat "^\\(?:error\\|\\(warning\\)\\)[^-]+--> \\(" file ":" start-line ":" start-col "\\)")))
      (cons re '(3 4 5 (1) 2))))
  "Specifications for matching errors in rustc invocations.
See `compilation-error-regexp-alist' for help on their format.")


(defvar rustc-colon-compilation-regexps
  (let ((file "\\([^\n]+\\)")
        (start-line "\\([0-9]+\\)")
        (start-col  "\\([0-9]+\\)"))
    (let ((re (concat "^ *::: " file ":" start-line ":" start-col ; ::: foo/bar.rs
                      )))
      (cons re '(1 2 3 0)))) ;; 0 for info type
  "Specifications for matching `:::` hints in rustc invocations.
See `compilation-error-regexp-alist' for help on their format.")

;; Match test run failures and panics during compilation as
;; compilation warnings
(defvar cargo-compilation-regexps
  '("^\\s-+thread '[^']+' panicked at \\('[^']+', \\([^:]+\\):\\([0-9]+\\)\\)" 2 3 nil nil 1)
  "Specifications for matching panics in cargo test invocations.
See `compilation-error-regexp-alist' for help on their format.")

(progn
   (add-to-list 'compilation-error-regexp-alist-alist
                (cons 'rustc rustc-compilation-regexps))
   (add-to-list 'compilation-error-regexp-alist 'rustc)
   (add-to-list 'compilation-error-regexp-alist-alist
                (cons 'rustc-colon rustc-colon-compilation-regexps))
   (add-to-list 'compilation-error-regexp-alist 'rustc-colon)
   (add-to-list 'compilation-error-regexp-alist-alist
                (cons 'cargo cargo-compilation-regexps))
   (add-to-list 'compilation-error-regexp-alist 'cargo)
   (add-hook 'next-error-hook 'rustc-scroll-down-after-next-error))

--=-=-=
Content-Type: text/plain


The basic problem is that rust-mode is using a multiline regexp, so it's
the same bug#25133.

--=-=-=--





Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.