在 git 存储库中编辑大型项目时,Eclipse 会定期冻结
我正在 Eclispe 3.7、PyDev 和 EGit 中开发一个 python 项目。每隔 20 分钟左右,Eclipse 就会冻结,并在右下角显示“Git 存储库刷新作业:(0%)”,一旦该数字增加到 0% 以上,UI 就会再次响应并可以使用,直到下次使用它冻结了。有办法阻止这种情况发生吗?
I am developing a python project in Eclispe 3.7, PyDev, and EGit. Every 20 minutes or so, Eclipse will freeze up, displaying in the bottom-right corner "Git repository refresh Job: (0%)" Once this number increases above 0%, the UI becomes responsive again and can be used until the next time it freezes. Is there a way to stop this from happening?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来像是 Egit 中的一个错误。您能否向 EGit 邮件列表发送一封电子邮件([电子邮件受保护])或在 http://bugs.eclipse.org 并提供尽可能多的信息?
作为第一个解决方法,您可以查看 Window -> 上的选项首选项->团队-> Git 和该页面上的首选项“索引更改时刷新资源”和“仅在工作台处于活动状态时刷新”。您还可以查看标签装饰并使用递归选项。
Sounds like a bug in EGit. Could you write an email to the EGit mailing list ([email protected]) or file a bug report on http://bugs.eclipse.org and provide as many information as possible?
As a first workaround you could look at the options on Window -> Preferences -> Team -> Git and on that page the preference "Refresh resources when index changed" and "Refresh only when workbench is active". You can also look at Label decoration and play with the recurse option.
我在 eGit 和 Eclipse 3.7 上也遇到类似的问题。我建议您看一下这个 Eclipse bug:
Eclipse Bug 336612< /a>
当我的 UI 冻结时,我获取了堆栈跟踪,并且能够将其与 Eclipse bug 中的堆栈跟踪进行匹配。这似乎是 eGit 执行操作所需时间的问题。
I'm having a similar issue with eGit and Eclipse 3.7. I suggest you take a look at this Eclipse bug:
Eclipse Bug 336612
I took a stack trace when my UI was freezing, and was able to match it against the stack trace in the Eclipse bug. It appeared to be an issue with how long eGit is taking to perform an operation.