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 246377 - Code completion for AngularJS module variables not working
Summary: Code completion for AngularJS module variables not working
Status: RESOLVED DUPLICATE of bug 239109
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-11 02:19 UTC by skomisa
Modified: 2014-08-11 11:28 UTC (History)
1 user (show)

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 skomisa 2014-08-11 02:19:49 UTC
This bug relates to the Synergy test "Completion in partial file - MyCtrl1 II" for AngularJS here:
  http://services.netbeans.org/synergy/client/app/#/assignment/1091/v/1

The issues in this bug are similar to those in bug Bug 239109, "Inner properties of $scope's property not resolved".

Issue 1
=======
Step 3 of the test states: "Following should be offered: iteration, date, exec() and config. Make sure that e.g. test, hello, test3 or ironman2 are not".

However, test, hello, test3 and ironman2 are all offered by code completion.   

Issue 2
=======
Step 5 of the test states "properties/functions of Date object should be offered" but Date's properties/functions (e.g. getTime(), setHours(), etc.) are not offered. Bug 239109 reports the same issue.

Issue 3
=======
Step 6 of the test states "Try Go To declaration for ironman.date, IDE should open controllers.js on line 29, where this property is declared" but nothing happens for the "Go To declaration" request. Bug 239109 reports the same issue.

Issue 4
=======
Step 8 of the test states "url and http should be offered". This did work for me but note that another user reported this as an issue in bug 239109. Maybe it is resolved with the latest dev release of NetBeans?

Issue 5
=======
Step 9 of the test states "Try Go To declaration for ironman.url, IDE should open controllers.js on line 32, where this property is declared" but nothing happens for the "Go To declaration" request.
Comment 1 skomisa 2014-08-11 02:21:00 UTC
Here are my environment details:

Product Version: NetBeans IDE Dev (Build 201408100001)
Java: 1.8.0_20-ea; Java HotSpot(TM) 64-Bit Server VM 25.20-b22
Runtime: Java(TM) SE Runtime Environment 1.8.0_20-ea-b23
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\JohnDoe\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\JohnDoe\AppData\Local\NetBeans\Cache\dev
Comment 2 skomisa 2014-08-11 03:20:29 UTC
I am also seeing these issues with This bug relates to the Synergy test "Completion in partial file - MyCtrl2 II" for AngularJS here:
  http://services.netbeans.org/synergy/client/app/#/assignment/1091/v/1
Comment 3 skomisa 2014-08-11 04:01:49 UTC
I am also seeing these issues with Synergy test "Completion in partial file - MyCtrl3 IV" for AngularJS here:
  http://services.netbeans.org/synergy/client/app/#/assignment/1091/v/1
Comment 4 skomisa 2014-08-11 04:20:31 UTC
I am also seeing these issues with Synergy test "Completion in partial file IV" for AngularJS here:
  http://services.netbeans.org/synergy/client/app/#/assignment/1091/v/1
Comment 5 Vladimir Riha 2014-08-11 11:28:13 UTC
2), 3), 4), 5) is a duplicate of issue 239109 as you mentioned, 1) is 245361 I believe.

*** This bug has been marked as a duplicate of bug 239109 ***