emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <dandavison7@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [patch] race condition in org-babel R
Date: Fri, 20 May 2011 13:37:39 -0700	[thread overview]
Message-ID: <m14o4p6rcc.fsf@gmail.com> (raw)
In-Reply-To: 87sjs9wrbf.fsf@cantab.net

Christophe Rhodes <csr21@cantab.net> writes:

> Hi,
>
> A substantial fraction of times when exporting my org-babel document
> (with many R session code blocks), I get "code block produced no
> value".  I think this is because of a race condition between
> waiting for the transfer.file to exist and actually populating it with
> output; the scenario is: 1. write.table() creates its output file
> 2. emacs notices its existence, and reads it 3. write.table() gets round
> to writing .Last.value to the file.
>
> The attached patch has made exporting much more reliable for me.

Thanks, I agree that the race condition seems plausible, and I've
applied a slight modification of your patch (the initial evaluation of
the "object" argument looks pointless, but was there to ensure that
errors in user code are not smothered by the subsequent exception
handling.)

Dan

>
>
>
> Best,
>
> Christophe

      reply	other threads:[~2011-05-20 20:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-20 11:21 [patch] race condition in org-babel R Christophe Rhodes
2011-05-20 20:37 ` Dan Davison [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=m14o4p6rcc.fsf@gmail.com \
    --to=dandavison7@gmail.com \
    --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).