eclipse:“重新编制存储库工作空间”或“用于储存库工作空间的计算Git状态” [英] eclipse: "re-indexing repository workspace" or "Computing Git status for repository workspace"

查看:220
本文介绍了eclipse:“重新编制存储库工作空间”或“用于储存库工作空间的计算Git状态”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用eclipse Juno,昨天我注意到我的电脑变得非常热。我检查了CPU使用率,看它是100%。 Eclipse是罪魁祸首,忙于重新编制仓库工作区。当半小时后,它还没有完成,我的机器几乎融化了,我搜索并发现了类似的问题: .com / questions / 16313851>重新编制版本库循环 - 不是Maven



Eclipse挂起重新编制索引(全部)存储库{用户名}



事情是我没有使用git。并且由于它将要吃掉我所有的CPU,所以我不想吃这些东西。我删除了〜/ git,删除了一个使用git的项目,在〜/ .git下检查了任何文件,从eclipse插件中删除了egit和jgit,它仍然在发生。



我可以每次都停止这个过程,但现在看来无法构建工作区。



所以我决定升级到开普勒,现在我有一个类似的问题与另一条消息:

计算存储库工作空间的Git状态



它再次占用我的CPU,并威胁要放火给我的桌子。



我甚至没有任何打开的git项目。



我该如何阻止这种愚蠢的事情?每当我停止这个过程,但是如果我然后尝试清理重建或打开一个项目,它就会重新启动。 解决方案

这是EGit中的一个旧bug,它会自动在您的主目录中找到 .git ,然后扫描主目录中的所有文件。它已在更新版本的EGit中修复。



但是,即使升级后,您仍可能已配置存储库。执行以下操作:


  1. 打开 Git存储库视图
  2. 查找导致问题的存储库
  3. 在上下文菜单中,选择从视图中删除存储库

然后重新启动Eclipse。


I am using eclipse Juno, and yesterday I noticed my computer was getting very hot. I checked the CPU usage to see it was at 100%. Eclipse was the culprit, busy "re-indexing repository workspace". When after half an hour it hadn't finished and my machine was nearly melting, I searched and found these similar problems:

Re-indexing repository loop - not Maven

Eclipse hangs on "Re-indexing (fully) repository {username}"

Thing is I'm not using git. And by the sounds of things I don't want to since it's going to eat all my CPU. I removed ~/git, deleted a project I have which uses git, checked for any files under ~/.git, removed egit and jgit from eclipse plugins, and it's still happening.

I can stop the process each time, but now it seems unable to build the workspace.

So I decided to upgrade to Kepler, and now I have a similar problem with a different message:

"Computing Git status for repository workspace"

Again it's eating 100% of my CPU and threatening to set fire to my desk.

And I don't even have any open git projects.

How do I stop this stupid thing? Every time I stop the process, but if I then try to clean rebuild or open a project, it starts up again.

解决方案

This was an old bug in EGit where it automatically found the .git in your home directory and then scanned all the files in the home directory. It has been fixed in newer versions of EGit.

But you may still have the repository configured, even after you upgraded. Do the following:

  1. Open the Git Repositories view
  2. Find the repository that causes the problem
  3. In the context menu, select Remove Repository from View

Then restart Eclipse.

这篇关于eclipse:“重新编制存储库工作空间”或“用于储存库工作空间的计算Git状态”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆