Friday May 25, 2007 One of the things I did this week was to rewrite the code which extracts documentation for all the core Ruby APIs (which are defined in the C Ruby implementation). This fixes some bugs where a method here and there were missing its documentation.
In doing so, I started looking at the actual IDE presentation of the documentation as well, and thought I could make it a lot more appealing. Without further ado, here's how the documentation looks now:
The most interesting part here is that the IDE now figures out whether portions of the documentation corresponds to Ruby code, and then presents it with syntax highlighting right there in the documentation popup. (I've also improved the way the method signatures are displayed so it should use less space and be more readable now, although that's harder to spot than if you compare before-and-after shots.)
Heres another example. This shows a migration in a Rails application, where you're getting code completion on the create_table method.
One interesting aspect of this highlighting is that it's easier to spot mistakes in your comments. As I was testing this feature, I pulled up the documentation on the Rails send_file method - and the following code fragment looked wrong:
Sure enough, it looks like it's missing a single-quote right after 404.html. This is the kind of thing which will be a lot easier to spot and fix with the new enhanced highlighting!
(P.S.2: If you're trying to download this, see my other blog entry on the current temporary download location.)
(2007-05-25 15:01:53.0) Permalink Comments [18]
Posted by jherber on May 25, 2007 at 05:45 PM PDT #
Posted by jherber on May 25, 2007 at 05:46 PM PDT #
Thanks for your comment! Yes, I'm definitely interested in usability opinions. There are many feedback channels; see http://wiki.netbeans.org/wiki/view/RubyFeedback.
Regarding your code completion feedback; I have filed an issue on your behalf - issue 104884. Regarding attribute completion, yep - that's already a known problem and something I'll address very soon; all the attributes are already in the index, I just have to improve the queries.
Posted by Tor Norbye's Weblog on May 25, 2007 at 07:23 PM PDT #
I have been filing issues to NBM issuezilla these days, so I won't litter your blog space. But please do look into those and if in-appropriate feel free to close them. Some of issues I filed were against wrong scripting engine i guess.
Posted by hemant kumar on May 26, 2007 at 01:44 AM PDT #
Posted by hemant kumar on May 26, 2007 at 02:26 AM PDT #
For those other bugs - what is your netbeans.org username? With that I can query for your issues - even those filed in other categories.
Posted by Tor Norbye's Weblog on May 26, 2007 at 10:03 AM PDT #
Posted by Tor Norbye on May 26, 2007 at 08:37 PM PDT #
Posted by phil swenson on May 26, 2007 at 11:07 PM PDT #
Posted by Roman Melnik on May 27, 2007 at 12:31 AM PDT #
Posted by hemant kumar on May 27, 2007 at 08:29 AM PDT #
Posted by hemant kumar on May 30, 2007 at 05:01 AM PDT #
Roman, yes, HAML support is on there, but unfortunately not near the top. There is some preliminary work on it done by Jan Jancura in CVS under languages/haml, but I don't think it's in useable state yet.
Hemant, thanks for the report. I've reassigned that particular bug to the engineer responsible for auto update / the plugin manager. Keep them coming!
JHerber, I've just integrated a fix for your issue #4. Also, my patch for the code completion dialog issues on the Mac (clicking would cause it to disappear) was just applied this morning so the most recent builds should be more Mac+mouse friendly.
Thanks for your feedback everybody!
Posted by Tor Norbye's Weblog on May 30, 2007 at 10:20 AM PDT #
Posted by freeman on June 03, 2007 at 05:43 PM PDT #
Posted by Vladimir Oleynik on June 04, 2007 at 05:52 AM PDT #
Posted by Vladimir Oleynik on June 04, 2007 at 05:53 AM PDT #
Posted by freeman on June 04, 2007 at 04:49 PM PDT #
Posted by Vladimir Oleynik on June 05, 2007 at 02:40 AM PDT #
Posted by Vladimir Oleynik on June 05, 2007 at 02:42 AM PDT #