emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: ob-R.el breaks when :session is specified
@ 2022-05-15  6:00 Christian Heinrich
  2022-05-15  8:08 ` Ihor Radchenko
  0 siblings, 1 reply; 10+ messages in thread
From: Christian Heinrich @ 2022-05-15  6:00 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Jeremie Juste

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

Hi there,

I got back to an org file after upgrading to the latest release of org-mode and tried executing the
contained R source blocks. Unfortunately, emacs got stuck in the execution and was blocked; I had to
exit using C-g.

Here's a minimal example src block that causes emacs to get stuck:

#+begin_src R :results output :session *R* :exports both
  a <- 10
  a
#+end_src

R itself does start and the code is also executed correctly. However, the output from that session
is apparently not returned to emacs or the buffer.

When removing the :session argument it executes and returns as expected.

When bisecting this issue, I found that this commit causes it:
ac8c009e006197d2dad226dbe822d450aec23d23

    lisp/ob-R.el: Fix session output with substrings matching prompts

Reverting it fixes the issue for earlier release (9.5.3) as well as for the current main branch.

The (with-current-buffer session ... ) somehow seems to break it for me, but I am unsure why no one
else here seems to experience this as the commit is from 2020?

Any suggestions?

Thanks!
Christian

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-05-16  5:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-15  6:00 Bug: ob-R.el breaks when :session is specified Christian Heinrich
2022-05-15  8:08 ` Ihor Radchenko
2022-05-15  9:46   ` Christian Heinrich
2022-05-15 19:58     ` Berry, Charles
2022-05-16  5:26       ` Christian Heinrich
2022-05-15 14:16   ` Jeremie Juste
2022-05-15 18:06     ` Christian Heinrich
2022-05-15 22:21       ` Jeremie Juste
2022-05-16  5:23         ` Christian Heinrich
2022-05-16  5:24         ` Christian Heinrich

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).