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 154983 - Custom templates keep disappearing
Summary: Custom templates keep disappearing
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-09 02:15 UTC by ats37
Modified: 2009-11-10 12:16 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 ats37 2008-12-09 02:15:56 UTC
I've got a custom template, to generate .sql files for stored procedures (conforming to our team coding standards).  In
the template manager, I Add this to the Persistence folder.  At the command line, I see the file and a .nbattrs appear
in a folder of that name under $USER_HOME/config/Templates. I have then created new files successfully using that
template.  However, I have discovered that if (in the template manager again) I select to open the template in the
editor, on closing the editor the file disappears from here, leaving an empty $USER_HOME/config/Templates/Persistence
directory (and I am unable to use it to create new files again).

The file is still there all the time I have the editor window open, it just seems to be when I close the tab that the
file vanishes.  I have also tried adding the template to the Others folder instead of Persistence, but with much the
same result.
Comment 1 Peter Pis 2008-12-09 08:10:44 UTC
Reassigning to core for further evaluation.
Comment 2 Lukas Hasik 2008-12-09 09:09:43 UTC
there were some fixes in Templates recently. Jirko, was this one fixed?
Comment 3 Jiri Rechtacek 2008-12-10 11:12:00 UTC
Confirmed in recent NetBeans Dev build. It's fatal problem which has be fixed in NB7.0
Comment 4 ats37 2008-12-10 14:11:17 UTC
A possibly related symptom - after opening the template in the editor, when I make changes to it the "modified" (*)
indicator does not appear on the file's tab.
When I Duplicate e.g. the Java Class template and open the new copy for editing, this indicator does appear and the
template does not disappear from $USER_HOME/config/Templates/Classes after I close it.
Comment 5 Jiri Rechtacek 2009-11-10 08:09:31 UTC
Good hint, the problem is valid on on .sql files. Templates Manager works correctly on other extensions. Probably something wrong in sql file loader => reassigned on db area.
Comment 6 Jiri Rechtacek 2009-11-10 12:16:16 UTC
core-main/rev/305c891d5759