We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpProcessing Implementations › rp5 live doesn't show prompt
Page Index Toggle Pages: 1
rp5 live doesn't show prompt (Read 1371 times)
rp5 live doesn't show prompt
Feb 26th, 2009, 11:26pm
 
If I launch an example Ruby-Processing sketch via:

rp5 live sketch.rb

then I never see an irb prompt enabling me to interact with the sketch itself. My Java version is as follows (OS X Leopard 10.5.6 Java SE 6):

java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)

JRuby version:

jruby 1.2.0RC1 (ruby 1.8.6 patchlevel 287) (2009-02-26 rev 6586) [x86_64-java]

Doe anyone have any ideas?
Re: rp5 live doesn't show prompt
Reply #1 - Feb 27th, 2009, 3:23am
 
Sometimes it takes a few more seconds after the sketch has launched for the IRB prompt to show up in the console.

If it's still not working and you'd like to try and trouble shoot, check out lib/ruby-processing/runners/live.rb in the source. It's only 6 lines of code and should be easy for you to figure out.
Re: rp5 live doesn't show prompt
Reply #2 - Feb 27th, 2009, 11:31am
 
Having a quick look, it appears that the problem is at the line 11 of live.rb:

IRB.start()

This doesn't seem to provide an irb prompt. I don't have much experience launching irb from a script, so I must say I'm not sure how it's working and what to look into. I will try and look into it further though...
Page Index Toggle Pages: 1