Preferred Ruby plugin for Eclipse?

RubyEclipseEclipse PluginRuby Development-Tools

Ruby Problem Overview


RDT (Ruby Development Tool) seems to be the preferred plugin for adding Ruby support to Eclipse. However, I see that the main developer on that project has joined Aptana RadRails. Does this mean that project is no longer up-to-date for Ruby in Eclipse?

If so, which plugin is the preferred and best choice these days?

Ruby Solutions


Solution 1 - Ruby

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.

Solution 2 - Ruby

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.

Solution 3 - Ruby

Solution 4 - Ruby

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 !

Solution 5 - Ruby

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.

Solution 6 - Ruby

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

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLee TangView Question on Stackoverflow
Solution 1 - RubyPatrick O ConnellView Answer on Stackoverflow
Solution 2 - RubyDon BransonView Answer on Stackoverflow
Solution 3 - RubyFitzView Answer on Stackoverflow
Solution 4 - RubyjamesView Answer on Stackoverflow
Solution 5 - RubySamantha BranhamView Answer on Stackoverflow
Solution 6 - RubyRipon Al WasimView Answer on Stackoverflow