File template problem in Netbeans 8.2 for C/C++

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Ivo
Reply | Threaded
Open this post in threaded view
|

File template problem in Netbeans 8.2 for C/C++

Ivo
Hello,
I have strange problem with using File templates in Netbeans for C/C++.

1) I create a new template for C++ class in Template manager by duplicating/copying appropriate files (C++ Class, class.h). New files were created in my home/.../.netbeans/8.2/config/Templates/cppFiles directory. See pic_00

2) It seems everything OK. I can create new class with Ctrl+N. Both class files (newClass2.h + newClass2.cpp) are created. See pic_01

3) When Netbeans is restarted, and I want to create new class with the same template, only a new .cpp file is created. No header file. It seems that NB thinks that it is only plain C++ source file template and no class template. See pic_02. Both files class_1.cc and class_1.h are present in the .../Templates/cppFiles directory.

Am I doing something wrong or is it a bug?

Ivo




Attachments:
http://forums.netbeans.org//files/pic_00_205.gif
http://forums.netbeans.org//files/pic_01_614.gif
http://forums.netbeans.org//files/pic_02_760.gif

Ivo
Reply | Threaded
Open this post in threaded view
|

File template problem in Netbeans 8.2 for C/C++

Ivo
It seems to be a Netbeans bug and there is a workaround.

https://netbeans.org/bugzilla/show_bug.cgi?id=270116