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 239153

Summary: Problems with completion before }} without whitespace
Product: web Reporter: Vladimir Riha <vriha>
Component: AngularJSAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: ppisl
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: sample project

Description Vladimir Riha 2013-12-05 12:11:07 UTC
Created attachment 142858 [details]
sample project

Please check the attached project:
 - open client/app/partials/home.html
 - invoke cc on line 3 inside the {{}}

=>nicmoc1 is not offered but if I try it with 

{{ }}

and put cursor at the beginning (right after {{), it will work due to whitespace at the end


Product Version: NetBeans IDE Dev (Build 201312050002)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b59
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b117
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2014-01-29 15:26:17 UTC
... possibly related is that if you have

{{day}}

and press Dot after "y", code completion does not come up automatically, it need to be manually invoked. With whitespace before firs }, it works ok.
Comment 2 Petr Pisl 2014-02-14 13:29:08 UTC
The problem is that the embedding of JS into html has zero length. In such case the Snapshot.getEmbeddedOffset return 0 instead of the right original offset.
Comment 3 Roman Svitanic 2015-02-25 15:23:47 UTC
*** Bug 239090 has been marked as a duplicate of this bug. ***
Comment 4 Roman Svitanic 2015-03-27 12:59:53 UTC
*** Bug 239148 has been marked as a duplicate of this bug. ***