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 - Problems with completion before }} without whitespace
Summary: Problems with completion before }} without whitespace
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
: 239090 239148 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-12-05 12:11 UTC by Vladimir Riha
Modified: 2015-09-09 11:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
sample project (765.87 KB, application/zip)
2013-12-05 12:11 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-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. ***