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 251625 - Project tree-> New -> file created but not added to the project
Summary: Project tree-> New -> file created but not added to the project
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks: 251631
  Show dependency tree
 
Reported: 2015-04-03 11:35 UTC by mariusz_m
Modified: 2015-07-22 11:31 UTC (History)
0 users

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 mariusz_m 2015-04-03 11:35:50 UTC
When I add a new file to the project (tree -> New-> C++ Source File) the file is created correctly on the pointed path, but it is not added to the folder it was .
Comment 1 Alexander Simon 2015-04-15 13:13:49 UTC
Please provide steps to reproduce the bug.
Comment 2 Alexander Simon 2015-04-15 14:35:46 UTC
Hi mariusz,

As I understand you is trying to add own C++ template.
The problem is a new added C++ template does not use C++ template wizard iterator.
As result default wizard iterator is used which have a problem with file extensions.
I can suggest work around:
- open file ${NB_USER_DIR}/config/Templates/cppFiles/.nbattrs
- find new added template
- add two properties:
        <attr name="templateCategory" stringvalue="cpp-types"/>
        <attr name="templateWizardIterator" newvalue="org.netbeans.modules.cnd.editor.filecreation.CCFSrcFileIterator"/>

Alexander
Comment 3 mariusz_m 2015-07-22 09:39:52 UTC
Hi Alex,
no, I'm not talking about any kind of templates.
- r-click on the project tree, sources
- select New -> C++ source file
- the dialog box appears, I enter the file name
- click OK - NB opens newly created file in a tab
- the new file doesn't appear in project tree: I have to add it manually using Add existing item...

I'm still using 8.0.2. Maybe it is fixed in some nightly build?
I'll try for a moment

Sorry for such a long delay but I changed my email account and I forgot to reconfigure my account here.

Regards,
Mariusz
Comment 4 mariusz_m 2015-07-22 11:17:36 UTC
Build 201507200001 - still the same
Comment 5 Alexander Simon 2015-07-22 11:29:49 UTC
Please provide more details. I cannot reproduce the bug.
My steps:
- Create C/C++ Application
- right click on "Source Files"
- New -> C++ source file
- Finish