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.
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.
Reassigning to core for further evaluation.
there were some fixes in Templates recently. Jirko, was this one fixed?
Confirmed in recent NetBeans Dev build. It's fatal problem which has be fixed in NB7.0
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.
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.
core-main/rev/305c891d5759