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 232125 - Inconsistent completion list
Summary: Inconsistent completion list
Status: VERIFIED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-02 08:42 UTC by Vladimir Riha
Modified: 2013-07-03 07:01 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 Vladimir Riha 2013-07-02 08:42:54 UTC
Please try this:

index.html:
<div ng-controller="SettingsController">
    Name: <input type="text"  ng-click="greet()" ng-disabled="" ng-model="name"/>
</div>

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


Now in HTML file, invoke cc for value of ng-disabled

=> "name" is not offered, so try again Ctrl+Space for "full" JS completion => "no suggestions". Now type "n" like

ng-disabled="n"

and invoke cc after "n" => different cc list is offered, including "name" property


Product Version: NetBeans IDE Dev (Build 201307012300)
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 Petr Pisl 2013-07-02 12:37:50 UTC
It's almost impossible to fix it, because there is no way how to map correctly the original source position to the virtual source. I have created "hack" that should help in this situation. Probably will not work in 100%.
Comment 2 Quality Engineering 2013-07-03 02:30:33 UTC
Integrated into 'main-silver', will be available in build *201307022300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5d8ca446e754
User: Petr Pisl <ppisl@netbeans.org>
Log: #232125 - Inconsistent completion list
Comment 3 Vladimir Riha 2013-07-03 07:01:26 UTC
Thank you,verified

Product Version: NetBeans IDE Dev (Build 201307022300)
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-48-generic-pae running on i386; UTF-8; en_US (nb)