From: <tomas@tuxteam.de>
To: emacs-orgmode@gnu.org
Subject: Re: bug: Error handling in source blocks.
Date: Wed, 11 Aug 2021 08:23:03 +0200 [thread overview]
Message-ID: <20210811062303.GA21436@tuxteam.de> (raw)
In-Reply-To: <87czqlf0gg.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 984 bytes --]
On Wed, Aug 11, 2021 at 06:30:26AM +1000, Tim Cross wrote:
> [...] For example, in an
> interpreted language, you could have errors due to problems with the
> interpreter, you could have errors in the code or you could have a code
> block which legitimately returns an error [...]
Yes, your error might be my nugget. For one illustrative example, I
once cobbled up a small shell tutorial. Babel seemed like the right
thing -- but I needed script snippets erroring out to show off.
Needless to say, Babel freaked out, not only on non-zero exit codes,
but also on any hint of activity on stderr.
I cheated myself out with preambles and postambles, which redirected
stderr to stdout and lied about exit codes.
This is, of course, horribly ugly, because it's language-specific
(you'd have to do it for C or Scheme or Perl or...), although the
concepts of exit code and stderr are OS wide. We could do better :)
Just one data point.
Cheers
- t
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2021-08-11 6:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-10 4:13 bug: Error handling in source blocks James Powell
2021-08-10 19:42 ` Berry, Charles via General discussions about Org-mode.
2021-08-10 20:30 ` Tim Cross
2021-08-10 23:14 ` Tom Gillespie
2021-08-11 6:23 ` tomas [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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210811062303.GA21436@tuxteam.de \
--to=tomas@tuxteam.de \
--cc=emacs-orgmode@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/org-mode.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).