Preferred Ruby plugin for Eclipse? [closed]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-17 22:10:23

问题


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?


回答1:


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




回答2:


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.




回答3:


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

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




回答4:


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.

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 !




回答5:


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.




回答6:


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



来源:https://stackoverflow.com/questions/524021/preferred-ruby-plugin-for-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!