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 146709 - completion: local vars are not listed
Summary: completion: local vars are not listed
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P2 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
: 147572 (view as bug list)
Depends on:
Blocks: 146952
  Show dependency tree
 
Reported: 2008-09-09 22:05 UTC by Lark Fitzgerald
Modified: 2008-10-08 15:08 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 Lark Fitzgerald 2008-09-09 22:05:28 UTC
Tested using FX Cont trunk build 130 (Sep 9, 2008 4:49:22 PM) on NB6.5:
Product Version: NetBeans IDE Dev (Build 200809081401)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)

1. Open TopLvlVar2.fx (automated test)
---------------------
package declarations;

var x : Integer = 17;
var y : Integer = 2;
var h : String = "Hello ";
var w : String = "world";

---------------------
2. position cursor at the end and press ctrl+space

Expected to see x, y, h and w in the list.  Test fails.
Comment 1 David Strupl 2008-09-18 16:36:14 UTC
We (I) incrrectly use trees.isAccessible(scope, ...) in addMembers. The used scope is for the whole file (compilation
unit) but not for the current e.g. function or class.
Comment 2 David Strupl 2008-09-22 13:58:54 UTC
*** Issue 147572 has been marked as a duplicate of this issue. ***
Comment 3 David Strupl 2008-09-22 15:58:11 UTC
I have raised 
http://openjfx.java.sun.com/jira/browse/JFXC-2054
where I ask about how should the code in the compiler behave.
Comment 4 David Strupl 2008-09-25 13:34:43 UTC
1260:0cd1923f1bab
Comment 5 Lark Fitzgerald 2008-09-25 20:14:01 UTC
Tested using FX Cont trunk build 243 with SDK:
Product: javafx-1.0dev Platform: windows-i586 Build-Number: 355 Build-ID: 2008-09-25_08-25-51 on NB6.5: 
Product Version: NetBeans IDE Dev (Build 20080922)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Comment 6 Lark Fitzgerald 2008-09-25 21:39:45 UTC
There is something inconsistent about this.  I can reproduce this issue again, but I couldn't earlier - same build.
Comment 7 David Strupl 2008-10-08 12:21:09 UTC
I have tried with my recent set of changes. It seems to work for me now. I am not saying that it worked yesterday but
with the current sources it seems to work here. Please reopen if you find otherwise. Thanks.
Comment 8 Lark Fitzgerald 2008-10-08 15:08:53 UTC
Tested using FX Cont trunk build 320 with SDK:
Product: javafx-1.0dev, Platform: windows-i586, Build-Number: 634, Build-ID: 

2008-10-07_03-34-16 on NB6.5: 
Product Version: NetBeans IDE Dev (Build 200810060201)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b14
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)