emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Ken Williams <Ken.Williams@windlogics.com>
Cc: Rafael <rvf0068@gmail.com>,
	nicholas.dokos@hp.com,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Hang on incomplete input
Date: Thu, 01 Dec 2011 10:21:24 -0500	[thread overview]
Message-ID: <10546.1322752884@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Ken Williams <Ken.Williams@windlogics.com> of "Thu, 01 Dec 2011 09:04:35 CST." <21A5E1E970CD46459ECBE86D6CC4B28C52E23B99@spexch01.WindLogics.local>

Ken Williams <Ken.Williams@windlogics.com> 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

  reply	other threads:[~2011-12-01 15:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-30 22:41 Hang on incomplete input Ken Williams
2011-11-30 23:12 ` Rafael
2011-12-01 15:04   ` Ken Williams
2011-12-01 15:21     ` Nick Dokos [this message]
2011-12-01 17:22       ` Ken Williams
2011-12-01 18:18         ` Nick Dokos
2011-12-01 19:03           ` Ken Williams
2011-12-01 19:41             ` Nick Dokos

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=10546.1322752884@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=Ken.Williams@windlogics.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rvf0068@gmail.com \
    /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).