Ruby Dropped in Netbeans 7,How to Use it in Netbeans7? Ruby Dropped in Netbeans 7,How to Use it in Netbeans7? ruby ruby

Ruby Dropped in Netbeans 7,How to Use it in Netbeans7?


Oracle stopped supporting the NetBeans Ruby plugin, but the development has been taken over by the community. In fact, there are now more people working on the plugin than back when Oracle did still support it, including three of the lead developers of JRuby, one of the original developers of the NetBeans Ruby plugin and one former NetBeans core developer, all of whom would probably not be working on it if it was still controlled by Oracle.

They are still using the NetBeans source control repository, the NetBeans project infrastructure, the NetBeans build server, the NetBeans plugin server, … in order to keep the transition as seamless as possible.

Pretty much the only difference is that you can no longer select the plugin directly in the installer, you have to install NetBeans first and then install it via the plugin menu, just like every other plugin, like the Scala or Clojure plugins, for example.

Just download and install the All-In-One Edition, deactivate all options except Base IDE during installation and install the Ruby plugin afterwards.

The plugin center for Ruby from the Continuous Integration server is http://Deadlock.NetBeans.Org/hudson/job/ruby/lastSuccessfulBuild/artifact/build/updates/updates.xml


I followed the steps described in this blog post - http://blog.enebo.com/2011/02/installing-ruby-support-in-netbeans-70.html and it works. Enjoy

Click Tools -> Plugins Click on
'Settings' tab Click on 'Add' button
to get Update Center Customizer popup
Set name to 'Beta 1' Set URL: to 'http://updates.netbeans.org/netbeans/updates/7.0/uc/beta/stable/catalog.xml.gz'
Press 'OK' Click to 'Available
Plugins' Click 'Reload Catalog' Choose
'Ruby and Rails' Pat yourself on the back

Edit: now ruby on rails plugin can be found directly at "Tools">"Plugins">"Available Plugins">"Ruby And Rails" (if you don't find this plugin at the provided path you should download and install the latest netbeans ide)

Reedit: if you need Ruby On Rails support for Netbeans 7.1 check http://blog.enebo.com/2012/01/workaround-for-ruby-support-on-netbeans.html


NetBeans 7.3:

You can install the Ruby and Rails plugin for NetBeans 7.3.x directly from the plugin portal:

http://plugins.netbeans.org/plugin/38549

Here are some installation instructions:

https://blogs.oracle.com/geertjan/entry/ruby_on_rails_in_netbeans

NetBeans 7.2:

To install the Ruby on Rails plugin for NetBeans 7.2 add this update center in Tools -> Plugins -> Settings:

https://blogs.oracle.com/geertjan/resource/nb-72-community-ruby.xml

Obtained from Geertjan's Blog:

https://blogs.oracle.com/geertjan/entry/ruby_in_netbeans_ide_7

Building the plugin from sources: I used and built the sources linked from Geertjan's Blog:

http://hg.netbeans.org/community-ruby

When building the plugin NetBeans (it took a very long time), I got the following error:

Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found

This can be fixed by installing ant-contrib on your system, e.g.:

yum -y install ant-contrib

Find the JAR file (in my case it was located at /usr/share/java/ant/ant-contrib.jar) and add it to Ant's classpath in NetBeans through Tools -> Options -> Java -> Ant -> Add JAR/ZIP.

After that it should build. If you want to use the plugins, right-click the NB Ruby project and click on Package As -> NBMs. This will create an Update Center. You can add this update update center to your NetBeans via Tools -> Plugins -> Settings -> Add where the URL should be:

file:/PathToTheRepository/build/updates/updates.xml

After that you can install the Ruby and Rails plugin.

Happy coding!