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.
Product Version: NetBeans IDE 6.8 RC1 (Build 200911252200) Java: 1.6.0_15; Java HotSpot(TM) 64-Bit Server VM 14.1-b02-90 System: Mac OS X version 10.6.2 running on x86_64; MacRoman; en_US (nb) Userdir: /Users/tomas/.netbeans/6.8rc1 ---- - create RoR on jruby 1.4.0 - generate controller + view - try to complete Time.now.sec in controller (works) - try to complete <%=Time.now.sec%> in view directly, or in some html code (does not work) afaik this worked recently:(
Looking at this now.
Caused by http://hg.netbeans.org/ruby-main?cmd=changeset;node=fb91cd7ecec5. This doesn't work in 6.7 either, but for different reasons (in 6.7 code completion for chained methods doesn't work too well). So this indeed worked in 6.8 before the aforementioned change. I'll provide a fix for this soon. I think it would be good to fix this in 6.8 too, do you agree?
Yes, would be good to have this fix also in 6.8 (depending on how risky the fix will be). I'll verify in trunk (or in ruby-main to speed up the process).
Fixed in f4cc3562cc9d (backed out fb91cd7ecec5) and ef7a62640bc5. In addition to backing out fb91cd7ecec5 there was a problem wrt to return types of static methods - all static methods were considered to return only classes when in fact they almost always return instances (e.g. Time.now or all the other class methods in Time). There are still some issues with CC accuracy when AST is broken, in particular when there is no prefix, e.g. Some.thing.^ <= here even if we know the return type of Some#thing, the IDE doesn't always display the correct CC list for the type, but just the methods from Module/Kernel etc (i.e. the default CC list). This isn't a new issue in any way though, and best to be handled as a separate issue. So I'm raising this to a P1 to fix this in 6.8 after verification.
Integrated into 'main-golden', will be available in build *200911280200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f4cc3562cc9d User: Erno Mononen <emononen@netbeans.org> Log: #177693 - Code completion in .erb does not work properly - Backed out changeset fb91cd7ecec5
thanks for fix, verified in Product Version: NetBeans IDE Dev (Build 200911300200) Java: 1.6.0_15; Java HotSpot(TM) 64-Bit Server VM 14.1-b02-90 System: Mac OS X version 10.6.2 running on x86_64; MacRoman; en_US (nb) Userdir: /Users/tomas/.netbeans/dev
Ported the changesets to release68 in ce6b1b4ca33b (transplanting failed, so had to merge them manually).
verified in Product Version: NetBeans IDE 6.8 RC2 (Build 200912022200) Java: 1.6.0_15; Java HotSpot(TM) 64-Bit Server VM 14.1-b02-90 System: Mac OS X version 10.6.2 running on x86_64; MacRoman; en_US (nb) Userdir: /Users/tomas/.netbeans/6.8rc2