From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Hang on incomplete input Date: Thu, 01 Dec 2011 10:21:24 -0500 Message-ID: <10546.1322752884@alphaville.dokosmarshall.org> References: <21A5E1E970CD46459ECBE86D6CC4B28C52E23B34@spexch01.WindLogics.local> <87mxbdkxwo.fsf@gmail.com> <21A5E1E970CD46459ECBE86D6CC4B28C52E23B99@spexch01.WindLogics.local> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW8S5-0002Vu-Is for emacs-orgmode@gnu.org; Thu, 01 Dec 2011 10:21:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RW8Rz-0005dG-K0 for emacs-orgmode@gnu.org; Thu, 01 Dec 2011 10:21:33 -0500 Received: from g1t0028.austin.hp.com ([15.216.28.35]:27513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RW8Rz-0005cy-E0 for emacs-orgmode@gnu.org; Thu, 01 Dec 2011 10:21:27 -0500 In-Reply-To: Message from Ken Williams of "Thu, 01 Dec 2011 09:04:35 CST." <21A5E1E970CD46459ECBE86D6CC4B28C52E23B99@spexch01.WindLogics.local> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ken Williams Cc: Rafael , nicholas.dokos@hp.com, "emacs-orgmode@gnu.org" Ken Williams wrote: > > Rafael wrote: > > > In Ubuntu 10.10, emacs 23.2 and recent org, I get an *Org-Babel Error > > Output* buffer, saying: > > > > Error: unexpected '}' in: > > "ddply(x, > > }" > > Execution halted > > I'm using: > > GNU Emacs 23.3 (from http://vgoulet.act.ulaval.ca/en/emacs/windows/) > Windows 7 > org-mode 7.7 > ESS 5.14 > > What version of ESS do you have? Maybe that's the difference? > FWIW, I got the same thing as Rafael: Linux 2.6.35-28-generic #50-Ubuntu SMP Fri Mar 18 18:42:20 UTC 2011 x86_64 GNU/Linux GNU Emacs 24.0.90.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2011-10-27 Org-mode version 7.7 (release_7.7.617.gb1f2) Forgive my ignorance: how do I check the ESS version? And what does ESS have to do with R? I thought this was an R code block, but as you can probably tell, I'm an ignoRamus. When I start R interactively, I get ,---- | R version 2.11.1 (2010-05-31) | Copyright (C) 2010 The R Foundation for Statistical Computing | ISBN 3-900051-07-0 `---- > Any suggestions for how to debug a hang like this? Is there a signal I can send it, to generate a stack trace (if signals are even possible in Windows, I'm not even sure)? > Probably the best thing to do is cut out the middleman: execute the code snippet in the appropriate environment directly - no emacs, no org, no babel - and see if you have the problem. There are differences of course that babel tries to minimize but it can only simulate certain cases. E.g when I enter the incomplete form in the interactive session, it keeps giving me a secondary prompt attempting to convince me to do something sensible: ,---- | | > dply(x, | + | + | + ) | Error: could not find function "dply" | > `---- babel does not have that luxury. If that does not bear fruit, you can M-x toggle-debug-on-quit, run the code block and press C-g to get a backtrace. Rinse, repeat to see whether you always stop at the same point. It's somewhat hit-or-miss but it can be effective sometimes. Nick