Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve 'Synchronizing CVS' problem in Eclipse IDE?

I'm trying to make an update of one project of mine, but i don't manage. When I try, I get the error

'Synchronizing CVS' has encountered a problem.
Problems reported while synchronizing CVS Workspace. 0 of 1 resources were synchronized.

Details:
Problems reported while synchronizing CVS Workspace. 0 of 1 resources were synchronized.
  An error occurred synchronizing /<Project name>: The server reported an error while performing the "cvs update" command.
    The server reported an error while performing the "cvs update" command.
      <project name>: The server did not provide any additional information.  

Should I care about this error or not? It looks that everything is fine, but it bothers me.

Thank you for reading

Updated

I discovered that there was one file updated, but that resulted not updated. Another error i was doing it was that i was synchronizing at a project level, in these situations i think it's better to synchronize at folder level and to open CVS Console. To open CVS console press window > open View > console. Then in the console view there is a shell icon it needs to be pressed and then press CVS. Doing like that CVS output it's showed and it helps a bit more.

like image 360
M3rlino Avatar asked May 13 '09 08:05

M3rlino


3 Answers

There are several reasons why this can happen:

  • Some other process changed the file and Eclipse hasn't refreshed the workspace. To check, select the file in question and choose "Refresh" from the context menu. This is probably not your problem but it's a common issue, so I wanted to mention it.

  • There is something wrong on the CVS server (file or directory permissions, failing harddisk, corrupt RAM, etc). You must look into the CVS log file to figure out what might be causing the problem. You should also try to find out which file causes the problem. Check the cvs commit log which files were changed and then update one after the other manually until it breaks.

As a general rule: If something is broken, you should fix it.

like image 181
Aaron Digulla Avatar answered Oct 23 '22 22:10

Aaron Digulla


I was getting the same problem and the reason was that I had a merge conflict on one file and CVS had created the backup versions of the file - (.# files). Once I deleted them, the problem went away. Thought I'd mention this in case someone may run into the same problem.

like image 25
Rhea Avatar answered Oct 23 '22 21:10

Rhea


Had the error shortly after mering. Here was how I managed to solve it for me:

  1. Find the bad file causing it.
  2. Copy the contents by selecting all the text inside eclipse and copying that.
  3. Replace the file with the latest version from the server.
  4. Paste in the copied text.

The override fixes the corruption causing the error and the copying of the text means you not lose the contents.

like image 38
William Jarvis Avatar answered Oct 23 '22 21:10

William Jarvis