From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Evgeniy Dushistov Newsgroups: gmane.emacs.bugs Subject: bug#36001: 26.2; compile-mode.el/compilation-mode spontaneous behaviour Date: Thu, 30 May 2019 17:10:27 +0300 Message-ID: <20190530141027.GB111022@15inch.localdomain> References: <20190530094936.GA22903@15inch.localdomain> <871s0gw4py.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="22581"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.12.0 (2019-05-25) Cc: 36001@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 30 16:11:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hWLlx-0005iO-5z for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 May 2019 16:11:13 +0200 Original-Received: from localhost ([127.0.0.1]:54638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWLlw-0000pa-0n for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 May 2019 10:11:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWLlp-0000pP-3A for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 10:11:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWLln-0004qq-R8 for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 10:11:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48181) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hWLlm-0004of-NK for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 10:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hWLlm-0004Kw-HV for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 10:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Evgeniy Dushistov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 May 2019 14:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36001 X-GNU-PR-Package: emacs Original-Received: via spool by 36001-submit@debbugs.gnu.org id=B36001.155922543916635 (code B ref 36001); Thu, 30 May 2019 14:11:02 +0000 Original-Received: (at 36001) by debbugs.gnu.org; 30 May 2019 14:10:39 +0000 Original-Received: from localhost ([127.0.0.1]:33492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWLlP-0004KD-5b for submit@debbugs.gnu.org; Thu, 30 May 2019 10:10:39 -0400 Original-Received: from smtp37.i.mail.ru ([94.100.177.97]:40670) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWLlL-0004Jx-MI for 36001@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=; Original-Received: by smtp37.i.mail.ru with esmtpa (envelope-from ) id 1hWLlE-0001yp-Rs; Thu, 30 May 2019 17:10:29 +0300 Content-Disposition: inline In-Reply-To: <871s0gw4py.fsf@tcd.ie> "X-PGP-Key: https://sks-keyservers.net/pks/lookup?op=vindex&search=dushistov%40mail.ru" Authentication-Results: smtp37.i.mail.ru; auth=pass smtp.auth=dushistov@mail.ru smtp.mailfrom=dushistov@mail.ru X-77F55803: 257C4F86AB09C89C5A78504BD2AC2941988784FC6C4AE31F9A4BB7359F2BE50E98A83547E8183688090E58FD8DB933A3E8EEE4561BCE90F3 X-7FA49CB5: 0D63561A33F958A566406BB6993ACF4445D4A49885069CBCC16E91E0A76270938941B15DA834481FA18204E546F3947CEDCF5861DED71B2F389733CBF5DBD5E9C8A9BA7A39EFB7666BA297DBC24807EA117882F44604297287769387670735209ECD01F8117BC8BEA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249E3848AE611125D6D3AA81AA40904B5D9CF19DD082D7633A093541453170D46FCD81D268191BDAD3D78DA827A17800CE7085E9CBA62FC42E5CD04E86FAF290E2DBBC930A3941E20C675ECD9A6C639B01B78DA827A17800CE7D73D59C906BAAD4D86743C7FDB99CDB275ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC8519DC0BE04022C72727F269C8F02392CD5571747095F342E88FB05168BE4CE3AF X-Mailru-Sender: AFD8F0D0D0E72874173F5846337BA1632D99D78A31A54E5907CAA7C82C46541AA8F1C559F500AFB91BC9E2BE8152FC633DDE9B364B0DF28983F97ED9068BB8531752C749FAB18CA3AE208404248635DF X-Mras: OK X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159922 Archived-At: On Thu, May 30, 2019 at 12:40:09PM +0100, Basil L. Contovounesios wrote: > Evgeniy Dushistov 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