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 173358 - Code completion does not work
Summary: Code completion does not work
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2009-09-30 09:54 UTC by Alexandr Scherbatiy
Modified: 2009-11-10 05:13 UTC (History)
0 users

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 Alexandr Scherbatiy 2009-09-30 09:54:02 UTC
Product Version         = NetBeans IDE 6.8 Beta (Build 200909281634) (#066b555e5ecf)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.


Steps to reproduce:

- Copy the code to the editor:
-----------------------------------------------
import javafx.scene.shape.Circle;

Circle {
    

}
-----------------------------------------------

- Position cursor in scope of the Circle 
- Press <Ctrl+Space>

The Circle attributes are not shown
Comment 1 Alexandr Scherbatiy 2009-09-30 10:02:18 UTC
One more case.

- Copy the code to the editor:
-----------------------------------------
import javafx.scene.control.Button;

Button {
	text: "Button"
	action: function() {
		
	}
}
-----------------------------------------

- Position cursor in the body of the action function
- Type 'print'
-----------------------------------------
import javafx.scene.control.Button;

Button {
	text: "Button"
	action: function() {
		print
	}
}
-----------------------------------------

- Press <Ctrl+Space>
The code completion does not suggest the 'prinntln()' method
Comment 2 Petr Nejedly 2009-10-15 14:38:51 UTC
It looks like a huge regression. I don't know what has caused it yet, but there are problems offering identifiers in
many cases.
Comment 3 Petr Nejedly 2009-10-22 09:30:22 UTC
It seems that many problems are caused by the fact that things performed at the script level are considered synthetic by
the IDE (TreeUtilities.isSynthetic()) as they descend from a synthetic main method. I have to find out the reason for a
changeset that may have caused such behavior to solve this correctly.
Comment 4 Petr Nejedly 2009-11-09 09:06:51 UTC
Fixed, I'll provide a test case.
Comment 5 Alexandr Scherbatiy 2009-11-10 05:01:38 UTC
verified in Build 200911091156
Comment 6 Petr Nejedly 2009-11-10 05:13:34 UTC
The promised test case for this is:
http://hg.netbeans.org/javafx/rev/7a63812ce909
but I had to disable it for now as there are more results than should be there.