(再次尚)的Eclipse的PyDev完成挂起 [英] Eclipse PyDev completion hangs (yet again)

查看:144
本文介绍了(再次尚)的Eclipse的PyDev完成挂起的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Eclipse中的PyDev作为我的Python编辑器。它在功能设置方面的罚款。一切工作正常,除了一个很讨厌的事:

I'm using PyDev in Eclipse as my Python editor. It's fine in terms of feature set. Everything works fine except for one very annoying thing:

code完成自身工作的快。当我preSS Alt +空格键,窗口弹出几乎瞬间,所有的选项都在那里。顶部的选项被选中。 然后是麻烦。的详细描述将不会出现,直到约5-10秒。这段时间CPU工作在最大负荷和接口没有响应。所有的处理器由Eclipse Java进程(衍生的Python的过程似乎空闲)所消耗。然后,一个黄色窗口弹出,和它包含只是一个Python $所选的功能/变量的C $℃。连续的所有细节都即时显示。当我(通过接受的选项之一,并再次要求完成为例)关闭完成窗口的程序重复。这驱使我疯了。

Code completion itself works fast. When I press Alt+Space, the window pops out almost instantly and all the options are there. The option at the top is selected. Then comes the trouble. The detailed description won't appear until about 5-10 seconds. All this time CPU is working at maximum load and the interface is not responding. All the processor is consumed by the Eclipse Java process (the spawned Python process seems idle). Then a yellow window pops up, and all it contains is just a Python code of a selected function/variable. All consecutive details are displayed instantly. The procedure repeats when I close the completion window (for example by accepting one of the options and asking for completion again). This drives me crazy.

我试过到目前为止:


  • 创建一个全新的工作区,

  • 从头创建一个Eclipse /项目的PyDev,

  • 调整JVM以确保它的内存加载,

  • 确保正确的JVM选择(最新的Oracle JVM提供)

  • 确保Python的过程中与Java实例(我读到与可能出现的问题,但它似乎不是问题)自由通信。

  • 确保所有已安装的插件都是最新的。

我使用的版本是Eclipse的太阳神,因为我最后一次检查特定扩展名尚未移植到最新版本。

The version I use is Eclipse Helios, because the last time I checked certain extensions weren't yet ported to the latest one.

有没有人观察到类似的问题?是任何人都能够得到解决呢?如何调试它,并可能提交一个明智的bug报告总体思路?其他的事情应该查一下。

Has anyone observed a similar issue? Was anyone able to get around it? General ideas on how to debug it and file a sensible bug report possibly? Other things worth checking for.

什么解决办法完全地比转向完成了那么激烈?

Any workaround less drastic than turning completion off completly?

谢谢!

编辑:

我也注意到,在HTML / CSS编辑器类似弹出窗口的问题。它看起来有点类似(黄色窗口,具有一定的文本中),也经历了千百年来显示。真的不知道,如果这是相关的,但可能是。

I've also noticed a problem with a similar popup window in HTML/CSS editor. It looked somewhat similar (a yellow window, with some text inside) and it also took ages to display. Don't really know if that is related, but could be.

修改(2):

好吧,不,我已经从开始的PyDev用新鲜安装最新的Eclipse靛蓝,没有任何额外的插件分开,问题依然。好像我将不得不寻找一个新的IDE。

Ok, No I've started with a fresh install of the newest Eclipse Indigo, without any additional plugins apart from PyDev and the issue remains. Seems like I'll have to look for a new IDE.

推荐答案

您正在使用什么版本的Java?

What version of Java are you using?

如果您使用的是Windows 7,Java的(我认为6+)的后续版本将默认到IPv6。
这可能是导致该问题像Python也许想的IPv4。

If you are on Windows 7, later versions of Java (I think 6+) will default to IPv6. This is probably causing the problem as Python maybe wanting IPv4.

无论如何,因为我有这个问题,我试图禁用

Anyway, since I had this problem I tried disabling


  • pylint的

  • code分析

但它仍挂。

帕尔的关于IPv4的利用的回答引发了我的记忆讲述了我所用preferring的IPv4。

Pal's answer about "ipv4 utilization" triggered my memory about another problem I had solved by "preferring" IPv4.

请参阅 http://docs.oracle.com/ JavaSE的/ 1.4.2 /文档/引导/ NET / ipv6_guide /

您想要做的是编辑您的eclipse.ini并在vmargs部分添加-Djava.net。preferIPv4Stack =真正的

What you want to do is to edit your eclipse.ini and add "-Djava.net.preferIPv4Stack=true" in the vmargs section

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
...
-vmargs
-...
-Djava.net.preferIPv4Stack=true
...

我不再获得挂起。

I no longer get hangs.

这篇关于(再次尚)的Eclipse的PyDev完成挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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