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.
consider this xml snippet (| signifies where completion is triggered) <resource type="freemarker" name="edit" location="e|ditTask.ftl"/> codewise it is routed to org.netbeans.modules.xml.api.model.GrammarQuery's Enumeration<GrammarResult> queryValues(HintContext virtualTextCtx) method. unfortunately the resulting HintContext instance returns null on getParentNode() this disallows discovering the context of the query (that the enclosing element is "resource") getParentNode() typically works in other places (attribute keys, element names, text values)
API was not designed in a way which would provide a context.