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.
This issue is really old and it's occur only when user template file is selected when adding New to the project. In the field with file name to create the extension is ommited, but in the field on the bottom containing full path the extension is visible. However, the NB creates file without this extension. If I add missing extension together with filename, the file is created as expected.
Created attachment 153022 [details] extension missing
Created attachment 153023 [details] extension added
It is a common issue: - new added template does not inherit attributes of sibling temples. - there is no way to edit template attributes. Wrong behavior can be reproduced on java: - add new java template from file. - add new java file from added template. - see that second step does not contain "package" field.
Created attachment 153215 [details] proposed patch
Thanks for the patch. I can apply the part in openide.loaders...
Integrated into 'main-silver', will be available in build *201504160452* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/dcbe9892bf34 User: Alexander Simon <alexvsimon@netbeans.org> Log: CND part of partial fix for C/C++ files (bug #251631)
Fixed by changeset: 286798:48d3b2c87991 http://hg.netbeans.org/core-main/rev/48d3b2c87991
Integrated into 'main-silver', will be available in build *201504201004* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/48d3b2c87991 User: mentlicher@netbeans.org Log: #251631: Retrieve the wizard iterator from the parent folder if it's not defined on the template file.