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 42878 - Externally removed folders are not removed from view.
Summary: Externally removed folders are not removed from view.
Status: CLOSED WORKSFORME
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-05-06 10:12 UTC by Martin Entlicher
Modified: 2006-03-24 10:17 UTC (History)
2 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 Martin Entlicher 2004-05-06 10:12:44 UTC
This can be reproduced in both Projects and Files
view:
1) Add a CVS filesystem via Versioning Manager
2) Open a project on that CVS filesystem
3) Create an empty folder outside of the IDE
somewhere in the CVS filesystem
4) In the IDE do CVS -> Refresh on the parent folder.
5) The new folder will appear as [Local]
6) Remove the folder outside of the IDE
7) In the IDE do CVS -> Refresh on the parent folder.
8) BUG: The folder is still there.
Comment 1 Martin Entlicher 2004-05-06 10:14:24 UTC
(This is one part of defect #42267. The folder in fact does not exist
and therefore there are no CVS actions on it.)
Comment 2 Jesse Glick 2004-05-06 15:01:41 UTC
1. I cannot reproduce this in the Files tab. Just tried in dev-040505,
and in step 8 the new folder was correctly gone.

2. I am not sure exactly how you would see it in the Projects tab
(what is the parent folder you refresh in the GUI?).

3. If it occurs in the Files tab, it very likely occurs in the All
Files tab, meaning it has nothing to do with the project system;
probably a VCS bug.
Comment 3 Martin Entlicher 2004-05-06 15:32:06 UTC
1) I have dev IDE from 040428. I'll check the behavior in recent dev
build.

2) I've created "test" folder under com.myapp. Therefore I've
refreshed "com.myapp" node. This should work shouldn't it?

3) The nature of the bug does not look like a bug in VCS modules.
Comment 4 Martin Entlicher 2004-05-06 16:26:17 UTC
Well, it really does not work. I've tested current trunk build and
also build #200405051800. The behavior is still the same, removed
folder is not removed from the view. Perhaps it's important that it's
a J2SE project, not a special NetBeans project.

It's definitely a bug outside of VCS modules. Even Files view gets out
of synch with Projects view.

When I create test2 folder and do refresh on com.myapp,
com.myapp.test2 node is added in Project view, but (the removed)
com.myapp.test stays there, while in Files view "test" folder is
correctly replaced with "test2". Files view is corrected when there is
a further change (like a file is added), while the Projects view is not.
Comment 5 Jesse Glick 2004-05-06 18:38:04 UTC
Why didn't you say to begin with that it was specific to the Projects
tab (i.e. the package view)? You initially said it could be reproduced
in both the Projects and Files tabs.

Assigning to Petr for evaluation; probably some PackageViewChildren
issue, I don't know.
Comment 6 Martin Entlicher 2004-05-06 19:27:39 UTC
Well, it can be reproduced in Files view as well by following the 8
steps that I've described. But it seems that the behavior in Projects
tab is even worse according to my last observations.
Comment 7 Jesse Glick 2004-05-06 19:48:54 UTC
I cannot reproduce any such behavior in the Files tab so please
provide more explicit instructions.
Comment 8 Petr Hrebejk 2004-05-10 14:03:07 UTC
I tried to reproduce in the latest build and I did not succeed. It
works for both files view and projects view. The fact that it is very
hard to find proper node in projects view where to click to refresh is
sad. However the refresh seems to work well. 
Please notice that I usually used refresh in the popup menu of the
node not the CVS submenu. The item was not available in the CVS popup.
But anyway I would rather search for problems in the CVS file system
than in the project views. If you still instist that it does not work
please try in all files. If you can reproduce it there it is very
likely CVS problem.
Comment 9 Jesse Glick 2004-05-10 17:03:05 UTC
Incorrect status.
Comment 10 Jesse Glick 2004-05-10 17:03:25 UTC
Correcting.
Comment 11 Martin Entlicher 2004-05-10 17:18:49 UTC
This looks like a problem of how refresh of FileObjects is performed
after Refresh command is executed.
With simple "Refresh Folder" action it works O.K., but not with CVS ->
Refresh. Since this works O.K. in 3.6, it's a regression somewhere.
Maybe that the interaction with MasterFS is causing problems.

Reopening (the bug is still there, at least for me) and assigning to
vcscore module for now, since the view of VCS filesystems is impacted.
I'll try to explore this deeper when I have some time...
Comment 12 Jesse Glick 2004-05-10 17:24:12 UTC
Check also File -> Refresh All Files.
Comment 13 Martin Entlicher 2004-05-20 16:50:09 UTC
Well, it works for me in current build. I do not know when it started
to work, but either there was something bad with my build or the
problem was fixed as a side effect of another fix (maybe #43435?).
Anyway, it works now.
Comment 14 Peter Pis 2005-07-19 16:23:15 UTC
Verified.