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.
It looks like side effect of fixing issue #247926 If you try to create C/C++ Application it will have 2 source files: - broken main.cc - and unexpected main.cpp.cc Probably MIMEExtensions.getDefault is not used anymore in the context of change. In C++ you can specify in Options->C++->Other the default extension used for mime type and this extension will be used when creating main file. It could be related to deprecated CreateFromTemplateHandler.FREE_FILE_EXTENSION which is not supported anymore? used by cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/MakeProjectGeneratorImpl.java
Btw, expected behavior was to have one main.cpp file created from template Templates/cppFiles/main.cc with expanded macros instead of /* * File: %<%NAME%>%.%<%EXTENSION%>% * Author: %<%USER%>% * * Created on %<%DATE%>%, %<%TIME%>% */
Svata, please check this bug. Thank you.
FREE_FILE_EXTENSIONS should be still honoured - the symbol is only deprecated in DataSystems API, but the same symbol (with the same value) is declared in the extracted templating API.
Should be fixed by http://hg.netbeans.org/jet-main/rev/4d68059648c6
Integrated into 'main-silver', will be available in build *201411240001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4d68059648c6 User: Svata Dedic <sdedic@netbeans.org> Log: #248804: fixed default creation. Fixed adding ParameterProvider parameters to client-provided MapFormat
*** Bug 248843 has been marked as a duplicate of this bug. ***
this particular problem is fixed. similar regression is issue #248975