emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christian Heinrich <com-orgmode-mailinglist@gladbachcity.de>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Bug: ob-R.el breaks when :session is specified
Date: Sun, 15 May 2022 20:06:23 +0200	[thread overview]
Message-ID: <4c9235234536450d7bece1b3043008d96da3a504.camel@gladbachcity.de> (raw)
In-Reply-To: <87wnemg9ts.fsf@gmail.com>

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

Hi Jeremie,

I just tested with

 Org mode version 9.5.3 (release_9.5.3-504-gcdbb1c @
/home/heinrich/.emacs.d/straight/repos/org/lisp/)

using

GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30, cairo version 1.16.0) of 2021-
11-27, modified by Debian

I am on Debian Testing and that is the default emacs version.

Using the unmodified org (git hash from above) I get the following messages when executing a src
block with R:

   executing R code block...
   Loading ‘ess-bugs-l’: unescaped character literals `?(', `?)' detected, `?\(', `?\)' expected!
   Type C-h m for help on ESS version 15.09
   ess-tracebug mode enabled
   Quit
   Package cl is deprecated
   
Note that the "Quit" is me pressing Ctrl-g after a few seconds.

Removing the commit in question makes the block return instantaneously:

   executing R code block...
   Loading ‘ess-bugs-l’: unescaped character literals `?(', `?)' detected, `?\(', `?\)' expected!
   Type C-h m for help on ESS version 15.09
   ess-tracebug mode enabled
   Code block evaluation complete.
   Package cl is deprecated
   
I anticipated that this would not be obvious, since this feature is used too much to go unnoticed for
two years - but I am clueless as to how I should continue with debugging...

Thanks for your help!
Christian

On Sun, 2022-05-15 at 16:16 +0200, Jeremie Juste wrote:
> 
> Hello Christian,
> 
> Thanks for reporting but I cannot reproduce the bug with the org and
> emacs version below.
> 
> Org mode version 9.5.3 (release_9.5.3-467-g2bd34e @
> /home/djj/src/org-mode/lisp/)
> GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24) of
> 2022-01-16
> 
> Can you please let me know which version of org-mode you are actually
> using?
> 
> Ihor, many thanks for checking.
> 
> Best regards,
> Jeremie
> 
> On Sunday, 15 May 2022 at 16:08, Ihor Radchenko wrote:
> > Christian Heinrich <com-orgmode-mailinglist@gladbachcity.de> writes:
> > 
> > > 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.
> > 
> > I tried you example using Emacs >=26 and it works just fine.
> > 
> > Best,
> > Ihor

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

  reply	other threads:[~2022-05-15 18:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2022-05-15 22:21       ` Jeremie Juste
2022-05-16  5:23         ` Christian Heinrich
2022-05-16  5:24         ` Christian Heinrich

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=4c9235234536450d7bece1b3043008d96da3a504.camel@gladbachcity.de \
    --to=com-orgmode-mailinglist@gladbachcity.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).