Bug 24291 - [CVS Core] Compare failed
Summary: [CVS Core] Compare failed
Status: RESOLVED DUPLICATE of bug 17647
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-VCM-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2002-10-01 17:27 EDT by Rick Gaudette CLA
Modified: 2002-10-10 09:39 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rick Gaudette CLA 2002-10-01 17:27:09 EDT
In attempting to compare a java file with the most recent in the repository I
received an "Invalid CVS repository location format:
:ext:simba.colorado.edu/home/cvsroot" message.  I also get the same message when
I try to synchronize this package.  The details from the Unable to Synchronize
dialog say that it is an "Error in host specfication".  This packge has been
under CVS control, along with the rest of packages in the application for a
while so it is not due to adding a new package.

I have observed this happen at what seems like random times in the past so it
does not appear to be an isolated incident.
Comment 1 Rick Gaudette CLA 2002-10-01 18:06:34 EDT
Hi Folks,

A bit more info for you.  The CVS/Root file for the directory in question lost
my  user ID in the server string.  Adding my username back into the file appears
to have fixed the problem.
Comment 2 Adam Kiezun CLA 2002-10-02 04:18:05 EDT
moving to platfrom vcm for comment
Comment 3 Michael Valenta CLA 2002-10-02 08:20:01 EDT
How did the CVS/Root file get changed? Did you run an external CVS tool?
Comment 4 Rick Gaudette CLA 2002-10-03 10:32:21 EDT
I don't think it got changed by any of the cvs command line tools.  I didn't
move any files/directories or the repository or execute any cvs admin commands.
 The only cvs commands I can recall executing where cvs diff and cvs status
since eclipse kept complaining about synchronization issues.
Comment 5 Michael Valenta CLA 2002-10-03 12:08:22 EDT
From looking at the code, I can't see any way that the location 
became ":ext:simba.colorado.edu/home/cvsroot" from inside Eclipse. There should 
be a colon between the host and path and we add the colon or use existing 
location strings in all the places I found. You say this happens at random 
times. Did you even check your project out from scratch since the problems 
started (I'm postulating that there may have been a one time corruption of many 
ROOT files that is surfacing as you perform operations on different folders). 
Also, it may be helpful to know what synchronization issues you are having.
Comment 6 Rick Gaudette CLA 2002-10-03 14:55:19 EDT
Hi Michael,

I checked all the other CVS/Root files and they appear fine
find . -name Root -exec  cat {} \;
:ext:rickg@simba.colorado.edu:/home/cvsroot
:ext:rickg@simba.colorado.edu:/home/cvsroot
:ext:rickg@simba.colorado.edu:/home/cvsroot
:ext:rickg@simba.colorado.edu:/home/cvsroot
:ext:rickg@simba.colorado.edu:/home/cvsroot
:ext:rickg@simba.colorado.edu:/home/cvsroot
:ext:rickg@simba.colorado.edu:/home/cvsroot
:ext:rickg@simba.colorado.edu:/home/cvsroot
:ext:rickg@simba.colorado.edu:/home/cvsroot
:ext:rickg@simba.colorado.edu:/home/cvsroot
:ext:rickg@simba.colorado.edu:/home/cvsroot
:ext:rickg@simba.colorado.edu:/home/cvsroot
:ext:rickg@simba.colorado.edu:/home/cvsroot
:ext:rickg@simba.colorado.edu:/home/cvsroot
:ext:rickg@simba.colorado.edu:/home/cvsroot

As I was putting my response together I just ran into another Sync problem.  The
dialog bx is titled "Erros saving CVS synchonization information to disk. 
Please fix the problems listed below"

The text in the dialog says:
Problems encountered performing commit

Reason:
  Resource is out of sync with the file system: /Etomo/src/etomo/util/CVS/Entries

I had created a new JUnit test in that directory.  Added the file to source
control.  Wrote the unit test.  I received the above dialog when I went to
commit it.  It looks like the commit happened because the CVS tags are updated.
 But eclipse thinks it is still modified ( > symbol next to the source file in
the package explorer).  If I do a "compare with latest from repository" the CVS
compare window appears but here are no apearent differences.

You aksed if I have ckecked out my project from scratch.  Probably not for
several days.
Comment 7 Michael Valenta CLA 2002-10-03 15:37:46 EDT
The "out of sync" exception is usually the result of the Entries file being 
touched/modified by an external tool such as the CVS command line client. If 
you are using the command line client, you should refresh the project you used 
the external CVS tool on before performing any CVS operations. There is an auto-
refresh plugin available from the Platform Core development resources page that 
may help you. Here's the link.

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-core-
home/dev.html

As for the original problem, I'm still at a lose for what happened. We'll keep 
this bug open for a while. If the problem reoccurs, please annotate the bug 
with the additional information. 
Comment 8 Rick Gaudette CLA 2002-10-09 13:20:05 EDT
Hi,

Even after closing the rechecking out the sandbox from the reposistory I am
still getting "out of sync" message after each time I add a new class.  For example:

1. I added a new JTest class to a package
2. Modified another class and went to commit it
3. Elipse complained that the Entries file was out of sync for this package
4. I synchronized the package
5. Now it says there are 2 files that are modified (in addition to the one I
attemped to check in and the new JTest class).  These files were not modified
and a compare shows no differences between the.

A hopefully useful observation is that the time in the Entries file does not
agree with lates mod time in the log tag for files that were unmodofoed but
Eclipse identified as modified.  The Entries file line is:

/CombineParams.java/1.7/Wed Oct  9 00:01:56 2002//

The log tag for that file is:

 * <p> $Log: CombineParams.java,v $
 * <p> Revision 1.7  2002/10/09 00:01:57  rickg
 * <p> added copy constructor
 * <p> convert whitespace strings to zero length string in set methods
 * <p> added patchBoundaries to load and store
 * <p> added revision number

They are one second difference, is this confusing Eclipse?

Rick
Comment 9 Michael Valenta CLA 2002-10-09 13:31:27 EDT
Is your workspace located on a network drive or SAMBA drive?
Comment 10 Rick Gaudette CLA 2002-10-09 15:39:54 EDT
Hi Michael,

Yes, my workspace is on a NFS drive.  The machines are sync'd using rdate every
minute.

Rick
Comment 11 Michael Valenta CLA 2002-10-10 09:10:39 EDT

*** This bug has been marked as a duplicate of 17647 ***
Comment 12 Neil Swingler CLA 2002-10-10 09:21:33 EDT
This is not a dup of bug 17647
Comment 13 Neil Swingler CLA 2002-10-10 09:39:24 EDT
Apologies, I didn't read all the comments. It does sound similar.
However, the problems in bug 17647 related to unix/pc clearcase
interop. The problems here are reported for a unix only environment.