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 232028 - No code completion in some directives
Summary: No code completion in some directives
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-29 12:07 UTC by Vladimir Riha
Modified: 2013-07-02 07:21 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (49.45 KB, text/x-log)
2013-06-29 12:07 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-06-29 12:07:20 UTC
Created attachment 136493 [details]
IDE log

Please try:

index.html (3 lines):
<div ng-controller="SettingsController">
    Name: <input type="text"  ng-change="" ng-model="name"/>
</div>

file.js (6 lines):
function SettingsController($scope) {
  $scope.name = "John Smith";
  $scope.greet = function() {
   alert(this.name);
  };
}



And now try to invoke cc in ng-change like:

ng-change="|"


=> no suggestions, the same goes for e.g. ng-selected from this sample http://docs.angularjs.org/api/ng.directive:ngSelected.

If you type value for ng-change like:

ng-change="greet()"

it is not recognized as function call (it is orange instead of black)



Product Version: NetBeans IDE Dev (Build 201306272300)
Updates: Updates available
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.2.0-45-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2013-07-01 08:26:33 UTC
Please feel free to make it ENHANCEMENT if this is not yet supported. Thank you
Comment 2 Marek Fukala 2013-07-01 12:37:26 UTC
fixed in web-main#7901643f739f
Comment 3 Quality Engineering 2013-07-02 02:15:36 UTC
Integrated into 'main-silver', will be available in build *201307012300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7901643f739f
User: Marek Fukala <mfukala@netbeans.org>
Log: #232028 - No code completion in some directives
Comment 4 Vladimir Riha 2013-07-02 07:21:44 UTC
Thank you, verified


Product Version: NetBeans IDE Dev (Build 201307012300)
Updates: Updates available
Java: 1.7.0_25; Java HotSpot(TM) Client VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b15
System: Linux version 3.2.0-45-generic-pae running on i386; UTF-8; en_US (nb)