From: Bruno Barbier <perso.bruno.barbier@free.fr>
To: emacs-orgmode@gnu.org
Subject: [BUG] org-babel-comint-with-output: incorrect prompt detection [9.6-pre]
Date: Thu, 10 Nov 2022 21:34:21 +0100 [thread overview]
Message-ID: <E1otE9z-000372-Gn@lists.gnu.org> (raw)
Hi,
The function `org-babel-comint-with-output' (o-b-c-w-o) may not detect
prompts correctly.
The function o-b-c-w-o checks if the incoming arbitrary chunk of text
contains whole prompts, and replace them.
But the incoming text may contain an incomplete prompt at the
end. When this happens, it will miss that real prompt.
For example, using a haskell prompt, let say the prompt is "Prelude> ",
the first incoming text is "Pre", the second incoming text is
"lude> ", o-b-c-w-o will wrongly infer that "lude> " is the prompt,
and that "Pre" was part of the previous value/output.
This is with current main (after commit 1ef420b19d2e310d9ef67e090ef84cdb6da4744d).
I'm randomly hit by this bug, when working on tests for ob-haskell.
Let me know if I need to provide more information,
Thanks,
Bruno
next reply other threads:[~2022-11-10 20:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-10 20:34 Bruno Barbier [this message]
2022-11-11 2:10 ` [BUG] org-babel-comint-with-output: incorrect prompt detection [9.6-pre] Ihor Radchenko
2022-11-11 8:39 ` Bruno Barbier
2022-11-13 3:57 ` Ihor Radchenko
2022-12-12 11:59 ` Ihor Radchenko
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=E1otE9z-000372-Gn@lists.gnu.org \
--to=perso.bruno.barbier@free.fr \
--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).