Community
Participate
Working Groups
Me and all of my team are having a problem synchronizing with CVS. The problem appears when someone adds new files, and then someone else tries to synchronize the project. An exception is thrown, the error message doesn't appear, and synchronization stops. Sometimes the problem can be solved by making an Update on the project before synchronization, but it doesn't always work. It appears to me that the problem happens when a resource is added in a new package. For example, in the error you see below, package5 was a new package that was not in my project. Below is the stack trace of the problem. Additional info: I'm using CVSNT 2.5.03.2151 as a CVS server on a Windows XP Pro machine. !SESSION 2006-02-20 06:53:09.781 ----------------------------------------------- eclipse.buildId=I20060217-1115 java.version=1.5.0_06 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 !ENTRY org.eclipse.team.core 4 0 2006-02-20 06:53:48.562 !MESSAGE Problems reported while synchronizing CVS Workspace. 0 of 1 resources were synchronized. !SUBENTRY 1 org.eclipse.team.core 4 0 2006-02-20 06:53:48.578 !MESSAGE An error occurred synchronizing /MyProject: Resource src/package1/package2/package3/package4/package5/MyClass.java is not a child of folder MyProject !STACK 1 org.eclipse.team.internal.ccvs.core.CVSException: Resource src/package1/package2/package3/package4/package5/MyClass.java is not a child of folder MyProject at org.eclipse.team.internal.ccvs.core.resources.RemoteFolder.getChild(RemoteFolder.java:344) at org.eclipse.team.internal.ccvs.core.client.Command.computeWorkResources(Command.java:226) at org.eclipse.team.internal.ccvs.core.client.Command.doExecute(Command.java:388) at org.eclipse.team.internal.ccvs.core.client.Command$1.run(Command.java:323) at org.eclipse.team.internal.ccvs.core.resources.RemoteFolder.run(RemoteFolder.java:456) at org.eclipse.team.internal.ccvs.core.client.Command.execute(Command.java:335) at org.eclipse.team.internal.ccvs.core.resources.RemoteFolderTreeBuilder.fetchFileRevisions(RemoteFolderTreeBuilder.java:710) at org.eclipse.team.internal.ccvs.core.resources.RemoteFolderTreeBuilder.fetchFileRevisions(RemoteFolderTreeBuilder.java:270) at org.eclipse.team.internal.ccvs.core.resources.RemoteFolderTreeBuilder.buildTree(RemoteFolderTreeBuilder.java:165) at org.eclipse.team.internal.ccvs.core.resources.RemoteFolderTreeBuilder.buildRemoteTree(RemoteFolderTreeBuilder.java:139) at org.eclipse.team.internal.ccvs.core.resources.CVSWorkspaceRoot.getRemoteTree(CVSWorkspaceRoot.java:181) at org.eclipse.team.internal.ccvs.core.syncinfo.CVSResourceVariantTree.fetchVariant(CVSResourceVariantTree.java:80) at org.eclipse.team.core.variants.AbstractResourceVariantTree.refresh(AbstractResourceVariantTree.java:86) at org.eclipse.team.internal.ccvs.core.syncinfo.CVSResourceVariantTree.refresh(CVSResourceVariantTree.java:327) at org.eclipse.team.core.variants.AbstractResourceVariantTree.refresh(AbstractResourceVariantTree.java:55) at org.eclipse.team.core.variants.ResourceVariantTreeSubscriber.refresh(ResourceVariantTreeSubscriber.java:160) at org.eclipse.team.core.variants.ResourceVariantTreeSubscriber.refresh(ResourceVariantTreeSubscriber.java:125) at org.eclipse.team.internal.ui.synchronize.RefreshSubscriberParticipantJob.doRefresh(RefreshSubscriberParticipantJob.java:87) at org.eclipse.team.internal.ui.synchronize.RefreshParticipantJob.run(RefreshParticipantJob.java:308) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58) !SUBENTRY 2 org.eclipse.team.cvs.core 4 1000 2006-02-20 06:53:48.578 !MESSAGE Resource src/package1/package2/package3/package4/package5/MyClass.java is not a child of folder MyProject
I suspect this is an issue with the CVS server version. To help us diagnose this problem, could you perform the steps outlines at this URL and attach the trace to this bug? http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-vcm-home/docs/online/cvs_features2.0/cvs-faq.html#misc_0
Created attachment 35294 [details] trace from CVS debugging I performed the steps and attached the log. I'm sorry for having to change some file names. I'm sure you understand why. I wish I didn't make any inconsistencies. The error appears to be a SocketClosed exception.
Could you give me more information about how you setup the project? Did you checkout a folder as a project or did you check out into an existing project? Are you checking out a modules that is defined in the CVSROOT/modules file?
1) I used "Checkout" from CVS Repository Exploring perspective. 2) If I understand the second question correctly, then the answer is no, the file CVSROOT/modules is actually empty (contains only some comments). (In reply to comment #3) > Could you give me more information about how you setup the project? Did you > checkout a folder as a project or did you check out into an existing project? > Are you checking out a modules that is defined in the CVSROOT/modules file? >
We've spme other reports of similar problems with CVSNT. We'll try and reproduce this next week.
Hosam, could you check to ensure that the "Emulate '-n checkout' bug" option of CVSNT enabled. See bug 128952 for a similar problem and a discussion of this poorly named CVSNT preference.
I did, and it seems to have solved the problem. Thank you very much. But I wonder, couldn't this be solved in some way other than changing the settings of the server itself? *** This bug has been marked as a duplicate of 128952 ***
Sure it could and we may do that if we have time. Remember though that CVSNT is really a different kind of server (i.e. in its default mode it behaves differently than a CVS server). Supporting the two flavours of CVS in a single client code base would not be trivial.