Nick Sieger: JRuby Serial Interview 4: NetBeans http://blog.nicksieger.com/articles/2007/01/25/jruby-serial-interview-4-netbeans en-us 40 JRuby Serial Interview 4: NetBeans <p><em>This is part 4 in our <a href="/articles/tag/jrubyserialinterview">ongoing conversation</a> tracking the development of JRuby&#46;</em></p> <p><em>This episode we&#8217;re pleased to have <a href="http://blogs.sun.com/tor/">Tor Norbye</a> and Martin Krauskopf from Sun with us to discuss <a href="http://netbeans.org/">NetBeans</a>&#46;</em></p> <p><em>If you&#8217;re a Rubyist, why should you care about NetBeans? Isn&#8217;t that one of those big honkin&#8217; Java IDEs? Well, due to the hard work of Tor and Martin, NetBeans will soon be a world&#45;class Ruby and Rails editor and development environment&#46; All made possible by JRuby underneath the hood&#46; Don&#8217;t believe me? Then read on&#46;&#46;&#46;</em></p> <p><strong>So, what are you hoping to accomplish with NetBeans Ruby support? Any lofty goals? Is your target audience Ruby hackers, or Java programmers looking to try something new?</strong></p> <p><em>Tor Norbye:</em> Anybody writing code using Ruby&#46; That would include both experienced Ruby developers as well as newbies trying out the language&#46;</p> <p>The lofty goal is to provide First Class Support for Ruby such that where possible, the Ruby support is as good as the Java support&#46; There are obviously areas where Ruby&#8217;s dynamic nature makes it hard to provide the same features as those available for Java, such as the various refactoring operations and quickfix features that rely on static typing&#46; But that doesn&#8217;t mean we won&#8217;t try&#46; I think a Rename refactoring operation that has some limitations is still better than just Search/Replace&#46;</p> <p>That&#8217;s the area I&#8217;m most excited about getting into&#46; Until now I&#8217;ve been working on getting all the basic IDE infrastructure in place such that the vital parts are there and we can start building more smarts on top&#46;</p> <p><em>Martin Krauskopf:</em> Simply the target is the full debugging support in NetBeans like it is in <a href="http://rubyeclipse.sourceforge.net/">RDT</a>&#46; I contacted <a href="http://cwilliams.textdriven.com/">Chris (Williams)</a>, Markus (Barchfeld) and <a href="http://jroller.com/page/murphee">murphee (Werner Schuster)</a> from RDT regarding cooperation on the backends&#46; Realize that actually backends are currently their effort on which they&#8217;ve spent a lot of time&#46; I&#8217;ve started with some mini&#45;fixes and would like to continue on the cooperation more and more so they will also get something back&#46; But the cooperation is <em>very</em> young so I&#8217;ll have more to say later, I think&#46; So however there are still a lot of work on NetBeans frontend I want to get as much as possible also in the backends works&#46;</p> <p><em>Thomas Enebo:</em> Martin just sent an <a href="http://sourceforge.net/mailarchive/forum.php?thread_id=31511654&amp;forum_id=9198">interesting email to the RDT list</a> on a debugging specification and a cross IDE debugger project on Rubyforge&#46;&#46;&#46;&#46;Fun times&#46;</p> <p><a href="http://flickr.com/photo_zoom.gne?id=368608547&amp;size=o" target="_blank" title="Photo Sharing"><img src="http://farm1.static.flickr.com/120/368608551_ed57f9c8be_o.jpg" width="520" height="410" alt="netbeans-class-compl-snapshot" /></a><br/> <em>NetBeans Ruby support (click through the image for a full&#45;screen shot)&#46; There is <code>test/unit</code> output, and you can see completion of class names with an RDoc popup&#46;</em></p> <p><strong>When will we see a public release of NetBeans Ruby support? What are some of the features we can expect to see? Will there be Rails support?</strong></p> <p><em>Tor Norbye:</em> I wish I could answer <em>when</em> it&#8217;s going to be released, but that&#8217;s not in my hands&#46; I started the work in closed source, as part of the Project Semplice work&#46; And when code doesn&#8217;t start in open source in the first place, there&#8217;s a Sun process to be followed to release it, such as a legal review, etc&#46; etc&#46; It&#8217;s going through that process now &#45; and has been for quite a while, so I&#8217;m hoping it will be released soon, very soon&#46; Without promising anything obviously, think weeks&#46;</p> <p>As I said earlier, the goal for the feature list is to offer the same features that are available for Java: good editing, projects support, debugging, web application support, etc&#46; Yes, there will be Rails support&#46;</p> <p>The current feature set, which is what you&#8217;d see if I got the green light to commit into NetBeans CVS today, is heavy on editing support&#46; There is semantic highlighting, code completion, various other editing features such as pair&#45;matching, smart indent, etc&#46; There is also some basic projects support and Rails support&#46; My coworker Martin Krauskopf is working on a debugger and that work is coming along nicely&#46;</p> <p><a href="http://flickr.com/photo_zoom.gne?id=368608554&amp;size=o" target="_blank" title="Photo Sharing"><img src="http://farm1.static.flickr.com/106/368608555_a000b91d52_o.jpg" width="520" height="426" alt="netbeans-rails-support" /></a><br/> <em>NetBeans Rails support (click through the image for a full&#45;screen shot)&#46; RHTML editing, project tree and generator access are shown&#46;</em></p> <p><strong>I&#8217;ve got this killer feature idea for a Ruby editor&#46; How can I get it into NetBeans?</strong></p> <p><em>Tor Norbye:</em> Well, it will all be open source, so the easiest way to do it would be to <a href="http://www.netbeans.org/community/contribute/">join the NetBeans open source project</a> and enhance the Ruby editor directly&#46; NetBeans itself obviously has lots of extensibility APIs, and the Ruby editor may offer its own to register additional quickfixes etc&#46; At this point that has not been my focus&#46;</p> <p><em>Thanks to Tor and Martin for joining us! For up&#45;to&#45;date progress on Ruby support in NetBeans, follow along on <a href="http://blogs.sun.com/tor/">Tor&#8217;s blog</a>&#46; And if you have further questions, please leave a comment&#46; What would you like to see in NetBeans Ruby support?</em></p> Thu, 25 Jan 2007 04:23:00 +0000 urn:uuid:b9b68f1b-b58c-4cf5-9976-459e559664c3 Nick Sieger http://blog.nicksieger.com/articles/2007/01/25/jruby-serial-interview-4-netbeans jruby ruby jrubyserialinterview netbeans http://blog.nicksieger.com/articles/trackback/199