74

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?

Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176

6 Answers6

93

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.

Pyves
  • 6,333
  • 7
  • 41
  • 59
  • 2
    If anyone needs the main steps to install and use dynamic languages toolkit in eclipse, you can see my answer below. – james Aug 08 '14 at 23:08
  • 1
    I think this is no more working. Getting `No repository found at http://download.eclipse.org/releases/kepler/` error. Can anyone tell if there is offcial ruby plugin for eclipse? – Mahesha999 Feb 24 '16 at 12:27
  • Also, you can go to Eclipse->Help -> Marketplace -> search for "ruby" and select ruby DLTS with some version on it. For details you can visit to this link https://marketplace.eclipse.org/content/ruby-dltk – Sunil Kumar Jul 10 '18 at 12:21
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.

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
Don Branson
  • 13,631
  • 10
  • 59
  • 101
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

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
Fitz
  • 380
  • 3
  • 10
  • 1
    I tried the following URL, but I got error as below: Cannot complete the install because of a conflicting dependency. Software being installed: Dynamic Languages Toolkit - iTcl Development Tools (Incubation) 0.95.1.v20080903-1434-0AR09oA55S5N9J28GBE (org.eclipse.dltk.itcl.feature.group 0.95.1.v20080903-1434-0AR09oA55S5N9J28GBE) – Ripon Al Wasim Sep 11 '12 at 06:31
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 !

james
  • 1,667
  • 5
  • 26
  • 38
  • 1
    Coming from using a simple text editor to create apps, I find Eclipse ridiculously difficult to work with. This answer saved me when I was about to throw my machine against a wall. Thanks :) – JoeyC Oct 14 '14 at 09:51
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

Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176
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.

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
Samantha Branham
  • 7,350
  • 2
  • 32
  • 44