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 you create a new template like this: /** * ${methoddescription} */ function ${functionN}($$${variable1}, $$${variable2}) { ${selection}${cursor} } the inserting is not finished correctly. The parameters of the template are not processed and the template is inserted as text.
My guess is that the formatter format also whitespaces around the template and when is something changed outside the template region, then the template handler stops to process parameters of template.
So the first assumption was wrong. The problem was in formatting phpdoc that is replaced line by line. It means that the template parameter in php doc (${methoddescription}) was touched and the template processor finished editing of the template. The formatter is fixed now. Will be a part of NetBeans 7.0.1.
Integrated into 'main-golden', will be available in build *201104210000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b6e82ed44a25 User: Petr Pisl <ppisl@netbeans.org> Log: #197906 - Formatter sometimes breaks inserting life code templates
Tested with NetBeans IDE Dev (Build 201104250000), worked like a charm, thanks!
When will this be merged into some stable release (probably 7.1)?
It should be part of NB 7.0.1. There is possibility to add this fix to the patch that should be available during 3 - 4 weeks. But then the issue should have bigger priority. If you think that it's needed, please increase the priority to P2.
(In reply to comment #6) > It should be part of NB 7.0.1. There is possibility to add this fix to the > patch that should be available during 3 - 4 weeks. But then the issue should > have bigger priority. If you think that it's needed, please increase the > priority to P2. Let me revisit the question. When will NB 7.0.1 be released? :)
The plan of NB 7.0.1 is here http://wiki.netbeans.org/NetBeans_701 .