如何解决“同步 CVS”问题 Eclipse IDE 出现问题?

发布于 2024-07-19 07:05:28 字数 876 浏览 3 评论 0原文

我正在尝试更新我的一个项目,但我无法做到。 当我尝试时,出现错误

'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.  

我是否应该关心此错误? 看起来一切都很好,但我却很烦恼。

感谢您阅读

已更新

我发现有一个文件已更新,但结果没有更新。 我这样做的另一个错误是我在项目级别同步,在这些情况下,我认为最好在文件夹级别同步并打开 CVS 控制台。 要打开 CVS 控制台,请按窗口 > 打开视图> 安慰。 然后在控制台视图中有一个 shell 图标,需要按下它,然后按下 CVS。 像显示的 CVS 输出一样进行操作,会更有帮助。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

总攻大人 2024-07-26 07:05:29

Mering 后不久就出现错误。 以下是我设法解决该问题的方法:

  1. 找到导致该问题的错误文件。
  2. 通过选择 eclipse 中的所有文本并复制来复制内容。
  3. 将文件替换为服务器上的最新版本。
  4. 粘贴复制的文本。

覆盖修复了导致错误的损坏,并且复制文本意味着您不会丢失内容。

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.

清浅ˋ旧时光 2024-07-26 07:05:29

转到Windows>> 偏好>> 网络连接,尝试更换活动提供商 - 手动、直接和手动 本国的。 我也面临同样的问题,并且能够通过将代理绕过 IP 添加到 cvs 存储库来解决它。

Goto Windows >> Preference >> Network Connections, try with changing active providers - Manual, Direct & Native. I too face the same issue and able to resolve it by adding proxy by pass IP to cvs repos.

你又不是我 2024-07-26 07:05:29

您是否更改了 Eclipse 外部的资源/类并且未更新 Eclipse 内部的插件?
当您调用同步时,Eclipse 将显示一条错误消息。

Did you change a resource/class outside of eclipse and dont updated the plugin inside of eclipse?
When you than call synchronize, eclipse will show an error message.

呆头 2024-07-26 07:05:29

有同样的问题,当我用问题/CVS/Entries删除我的工作区/项目/WebContent/文件夹的内容时解决了它,然后我在eclipse中刷新了我的文件并且它工作了。
我猜那里的东西已经损坏了。

Had the same problem, and solved it when i deleted the content of my workspace/project/WebContent/folder with problem/CVS/Entries, then i refreshed my files in eclipse and it worked.
I guess something there was corrupted.

梦幻的心爱 2024-07-26 07:05:29

除了删除以 .# 开头的文件之外,我还必须“覆盖并更新”该文件,以便 Eclipse CVS 知道它处于什么状态。

如果更新代码时发生这种情况,可以通过首先同步工作区来避免此错误并解决任何合并问题。 我意识到在切换分支时这不是一个选择。

我学会了使用以“.#”开头的文件作为清理的地方。 如果我删除了这些文件,我就会逐个文件夹进行同步。

然后,清理旧的 .# 文件,以免以后产生误导。

在 DOS 中,“del /s .#*”

In addition to removing files that started with .#, I also had to "Overwrite and Update" the file so that Eclipse CVS knew what state it was in.

If this happens when updating code, this error could be avoided by synchronizing the workspace first and addressing any merge issues. I realize that this is not an option when switching branches.

I've learned to use the files starting with '.#' as the places to clean up. If I've deleted those files, I then go and synchronize folder by folder.

Afterwards, clean up the old .# files so they are not misleading later.

In DOS, "del /s .#*"

失退 2024-07-26 07:05:28

发生这种情况的原因有多种:

  • 某些其他进程更改了文件,并且 Eclipse 尚未刷新工作区。 要进行检查,请选择有问题的文件,然后从上下文菜单中选择“刷新”。 这可能不是您的问题,但这是一个常见问题,所以我想提一下。

  • CVS 服务器出现问题(文件或目录权限、硬盘故障、RAM 损坏等)。 您必须查看 CVS 日志文件以找出可能导致问题的原因。 您还应该尝试找出导致问题的文件。 检查 cvs 提交日志,哪些文件已更改,然后手动更新一个又一个,直至损坏。

一般来说:如果有东西坏了,你应该修复它。

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.

浅笑轻吟梦一曲 2024-07-26 07:05:28

我遇到了同样的问题,原因是我在一个文件上发生了合并冲突,并且 CVS 创建了该文件的备份版本 - (.# 文件)。 一旦我删除它们,问题就消失了。 我想我会提到这一点,以防有人遇到同样的问题。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文