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 120263 - Inconsistent code completion on nested classees
Summary: Inconsistent code completion on nested classees
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-27 18:51 UTC by jamespb
Modified: 2007-10-28 20:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jamespb 2007-10-27 18:51:55 UTC
module Alpha
  class Beta
    class Gamma
    end
    class Delta
    end
  end
end

def test_case_name
  assert_kind_of(Alpha::Beta::G)
end

If you hit ctrl-space after the G in Alpha::Beta::G, you get Gamma offered - that's correct.  But now hit escape, and
backspace to get just Alpha::Beta.  Hit ctrl-space.  Type '::G' and you get 'no suggestions' where it should offer 'Gamma'.

(I've been having problems with code completion on nested classes, this is the smallest repro case I could find.)

build 4873
Product Version: NetBeans Ruby IDE 20071027034933
Java: 1.6.0_03; Java HotSpot(TM) Server VM 1.6.0_03-b05
System: Linux version 2.6.18-8.1.15.el5xen running on i386; UTF-8; en_US (nbrubyide)
Userdir: /home/james/.nbrubyide/dev
Comment 1 Torbjorn Norbye 2007-10-28 20:14:24 UTC
The problem here was that for performance reasons I'm not showing classes as parameter suggestions inside method calls
(unless it's something like the include method, or, you've started typing an uppercase letter). However, this did not
handle the scenario where you've already entered a class name (Alpha::Beta::) but no part of the actual class name.

Fixed:

IDE:-------------------------------------------------
IDE: [10/28/07 12:11 PM] Committing started
Checking in CodeCompleter.java;
/cvs/ruby/editing/src/org/netbeans/modules/ruby/CodeCompleter.java,v  <--  CodeCompleter.java
new revision: 1.32; previous revision: 1.31
done
IDE: [10/28/07 12:11 PM] Committing finished