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.
On elif cnd.editor.TestIndentation.testIndentationC and cnd.editor.TestIndentation.testIndentationCSwitch tests fails for 14 and 16 days. Scenario in order to reproduce this problem: - Downloads studio-ide.tar.bz2 build from elif - Create project - Create "C Source File" ==> file contains 1 empty line only In NetBeans this file contains 2 empty lines. Also new "C++ Source File" file contains 2 empty lines (in NetBeans and studio-ide).
New file wizard is not part of projects. It''s in CND core.
Sasha, please, have a look
The com.sun.tools.odb.PcCreateFromTemplateHandler catch createFromTemplate for .c file.
com.sun.tools.odb.PcCreateFromTemplateHandler accept a MIMENames.C_MIME_TYPE. It is wrong. Solutions: - use another acceptor (another extension). - or inherit formatter from org.netbeans.modules.cnd.source.SourceAbstractDataLoader.CndFormat
My proposal: change method: protected boolean accept(FileObject orig): return MIMENames.C_MIME_TYPE.equals(orig.getMIMEType()); -> return MIMENames.C_MIME_TYPE.equals(orig.getMIMEType()) && "pc".equals(orig.getExt());
Egor approved fix. fixed in private repository, change set: 1421:a95da3cb29cb