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 243888 - Properties and their properties from child controller not offered
Summary: Properties and their properties from child controller not offered
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-17 12:20 UTC by Vladimir Riha
Modified: 2014-04-25 02:28 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (943.09 KB, text/plain)
2014-04-17 12:20 UTC, Vladimir Riha
Details
sample project (3.28 KB, application/zip)
2014-04-17 12:20 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-04-17 12:20:09 UTC
Created attachment 146806 [details]
IDE log

Please see the attached project and open index.html:
  - on line 33 delete the "day" string from ng-bind and invoke cc 
   => page, printAttempt, day are not offered (printAttempt is but only because it is used on line 32)
   => if you type day and press dot for code completion

ng-bind="day."

 Then properties of Date are not offered. The same goes for printAttempt. This works in NB 8.0.
   => if you use one of the mentioned properties, it is purple as global and Go To Declaration does not work.



Product Version: NetBeans IDE Dev (Build 201404170001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2014-04-17 12:20:35 UTC
Created attachment 146807 [details]
sample project
Comment 2 Vladimir Riha 2014-04-17 12:30:15 UTC
Possible patch candidate if caused by issue 243773 or some other patch candidate. Could you please evaluate? Thank you
Comment 3 Petr Pisl 2014-04-17 13:16:05 UTC
Starting evaluation.
Comment 4 Petr Pisl 2014-04-17 18:41:02 UTC
Ahoj, I have just tested your sample project, but it works for me. I can see in code completion in index.html file "constancts", "csscolor", "day", "foo" and other properties comming from file.js. Also printAttempt object. The go to declaration works as expected. 

Vlado could you try again with clean userdir (I mean with deleting index cache).

Marking as works for me. But please, reopen if it doesn't work for you. Thanks.
Comment 5 Vladimir Riha 2014-04-18 06:58:15 UTC
I'm sorry, still no luck. Here's a short screencast to see the issue, you can see that cc does not offer properties from Ctrl() (and their properties) and Go To declaration is not working and it is purple as global.

Screencast:
https://drive.google.com/file/d/0B6Sd5ov8j7IUeWdsUk1scWlwcms/edit?usp=sharing


Product Version: NetBeans IDE Dev (Build 201404180001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 6 Petr Pisl 2014-04-18 07:49:39 UTC
Hmm, still it works for me:). The day and printAttempt are black in my case and navigation and cc works as expected. Did you try to delete the index cache? I will try to find out more.
Comment 7 Petr Pisl 2014-04-18 07:54:46 UTC
What build of the ide do you use?
Comment 8 Petr Pisl 2014-04-18 08:19:52 UTC
So we find out that it doesn't work with JDK8. It works correctly with JDK7. I will investigate more.
Comment 9 Petr Pisl 2014-04-23 07:11:31 UTC
The regression was caused by fix of issue #243647
Comment 10 Petr Pisl 2014-04-23 07:12:19 UTC
I have rallback the fix from web-main. So marking as fixed. Also needs to be rallback from releases80.
Comment 11 Vladimir Riha 2014-04-23 07:22:33 UTC
Verified

Product Version: NetBeans IDE Dev (Build 201404230001)
Java: 1.8.0; Java HotSpot(TM) Client VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Linux version 3.2.0-60-generic-pae running on i386; UTF-8; en_US (nb)
Comment 12 Petr Pisl 2014-04-23 07:26:41 UTC
Thanks,

the "rallback" is transplanted to the releases/release80. Because its remove the fix of issue #243647, I'm deleting the 80patch1-candidate whiteboard.
Comment 13 Quality Engineering 2014-04-25 02:28:30 UTC
Integrated into 'main-silver', will be available in build *201404250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0e7df0eebb24
User: Petr Pisl <ppisl@netbeans.org>
Log: #243888 - Properties and their properties from child controller not offered
adding test