all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Evgeniy Dushistov <dushistov@mail.ru>
To: Noam Postavsky <npostavs@gmail.com>
Cc: 36001@debbugs.gnu.org
Subject: bug#36001: 26.2; compile-mode.el/compilation-mode spontaneous behaviour
Date: Thu, 30 May 2019 16:58:28 +0300	[thread overview]
Message-ID: <20190530135828.GA111022@15inch.localdomain> (raw)
In-Reply-To: <87a7f46tip.fsf@gmail.com>

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

On Thu, May 30, 2019 at 08:01:18AM -0400, Noam Postavsky wrote:
> Evgeniy Dushistov <dushistov@mail.ru> 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

[-- Attachment #2: trace-output --]
[-- Type: text/plain, Size: 9335 bytes --]

======================================================================
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

[-- Attachment #3: compilation --]
[-- Type: text/plain, Size: 2068 bytes --]

-*- 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

  reply	other threads:[~2019-05-30 13:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-30  9:49 bug#36001: 26.2; compile-mode.el/compilation-mode spontaneous behaviour Evgeniy Dushistov
2019-05-30 11:40 ` Basil L. Contovounesios
2019-05-30 14:10   ` Evgeniy Dushistov
2019-05-30 12:01 ` Noam Postavsky
2019-05-30 13:58   ` Evgeniy Dushistov [this message]
2019-05-30 16:35     ` npostavs

Reply instructions:

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

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

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

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

  git send-email \
    --in-reply-to=20190530135828.GA111022@15inch.localdomain \
    --to=dushistov@mail.ru \
    --cc=36001@debbugs.gnu.org \
    --cc=npostavs@gmail.com \
    /path/to/YOUR_REPLY

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

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

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.