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 43960 - [40cat] CVS folders sometimes shown in package view
Summary: [40cat] CVS folders sometimes shown in package view
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC All
: P3 blocker with 1 vote (vote)
Assignee: Petr Hrebejk
URL:
Keywords: RANDOM
: 46603 47961 48261 52458 56196 (view as bug list)
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-05-28 08:52 UTC by Jesse Glick
Modified: 2005-03-31 12:49 UTC (History)
4 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 Jesse Glick 2004-05-28 08:52:43 UTC
040527. Usually CVS folders are hidden in the
package view. But sometimes (after CVS updates
that touch the metadata?) they appear there (only
in some places).
Comment 1 _ leonchiver 2004-07-08 19:48:22 UTC
i think i found a way to reproduce the bug. at least, at my place i
can reproduce it like i will describe:

i create a branch on a project, then update the project using the
newly created branch. i get to see the CVS folders.
Comment 2 psuk 2004-07-19 17:11:13 UTC
subcomp->projects
Comment 3 Petr Hrebejk 2004-07-27 10:46:53 UTC
*** Issue 46603 has been marked as a duplicate of this issue. ***
Comment 4 Jesse Glick 2004-07-27 19:24:58 UTC
Observed in 040726 after removing one file and adding one file in a
package (using CVS commands from IDE).
Comment 5 Petr Hrebejk 2004-08-10 09:51:36 UTC
Tried to make PackageViewChildren to consult VisibilityQuery wherever
necessary. Should be fixed. Please reopen when it happens again.


Checking in
project/src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java;
/cvs/java/project/src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java,v
 <--  PackageViewChildren.javanew revision: 1.25; previous revision: 1.24
done
Processing log script arguments...
More commits to come...
Checking in
project/test/unit/src/org/netbeans/spi/java/project/support/ui/PackageViewTest.java;
/cvs/java/project/test/unit/src/org/netbeans/spi/java/project/support/ui/PackageViewTest.java,v
 <--  PackageViewTest.java
new revision: 1.11; previous revision: 1.10
done
Comment 6 rtrask 2004-08-24 16:08:03 UTC
This seems to happen very consistenety under 4.0. I don't know what 
the priority of it should be, but it is kind of annoying when you 
have several packages under Source code control and do an update on 
the root. 
Comment 7 Petr Hrebejk 2004-08-24 16:58:04 UTC
OK if it happens consstently to you please let me know some exact
steps how to reproduce it. And also please let me know which build do
you use.

Thanks.
Comment 8 Jesse Glick 2004-08-25 00:06:26 UTC
Emphasis for rtrask: as far as we know this is fixed in trunk
(nightly) builds. If you see it in a nightly build, we need to know
that, but every piece of information that might help reproduce it is
needed, since no one else has seen it that I am aware of.

Petr was this fixed in the beta build or not? If not, and rtrask is
using the beta, should assume it is fixed in the trunk unless we hear
otherwise.
Comment 9 Jesse Glick 2004-08-25 21:17:07 UTC
*** Issue 47961 has been marked as a duplicate of this issue. ***
Comment 10 Petr Hrebejk 2004-08-26 09:00:28 UTC
The rtask does not seem to respond. Assume he was using the beta 1 (
which does not containt the fix). None else reports that problem. If
it happens in trunk build, please reopen with detailed steps to reproduce.
Comment 11 Petr Hrebejk 2004-08-31 18:32:50 UTC
*** Issue 48261 has been marked as a duplicate of this issue. ***
Comment 12 chrisnielsen 2004-11-11 18:06:45 UTC
This issue still occurs in Beta 2, but only for more contrived
situations.  I will post a follow-up comment with details within the
next hour or so.
Comment 13 chrisnielsen 2004-11-11 19:11:20 UTC
BACKGROUND: I discovered this issue after using the CVS Edit command,
which
creates a subdirectory named 'Base' under each CVS directory within
the local
source tree.  When I performed a subsequent CVS 'Update' from within
NetBeans,
packages with suffixes of ".CVS.Base" appeared in the 'Projects' window.

PLATFORM: Linux (Fedora Core 2), Java 5.0 (final release), GNOME.

BUILDS TESTED: NetBeans 4.0 Beta 2; NetBeans 4.0 Daily Build 2004. 
(Occurred
in both.)

CVS CONFIGURATION: Pserver; built-in CVS client.  (Note that I tested
'command
line CVS client' as well, with the same end result.)

STEPS TO REPRODUCE: Create an arbitrary directory under a CVS folder
in your
local source tree, and then perform a CVS Update from within NetBeans.
Additional packages with a suffix of ".CVS.xxx" (where 'xxx' is the
name of
the subdirectories you created) will appear in the list of packages in the
'Projects' window.

Some things to note:

* If your project is open while you create these new directories, NetBeans
will automatically add them to the list of packages after you
reactivate the
NetBeans window.  Likewise, if you remove these directories while the
project
is open, then will disappear.

* If these directories are created while the associated project is
closed, and
you then open the project in NetBeans, these bogus packages will not
appear
until a CVS Update is performed.
Comment 14 chrisnielsen 2004-11-11 19:13:01 UTC
Relative to my prior note, the 4.0 daily build I used was 200411072021.
Comment 15 Jesse Glick 2004-11-11 21:06:09 UTC
Petr please evaluate.
Comment 16 slik 2004-12-14 21:58:19 UTC
I can easily and consistently reproduce this under RC2 (Build
200412011810).

1. Open NB in Projects view.
2. Select "souce" node in open project.
3. Do a global update (Versionning > CVS > Update) on this node.
4. After update completes, the project tree will refresh, showing
"CVS.Base" gray folders for some packages. This happens regardless of
whether any files were actually updated from CVS.

A more annoying side-effect of this is the fact that files from these
CVS folders show up in file search results, so if you look for MyClass
class, you might unknowingly start editing the version that is in your
 CVS.Base folder, not the main source folder.
Comment 17 Petr Hrebejk 2004-12-16 09:26:33 UTC
*** Issue 52458 has been marked as a duplicate of this issue. ***
Comment 18 Petr Hrebejk 2004-12-16 09:30:10 UTC
Yes, it may happen that there are some folders under CVS dirs
visdible. The impl. of PackageViewChildren currently does not check
the whole path to root for visibility. (Because of performance) I see
that I will have to check. Hopefully it won't slow down the Package
views too much.  
Comment 19 Petr Hrebejk 2005-03-21 18:03:53 UTC
*** Issue 56196 has been marked as a duplicate of this issue. ***
Comment 20 Petr Hrebejk 2005-03-26 16:02:15 UTC
Should be fixed now see the added tests.

Checking in
java/project/src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java;
/cvs/java/project/src/org/netbeans/spi/java/project/support/ui/PackageViewChildren.java,v
 <--  PackageViewChildren.javanew revision: 1.57; previous revision: 1.56
done
Checking in
java/project/test/unit/src/org/netbeans/spi/java/project/support/ui/PackageViewTest.java;
/cvs/java/project/test/unit/src/org/netbeans/spi/java/project/support/ui/PackageViewTest.java,v
 <--  PackageViewTest.java
new revision: 1.24; previous revision: 1.23
done
Comment 21 Petr Hrebejk 2005-03-31 12:49:16 UTC
*** Issue 57240 has been marked as a duplicate of this issue. ***