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 231651 - Maven «dep» the maven dependency code template does not work anymore
Summary: Maven «dep» the maven dependency code template does not work anymore
Status: RESOLVED WORKSFORME
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-21 16:00 UTC by lforet
Modified: 2015-09-04 12:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
completion not working for spring.version property (178.84 KB, image/png)
2013-07-24 21:30 UTC, lforet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lforet 2013-06-21 16:00:07 UTC
Product Version = NetBeans IDE 7.4 Beta (Build 201306132201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01

I can not use the dep + tab in order to activate dependency template in my edited pom. FYI, it works like a charm in 7.3.
Comment 1 Milos Kleint 2013-06-24 09:39:18 UTC
it appears that the problem lies somewhere between code templates and code completion in xml files.

writing dep<tab> will always work within <properties> element, but only on some occasions in <dependencies> element. I believe timing is important. If I manage to type fast enough before code completion is computed, I get the code template inserted. If i'm slow dep is interpreted as code completion and since within <dependencies> only <dependency> element is allowed and offered, it's auto-inserted.

adding a new code template with shortcut "dp" and same body as "dep" appears to have no problems.

reassigning to xml for evaluation if that's a correct behaviour or not. maybe we will have to change the code templates.
Comment 2 lforet 2013-06-25 20:14:01 UTC
IMHO, change "dep" to "dp" as shortcut for dependency templace is fine for me.
Comment 3 lforet 2013-07-24 21:30:32 UTC
Created attachment 137738 [details]
completion not working for spring.version property
Comment 4 Svata Dedic 2015-09-04 12:15:24 UTC
Seems to work in 8.1dev build