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 248804 - [regression] New Project -> CppApplication is broken
Summary: [regression] New Project -> CppApplication is broken
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Data Systems (show other bugs)
Version: 8.1
Hardware: All All
: P1 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: REGRESSION
: 248843 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-11-21 14:23 UTC by Vladimir Voskresensky
Modified: 2014-11-28 11:04 UTC (History)
3 users (show)

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 Vladimir Voskresensky 2014-11-21 14:23:50 UTC
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
Comment 1 Vladimir Voskresensky 2014-11-21 14:25:50 UTC
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%>%
 */
Comment 2 Jaroslav Havlin 2014-11-21 15:49:11 UTC
Svata, please check this bug. Thank you.
Comment 3 Svata Dedic 2014-11-21 22:38:46 UTC
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.
Comment 4 Svata Dedic 2014-11-23 18:41:43 UTC
Should be fixed by http://hg.netbeans.org/jet-main/rev/4d68059648c6
Comment 5 Quality Engineering 2014-11-24 02:30:40 UTC
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
Comment 6 Vladimir Voskresensky 2014-11-28 11:00:27 UTC
*** Bug 248843 has been marked as a duplicate of this bug. ***
Comment 7 Vladimir Voskresensky 2014-11-28 11:04:14 UTC
this particular problem is fixed.
similar regression is issue #248975