score:93

Accepted answer

Try the Dynamic Languages Toolkit for Ruby. It's available from Eclipse's Software Updates panel.

Update May 2020: Ruby support was dropped in DLTK 6.0 in favour of Eclipse Solargraph.

score:2

I have used Aptana/RadRails in the past and thouroghly enjoyed it. I suggest giving it a try. There is a standalone Eclipse plugin available that supports non-Rails projects decently as well if that's what you're going for.

My only experience with Eclipse was through Aptana, however, so there may be other considerations.

score:2

Dynamic Languages Toolkit (DLTK) is the preferred. step-by-step installation in eclipse:

  1. Open eclipse
  2. Go to Help -> "Eclipse Marketplace..."
  3. Type DLTK on Find text box and click Go button
  4. Click Install button under Ruby (DLTK) section
  5. Follow the instruction in eclipse pop-up

Verification of installation after successful installation:

Go to Window -> Preferences and you would see "Dynamic Languages" and "Ruby" are enlisted on the left panel

score:6

I faced this problem after installing aptana studio plugin for Eclipse. So, I decided to try dynamic languages toolkit for eclipse.

If you want to uninstall the aptana plugin: Eclipse > Help > About Eclipse > Installation Details > Installed Software tab > Aptana plugin > Uninstall. This should do a clean, frustration free uninstall.

Now, lets install the DLTK plugin.

Go to link - http://marketplace.eclipse.org/content/ruby-dltk. Press the green down arrow. copy the link from popup.

enter image description here

Eclipse > help > install new software > work with = copied link.

Now you see a list of plugins. In that list,expand the Programming Languages > check the box: Dynamic languages toolkit - Ruby Development Tools > press button: next > obvious steps.

After this, install the RubyInstaller for windows at http://rubyinstaller.org/ Find the location of ruby.exe created by this installation. You will need this to set the ruby interpreter when you create your first eclipse ruby project.

Once you successfully create a Ruby project, eclipse asks you if you want to open the ruby perspective. Say ok. To test if it works, create ruby project, then create an empty ruby script inside this project. Then execute this command puts "hello ruby" as a ruby script. Enjoy sparkling ruby !

score:12

Looks like the update site is here: http://download.eclipse.org/technology/dltk/updates/

I found it on www.eclipse.org/dltk/install.php

score:18

Good question. I've used Aptana/radrails, and that's definitely one to steer clear of.

It writes a database in whatever directory you happen to start Eclipse from, and generally takes over Eclipse, changing a lot of useful key bindings.

One of the most irritating things is that Ctrl-1 stops working in Java files, and that's a hotkey I use all the time.

I'm looking forward to hearing people's answers on this one, because I'd like to know of a good one.


Related Query

More Query from same tag