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.
When I add a file with custom code templates for Groovy in the System Filesystem (in Editors/text/x-groovy/CodeTemplates/org-netbeans-modules-editor-settings-CustomCodeTemplates.xml ), the code completion/custom templates work but if the template uses variables (e.g. w/ curly braces), it takes up to 20 seconds to expand the custom code template in the editor, e.g. : <codetemplate abbreviation="fbr" xml:space="preserve"> <code><![CDATA[fooBar(a1:${expression},count:${count default="0"},desc:${desc default="Explain what youre looking to find"}, description2:${desc})]]></code> </codetemplate> If the code template contains only text replacement, the performance is normal, e.g. : <codetemplate abbreviation="bbb" xml:space="preserve"> <code><![CDATA["ccc"]]></code> </codetemplate>
Created attachment 95119 [details] sample code templates registered for groovy
Created attachment 95120 [details] thread dump while the custom code template is expanding
*** Bug 181982 has been marked as a duplicate of this bug. ***
The contrib/codetemplatetools plugin seems to use the same custom templates file to store the custom templates; however, it is able to expand the same templates within normal times for groovy source code (the same templates that the groovy editor chokes on)
Alex, how could I reproduce this? I'm quite not sure if I understand the problem.
Closing as INCOMPLETE until some addition information will be available.