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 194162 - Own template files generate without extension
Summary: Own template files generate without extension
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-09 20:15 UTC by flopper
Modified: 2011-01-17 11:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description flopper 2011-01-09 20:15:49 UTC
Product Version = NetBeans IDE 6.9.1 (Build 201011082200)
Operating System = Linux version 2.6.36-gentoo-r5 running on i386
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) Client VM 17.1-b03

I have a set of two files for C++ developing, one for the header (.h), one for the code (.cc). When generating the files, the extension is empty, so the file names have no extensions and inside the files all %<%EXTENSION%>% codes are empty.
Comment 1 Alexander Simon 2011-01-17 10:39:23 UTC
(In reply to comment #0)
> I have a set of two files for C++ developing
Could you clarify what does it mean?
Please provide steps to reproduce you problem.
Comment 2 flopper 2011-01-17 11:57:33 UTC
I duplicated the double-file template for a C++ class using the Duplicate command. I made some changes (surrounded code and class def with two nested namespaces). When I wanted to use these templates, the aforementioned bugs showed.

I cannot reproduce the problem because after playing around with template duplicating and creation the original templates aren't usable anymore. Another bug in the IDE (a null pointer) showed up which I reported and was already fixed.

My general impression is that template creation is a bit shaky and needs more testing. IMHO a much better approach would be if templates are completely file based (a new template just creates one file and does not mess with internal registries etc). This would be much more fault tolerant. I have now a state which I cannot repair myself anymore.

I managed to have a header template with working file extension, but a .cc file template shows the missing extension bug.