How can I run IRB with native Ruby in NetBeans 6.0?

In NetBeans 6.0 IRB is always run with JRuby, even if the IDE is configured to use some other Ruby runtime. There are deep technical reasons for that, primarily because the readline (arrow up/down, completion on tab support etc) isn't possible in the output window. We'll try to attack solving this in the next release.

In the meantime, after the 6.0 code freeze a new feature was added. If the IDE is run with this flag:


It will not change the behavior of Window > Other > IRB, but if you right click on plain Ruby projects, there is now an "IRB" item in the menu which will run the IRB console in the output window just like the Rails console for Rails projects.

Applies to: NetBeans 6.0

Platforms: All

For more information: Ruby Options

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo