This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 101637 - idea for ruby code completion improvement.
Summary: idea for ruby code completion improvement.
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: languages (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-18 18:51 UTC by infrid
Modified: 2009-07-28 20:48 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description infrid 2007-04-18 18:51:20 UTC
This would help a lot of people, if ALL of the matches on your current class
were listed before everything else.

Also, in the future - if you really, really honestly want to destroy all other
competition, you could add a text file somewhere that caches the properties for
each model that is in the database (say, which coudl be run by the user on a
rake, or added to their migrations).. and use this in code completion too..

that way not only would you have completion with instance variables, methods,
etc, but you'd also have the underlying db fields.

I don't think it's too hard to do (been coding 20+ years, so not being naive
here). Whoever is doing this coding is clearly talented enough to implement
something like this and I reckon with your framework you could have that feature
in a couple of days max.. would be a real winner.
Comment 1 Torbjorn Norbye 2007-04-18 18:57:04 UTC
I just checked in an improvement yesterday which might help you; methods inherited from Object, 
Class and Module are all listed -after- the other methods. That's not quite the same as what you're 
asking; mixin methods and other inherited methods are still mixed in with the methods on the current 
class. For a class like Integer that seems reasonable - you want both Integer and Numeric methods to 
be "dominant", but not the methods from Object.  Perhaps there are examples of the opposite case 
where you really want to hide mixins or stuff from the parent?

The idea about code completion on Rails model classes is spot on - we have plans to make the code 
completion in Rails apps better. I recently made completion slightly better inside of controllers (still 
needs more) but I plan to work on improving models, migrations and others - and as part of the model 
work in particular looking to the datasource would offer great possibilities.   I hadn't thought of making 
this a user-run operation via rake target but that's a really good start; tryiing to figure it out and doing 
it automagically by inspecting databases.yml would be much harder, especially when the datasource is 
not a jdbc datasource.
Comment 2 jdwyah 2009-07-28 20:45:51 UTC
I would kill for the ability to be able to just turn this off. Please. Autocomplete is never worth an IDE freezing 'Please wait' for 15-20 seconds. I have to keep 
TextMate open behind NetBeans so that I can do work while it waits to autocomplete.
Comment 3 jdwyah 2009-07-28 20:48:22 UTC
fwiw rails project size is 68k LOC, with a vendor directory ~64MB in size.