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 16:58:28 +0300 Message-ID: <20190530135828.GA111022@15inch.localdomain> References: <20190530094936.GA22903@15inch.localdomain> <87a7f46tip.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="FL5UXtIhxfXey3p5" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="233758"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.12.0 (2019-05-25) Cc: 36001@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 30 15:59:16 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 1hWLaN-000yXw-Kh for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 May 2019 15:59:15 +0200 Original-Received: from localhost ([127.0.0.1]:54460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWLaM-0005vY-7E for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 May 2019 09:59:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45173) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hWLaC-0005vH-Oi for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 09:59:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hWLaA-0006E3-OD for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 09:59:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48161) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hWLaA-0006DL-7I for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 09:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hWLa9-00040n-Td for bug-gnu-emacs@gnu.org; Thu, 30 May 2019 09:59: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 13:59:01 +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.155922472315390 (code B ref 36001); Thu, 30 May 2019 13:59:01 +0000 Original-Received: (at 36001) by debbugs.gnu.org; 30 May 2019 13:58:43 +0000 Original-Received: from localhost ([127.0.0.1]:33471 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWLZq-00040A-NI for submit@debbugs.gnu.org; Thu, 30 May 2019 09:58:43 -0400 Original-Received: from smtp39.i.mail.ru ([94.100.177.99]:38618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hWLZk-0003zo-QZ for 36001@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=; Original-Received: by smtp39.i.mail.ru with esmtpa (envelope-from ) id 1hWLZd-0007w6-Ev; Thu, 30 May 2019 16:58:29 +0300 Content-Disposition: inline In-Reply-To: <87a7f46tip.fsf@gmail.com> "X-PGP-Key: https://sks-keyservers.net/pks/lookup?op=vindex&search=dushistov%40mail.ru" Authentication-Results: smtp39.i.mail.ru; auth=pass smtp.auth=dushistov@mail.ru smtp.mailfrom=dushistov@mail.ru X-77F55803: CF41D5CA8C6D3C0C7F9F52485CB584D7FE68477BFBFC01B44E21150E7E410051458E2E5B8A5DDE3DED16671C577CCB4F24DAF05A372A3159 X-7FA49CB5: 0D63561A33F958A52690999C4F708746F46F5E7B232586381F9256336CCD0CAD8941B15DA834481FA18204E546F3947CEDCF5861DED71B2F389733CBF5DBD5E9C8A9BA7A39EFB7666BA297DBC24807EA117882F44604297287769387670735209ECD01F8117BC8BEA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249E3848AE611125D6D3AA81AA40904B5D9CF19DD082D7633A093541453170D46FCD81D268191BDAD3D78DA827A17800CE7085E9CBA62FC42E5CD04E86FAF290E2DBBC930A3941E20C675ECD9A6C639B01B78DA827A17800CE75CDCF4E40258E2BD7FB943C6563AE75C75ECD9A6C639B01B4E70A05D1297E1BBC6867C52282FAC8519DC0BE04022C72727F269C8F02392CD5571747095F342E88FB05168BE4CE3AF X-Mailru-Sender: AFD8F0D0D0E72874173F5846337BA163B6BBC95375A54866053B3AF605256E5EB2197CA706A163A61BC9E2BE8152FC633DDE9B364B0DF28983F97ED9068BB8531752C749FAB18CA3AE208404248635DF 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:159920 Archived-At: --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 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 # " Compiling rust_swig v0.4.0-pre (/home/evgeniy/bigdisk1/projects/rust-infra/swig/macroslib) ") 1 <- compilation-filter: nil ====================================================================== 1 -> (compilation-filter # "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 # "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 # "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 # "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 # "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 # "error: aborting due to 5 previous errors For more information about this error, try `rustc --explain E0599`. ") 1 <- compilation-filter: nil ====================================================================== 1 -> (compilation-filter # "error: Could not compile `rust_swig`. To learn more, run the command again with --verbose. ") 1 <- compilation-filter: nil ====================================================================== 1 -> (compilation-filter # " Compiling rust_swig v0.4.0-pre (/home/evgeniy/bigdisk1/projects/rust-infra/swig/macroslib) ") 1 <- compilation-filter: nil ====================================================================== 1 -> (compilation-filter # "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 # " ::: macroslib/src/typemap.rs:81:1 | 81 | pub(crate) struct TypeMap { | ------------------------- method `merge` not found for this ") 1 <- compilation-filter: nil ====================================================================== 1 -> (compilation-filter # "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 # "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 # "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 # "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 # "error: aborting due to 5 previous errors For more information about this error, try `rustc --explain E0599`. ") 1 <- compilation-filter: nil ====================================================================== 1 -> (compilation-filter # "error: Could not compile `rust_swig`. To learn more, run the command again with --verbose. ") 1 <- compilation-filter: nil ====================================================================== 1 -> (compilation-filter # " Compiling rust_swig v0.4.0-pre (/home/evgeniy/bigdisk1/projects/rust-infra/swig/macroslib) ") 1 <- compilation-filter: nil ====================================================================== 1 -> (compilation-filter # "error[E0599]: no method named `merge` found for type `typemap::TypeMap` in the current scope ") 1 <- compilation-filter: nil ====================================================================== 1 -> (compilation-filter # " --> 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 # "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 # "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 # " 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 # "error: aborting due to 5 previous errors For more information about this error, try `rustc --explain E0599`. ") 1 <- compilation-filter: nil ====================================================================== 1 -> (compilation-filter # "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--