Eclipse 在显示工具提示消息之前挂起 3-4 秒

发布于 2024-11-30 16:39:00 字数 1205 浏览 2 评论 0原文

我疯狂地在互联网上搜索,但是“WTP freeze”或“Eclipse freeze”产生了如此多不同的结果,以至于几乎不可能找到正确的结果。我有以下问题。

在 HTML 或 CSS 编辑器中,当我不小心将鼠标悬停在属性值上时,Eclipse 在 CPU 负载为 100% 的情况下挂起 3-4 秒,然后生成包含有关标签及其属性的一些信息的工具提示消息。我不需要那些提示。天哪,如果语法着色可以阻止我挂起的话,我什至不需要语法着色。

我尝试禁用所有自动完成功能,所有看起来相关的功能,但这并没有改变一点。我寻找一个设置来完全禁用 WTP 而无需卸载它,但是再次 - 没有运气。

我使用 Eclipse Helios。我有所有最新的插件。如果需要的话,我将提供任何附加信息。

有人遇到过类似的问题并且能够解决吗?这真的让我发疯。

赏金

任何找到能够使弹出窗口相当快的方法或解决方法的人都将获得赏金。我在 Eclipse 中的很多地方都遇到过这个问题 - 例如 PyDev:

Eclipse PyDev 完成挂起(再次)

我有一种强烈的程序感觉,这是弹出窗口的普遍问题,而不是 WTP/PyDev 的问题。以下是我已经采取的措施:

  • 从头开始​​安装最新的 Eclipse
  • 在全新安装中安装了两个有问题的插件 (WTP/PyDev)
  • 确保 Eclipse 有足够的内存
  • 确保选择了适当的 JVM

我的设置是 Ubuntu Natty,Oracle Java 1.6 - 存储库中的最新版本

进一步的发现

好的,我刚刚发现 99% 的冻结时间都花在了调用中org.eclipse.swt.internal.gtk.OS._gtk_widget_realize 这似乎不对。有什么线索吗?

我鼓励所有经历过此问题的人为此错误投票 在 Eclipse bug 跟踪器上。

I've searched the Internet like crazy, however "WTP freeze" or "Eclipse freeze" yields so many different results that it's virtually impossible to find the right one. I have the following issue.

In a HTML or CSS editor when I accidentally hover my mouse over an attribute value, Eclipse hangs for 3-4 seconds with CPU at 100% load before producing a tooltip message with some info on the tag and its attribute. I don't need those tips. Hell, I don't even need syntax coloring if that would prevent me from this hang.

I tried disabling all the autocomplete features, everything that seemed related, however that didn't change a bit. I looked for a setting to disable WTP completely without uninstalling it, however again - no luck.

I use Eclipse Helios. I have all the latest plugins. I'll supply any additional info, if that is needed.

Has anybody had a similar issue and was able to resolve it? This is really driving me crazy.

BOUNTY

The bounty will go to anyone who finds a way or a workaround that will make pop-up windows reasonably fast. I've had this issue in Eclipse in numerous places - like PyDev for example:

Eclipse PyDev completion hangs (yet again)

I have a strong programistic feeling that this is a general issue with pop ups and not so much with WTP/PyDev. Here are measures that I've already taken:

  • Installed the latest Eclipse from scratch
  • Installed the two problematic plugins on this clean installation (WTP/PyDev)
  • Made sure that Eclipse has more than enough memory
  • Made sure the appropriate JVM is chosen

My setup is Ubuntu Natty, Oracle Java 1.6 - latest version in the repos

Further findings

Ok, I've just found out that 99% of the time of the freeze is spent inside a call to org.eclipse.swt.internal.gtk.OS._gtk_widget_realize which doesn't seem right. Any clues?

I'd encourage everyone who has experienced this issue to vote for this bug on the Eclipse bug tracker.

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

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

发布评论

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

评论(7

日暮斜阳 2024-12-07 16:39:00

您可以尝试关闭所有验证器:窗口>首选项>验证>暂停所有验证器。

另一个选项是窗口>首选项>爪哇>编辑>悬停,关闭“组合悬停”。

You could try switching off all the Validators: Window > Preferences > Validation > Suspend all validators.

Another option is Window > Preferences > Java > Editor > Hovers, turn off 'Combined Hover'.

小姐丶请自重 2024-12-07 16:39:00

哇,终于解决了,感谢其中之一的建议。

可以在 Window > 下禁用悬停消息首选项>一般>编辑>结构化文本编辑器>悬停选项卡>组合悬停。

Eclipse 有时可能是一个迷宫。

Wow, finally nailed it, thanks to one of the suggestions.

Hover messages can be disabled under Window > Preferences > General > Editors > Structured Text Editors > Hovers tab > Combined Hover.

Eclipse can be a labyrinth sometimes.

王权女流氓 2024-12-07 16:39:00

我遇到了类似的问题,Eclipse 会在工具提示上挂起几秒钟,并且经常崩溃。即使我什么都不做,它也会崩溃。不过,卸载并重新安装它可以解决这个问题,所以我建议您尝试一下(如果您还没有尝试过)。

I had a similar issue where Eclipse would hang on tooltips for several seconds, and oftentimes crash. It got to the point where it would just plain crash even if I didn't do anyhting. Uninstalling it and reinstalling it got rid of the problem, though, so I suggest giving that a try if you haven't already.

小瓶盖 2024-12-07 16:39:00

您的内存状况如何?你有足够的吗?

当我们接近内存限制时,我们遇到了许多 Eclipse 问题和奇怪的问题。目前普遍的想法是,交换由于时间问题而导致问题。

How is your memory profile? Do you have more than enough?

We have run into many problems with Eclipse and wierd issues as we approached our memory limits. The current prevailing thought is that the swapping causes problems due to timing issues.

も星光 2024-12-07 16:39:00

Eclipse 有时会根据请求下载 javadoc,您看到的挂起可能是下载 javadoc 的特定部分所需的延迟时间。

Eclipse sometimes downloads the the javadoc as requested, the hang your seeing may be the lag time it takes for that particular part of the javadoc to download.

无尽的现实 2024-12-07 16:39:00

所选答案在 Eclipse (Kepler) 和 PyDev 中对我不起作用。

对我来说,以下方法效果最好:

应在 Pydev/Editor/Hover 下的首选项中禁用 Show Docstrings

The selected answer didn't work for me in Eclipse (Kepler) with PyDev.

For me the following worked best:

Show Docstrings should be disabled in preferences under Pydev/Editor/Hover.

请帮我爱他 2024-12-07 16:39:00

这看起来是 gtk 特定的问题。除了您提到的错误之外,还存在其他错误,例如 https:// bugs.eclipse.org/bugs/show_bug.cgi?id=345093

This looks to be a gtk specific issue. In addition to the bug you mentioned there are other bugs opened as well e.g. https://bugs.eclipse.org/bugs/show_bug.cgi?id=345093.

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