Tuesday, March 20, 2007

Ruby Screenshot of the Week #6

WARNING: This blog entry was imported from my old blog on blogs.sun.com (which used different blogging software), so formatting and links may not be correct.

I just realized last night that the session slides for my

Java One talk

are due today! So I did a marathon session, starting at 6am this morning, putting it all together. I just submitted the slides, with a whole 4 minutes to spare before the midnight deadline. That's 18 hours straight with just a short dinner break. Phew.

So I'm going to cheat for this week's Ruby screenshot. Take a look at the following picture; it shows two new NetBeans 6 features applied to Ruby: Local editing file history (with version diffing), and the brand new diff view. I've long thought that the Mac OSX XCode filemerging window reigned supreme, but with the new smooth spline curves and even character diffing within lines, I have a new favorite! This file is not under version control - the local file history feature tracks local edits and lets you diff auto-saved versions.

Full size

I know this is cheating since all I did was bring up a Ruby editor on non-Ruby related functionality. But there have actually been some great improvements in the Ruby support in the last week. First, the Ruby debugger support has landed! Second, native Ruby execution should now be working finally on Unix, including with Rails. There are some other changes too (plus some pending one I'm about to check in). Check the wiki for installation instructions - to get fast debugging you'll need to perform some manual steps.



  1. Nice curves! Is there talk of getting block selection within the IDE?

  2. Hi Casper, by "block selection" do you mean rectangular selection, or AST-based ("smart") selection? If the latter - that's in NetBeans 6. (I've added it for Ruby as well). Ctrl-Shift-Up/Down. If it's rectangular selection, I don't know - I've never needed it, but I believe Sandip's line tools module does something like it.

  3. Hello Tor!
    Thanks for such a wonderful Ruby-IDE! I've used NB for Java (of course), C and now - finally - Ruby development! Great - one IDE for all platforms (it's Java, ey?).
    But i am not able to get the AST-based "smart" selection working in NB on WinXP SP2 (Info: all available Ruby updates are applied; NetBeans IDE Dev (Build 200702191730), 1.5.0_11; Java; HotSpot(TM) Client VM 1.5.0_11-b03; Windows XP version 5.1 running on x86 de_DE (nb); Cp1252). Any hints?

  4. Hi Andreas, I think I said the wrong keybinding - on Windows it may be Alt-Shift-Up/Down, not Ctrl-Shift-Up/Down. (Let me know if that still does not work.)

  5. Hello Tor!

    Thanks, that's the right combination for Windows.

    PLEASE keep up the superb work!

    Best regards,


  6. Those curves look like their borrowed from meld (http://meld.sf.net)

  7. Thanks for all the great Ruby support work Tor!