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 246060 - Code completion offers properties from other variable
Summary: Code completion offers properties from other variable
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-28 13:17 UTC by Vladimir Riha
Modified: 2014-07-30 07:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (9.92 KB, application/zip)
2014-07-28 13:17 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2014-07-28 13:17:30 UTC
Created attachment 148358 [details]
sample project

Please check the attached project and open app.js. If you invoke cc after "e." at line 13, it offers properties "eeeee" and "src" which comes from req.js (line 622) but this variable is declared in different scope. 

Code completion also offers methods based on variable name like require() and configure() but theirs help contain the information that "This item can be unrelated. It's obtained from full project name usage." and file name in cc window is grey. But that's not the case with the properties.



Product Version: NetBeans IDE Dev (Build 201407280405)
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2014-07-28 13:17:59 UTC
Would be nice to fix it for 801. Thank you
Comment 2 Petr Pisl 2014-07-29 11:55:34 UTC
Fixed in web-main.
Comment 3 Quality Engineering 2014-07-30 02:33:20 UTC
Integrated into 'main-silver', will be available in build *201407300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/da426d75af96
User: Petr Pisl <ppisl@netbeans.org>
Log: #246060 - Code completion offers properties from other variable
Comment 4 Vladimir Riha 2014-07-30 07:04:17 UTC
Thank you, verified

Product Version: NetBeans IDE Dev (Build 201407300001)
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-32-generic running on i386; UTF-8; en_US (nb)