PDA

View Full Version : Problem with Ruby Eclipse



BigDH01
May 24th, 2007, 04:38 AM
So I just installed the ruby plugin for eclipse as per these instructions:

Here (http://beans.seartipy.com/2006/08/12/develop-ruby-applications-using-eclipse-ide/)

It appears to be working, I can create a Ruby project and run a .rb file as a Ruby application. However, nothing works. Even doing something as simple as puts "hello world" won't show anything on the eclipse console. I went to a Konsole and ran ruby testfile.rb which is also very simple and I get nothing on the console.

Here are the results of a ruby -v:

ruby 1.8.4 (2005-12-24) [i486-linux]

I need to get this working for work. I appreciate any help!!

finer recliner
May 24th, 2007, 05:42 AM
i appear to have a later version of ruby installed. i'm running feisty. see if you can upgrade.



$ ruby -v
ruby 1.8.5 (2006-08-25) [i486-linux]

Ubuntist
May 24th, 2007, 10:16 AM
finer recliner (or anybody else), are you able to us Eclipse's debug feature on Ruby code? Whenever I try, I get an error message saying

Specified executable rdebug-ide does not exist for usr

finer recliner
May 25th, 2007, 06:08 AM
sorry i dont use eclipse. i just do:



$ruby filename.rb


and all is well (until i get my first runtime error :-P )

Ubuntist
May 30th, 2007, 11:34 AM
Thanks for the reply, finer recliner.

FWIW, I think I've solved my problem: see this thread. (http://ubuntuforums.org/showthread.php?t=428477)