From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Subject: Poor quality error messages
Date: Wed, 5 Jan 2022 18:37:18 +0000 [thread overview]
Message-ID: <YdXlXk3Ocz4oDwKC@ACM> (raw)
Hello, Emacs.
During a bootstrap (not of the standard code), the make failed,
presenting me with the following half error message:
In toplevel form:
cedet/ede.el: Error: No applicable method: initialize-instance, nil, nil
make[2]: *** [Makefile:308: cedet/ede.elc] Error 1
make[2]: *** Waiting for unfinished jobs....
.. Is this really the best we can do?
The following faults with this half message are readily apparent:
(i) There is no line/column numbers of the failure point in the file. "In
toplevel form" isn't very helpful.
(ii) There is no preposition or verb indicating the relationship between
the missing method (whatever that is) and initialize-instance.
(iii) Is initialize-instance the method that is missing?
(iv) To what is the method (whatever that is) meant to be applicable? To
initialise-instance, perhaps? Or to "nil, nil"? Or to something else?
(v) It is not clear what the "nil, nil" at the end of the half message is
meant to mean.
Just for info, grep finds no matches for "initialize-instance" in ede.el.
If anybody can help me on any of these points with this half error
message, please do.
I'm intending to fix (or at least ameliorate) point (i) in my current
work on the correct positions for warning messages.
At least I know what's causing the problem, in that if I remove certain
bits of code the error doesn't happen. That's not helping me diagnose
the mechanism of this failure, though.
Thanks for any help!
--
Alan Mackenzie (Nuremberg, Germany).
next reply other threads:[~2022-01-05 18:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-05 18:37 Alan Mackenzie [this message]
2022-01-05 19:01 ` Poor quality error messages Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YdXlXk3Ocz4oDwKC@ACM \
--to=acm@muc.de \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).