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 172046 - Code completion does not work for the sequence index
Summary: Code completion does not work for the sequence index
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:
Depends on:
Blocks:
 
Reported: 2009-09-11 15:10 UTC by Alexandr Scherbatiy
Modified: 2009-12-10 05:59 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-11 15:10:00 UTC
netbeans-trunk-nightly-200909091401-javafx-full.zip 

Steps to reproduce:

- Copy the code to the editor:
-------------------------------------
var index = 10;
var seq = [1,2,3];


var elem = seq[ | ];  // | means cursor

-------------------------------------

- Press <Ctrl+Space>
 The 'index' variable is not suggested.
Comment 1 Lukas Hasik 2009-11-12 07:56:32 UTC
as this bug is either caused by the fx compiler or it too complicated to fix it in 6.8 - > approved
Comment 2 Petr Nejedly 2009-12-04 06:04:25 UTC
It works now for the mentioned case, but still fails if you already have a part of the identified typed.
Comment 3 Petr Nejedly 2009-12-04 09:24:55 UTC
Implemented the missing part of the completion, covered with a test.
http://hg.netbeans.org/javafx/rev/15829835540c
Comment 4 Alexandr Scherbatiy 2009-12-10 05:59:22 UTC
This works now in NetBeans-JavaFX-Soma: #61.

However the code completion still does not worl for the valueExpression.
See issue: 178421