From: Philipp Stephani <p.stephani2@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Lars Ingebrigtsen <larsi@gnus.org>,
Stefan Kangas <stefankangas@gmail.com>,
Emacs developers <emacs-devel@gnu.org>
Subject: Re: master 40e1174: Print a backtrace on unhandled errors in batch mode (Bug#44942).
Date: Sat, 12 Dec 2020 15:36:25 +0100 [thread overview]
Message-ID: <CAArVCkTXp0hyGmOoRM4OoCUsDokLwYU=E8OjfXZWyerM46GiDw@mail.gmail.com> (raw)
In-Reply-To: <83tusx8vme.fsf@gnu.org>
Am Mo., 7. Dez. 2020 um 16:49 Uhr schrieb Eli Zaretskii <eliz@gnu.org>:
>
> > From: Lars Ingebrigtsen <larsi@gnus.org>
> > Date: Mon, 07 Dec 2020 12:30:47 +0100
> > Cc: Philipp Stephani <p.stephani2@gmail.com>, emacs-devel@gnu.org
> >
> > I think it would be good if there was a command line switch for this
> > (for instance, -backtrace).
> >
> > Outputting a backtrace in -batch mode is good, but I think having it on
> > by default will lead to too many regressions.
>
> IMO, we should first decide whether this new behavior should be the
> default, and only after that whether it should be controlled by a
> command-line switch. E.g., if we believe that most users will want
> the backtrace, i.e. the default behavior will be to produce a
> backtrace, then a command-line switch is hardly necessary or
> justified.
While I certainly can't speak for most/all users, I find it hard to
imagine why anybody would not want the backtrace. The backtrace is
only printed if there's no error handler. In case of a batch job (i.e.
a scripted/noninteractive invocation) that's almost always a bug or
runtime issue (expected file missing, etc.), and the backtrace is
often the only way to debug the issue.
I also don't believe that printing the backtrace by default will break
users: parsing error messages is brittle, and we can't realistically
guarantee stability in such an area.
prev parent reply other threads:[~2020-12-12 14:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20201206164942.28653.54315@vcs0.savannah.gnu.org>
[not found] ` <20201206164944.2472A205D7@vcs0.savannah.gnu.org>
2020-12-07 10:11 ` master 40e1174: Print a backtrace on unhandled errors in batch mode (Bug#44942) Stefan Kangas
2020-12-07 11:08 ` Philipp Stephani
2020-12-07 11:30 ` Lars Ingebrigtsen
2020-12-07 15:13 ` Stefan Monnier
2020-12-07 15:27 ` Philipp Stephani
2020-12-07 15:28 ` Philipp Stephani
2020-12-07 15:42 ` Lars Ingebrigtsen
2020-12-07 15:48 ` Eli Zaretskii
2020-12-12 14:36 ` Philipp Stephani [this message]
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='CAArVCkTXp0hyGmOoRM4OoCUsDokLwYU=E8OjfXZWyerM46GiDw@mail.gmail.com' \
--to=p.stephani2@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=larsi@gnus.org \
--cc=stefankangas@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.