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 237520 - Bug in project files listing
Summary: Bug in project files listing
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-23 06:10 UTC by nordsturm
Modified: 2013-11-15 14:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
a deleted file example (243.82 KB, image/jpeg)
2013-10-24 07:51 UTC, nordsturm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description nordsturm 2013-10-23 06:10:49 UTC
Product Version = NetBeans IDE 7.4 (Build 201310111528)
Operating System = Mac OS X version 10.8.5 running on x86_64
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.45-b08

Since 7.3 there is an annoying bug with deleted items in the project panel.
If there are deleted files, the Editor only marks them with a "notice" icon.. and that's all!
I can do nothing at all with deleted folders. "Remove" action does nothing!
Also I have to remove deleted files manually using a context menu item "remove from project".

The checkbox "Automatically scan source code" is enabled In netbeans settings.
Comment 1 Jaroslav Havlin 2013-10-24 06:47:41 UTC
I'm sorry, I cannot reproduce this bug.
Can you please attach a screenshot?
Which version control system do you use?
Thank you.
Comment 2 nordsturm 2013-10-24 07:51:04 UTC
Created attachment 141501 [details]
a deleted file example
Comment 3 Jaroslav Havlin 2013-10-24 08:09:37 UTC
I'm not sure what is the problem, but it seems related to C/C++ projects.
Reassigning to cnd/Project. Please evaluate it. Thank you.
Comment 4 nordsturm 2013-10-24 08:10:33 UTC
I've reproduced the bug, my steps are:
1) from the command line create a folder with some files
2) init a git repository, add all files/folders, make an initial commit
3) in IDE create a new project with existent source files selecting the folder from the step #1
4) in IDE create a new folder (11111+ in the screenshot), create a new file (newfile.cpp in the screenshot)
5) execute git add . && git commit -m "msg"
6) execute rm -rf 11111+ && git add -u
6) git add -
7) in IDE now newfile.cpp is marked with a warning icon

and additional steps to reproduce the problem with folders:
8) in IDE click on the newfile.cpp and select the "remove from project" item
9) there is no file in 11111+ but the folder is marked as corrupted and the most problem is that I cannot remove it!
Comment 5 nordsturm 2013-10-24 08:14:15 UTC
Exactly, I mean C++ Projects and I use git as CVS.
Comment 6 Alexander Simon 2013-10-24 09:35:22 UTC
Fixed
9) ... the most problem is that I cannot remove it!

in change set: 26466190f7fc

Not fixed:
7) in IDE now newfile.cpp is marked with a warning icon
9) there is no file in 11111+ but the folder is marked as corrupted

It is expected behavior.
Comment 7 nordsturm 2013-10-24 10:18:47 UTC
However, as user I think it is not a consistent behavior.

- if I add folders from the command line and then remove them in console
IDE does automatically update files and folders in the list

- if I add folders using IDE and then remove them in console
IDE doesn't
Comment 8 soldatov 2013-11-15 14:41:00 UTC
verified in NetBeans IDE 7.4 (Build 201311142201)