本文介绍了为什么Eclipse需要传入网络连接(使用OS X)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道为什么Eclipse要求进入的网络连接?我搜索了一下,看到使用PyDev提到代码完成,但是我禁用了PyDev中的代码完成,重新启动,并且仍然提示输入网络连接。

解决方案

PyDev产生一个shell并连接到它以请求有关内置模块的信息(除了使用它来调试进程)。



即:shell是产生于



并用于:





所以,这可能在PyDev的多个地方被触发(每当代码完成,代码分析或索引完成时,都可能被请求,并且任何内置模块的请求都完成了,即:强制内建中的任何内容,如)。

$ b因此,为了正常工作,PyDev真的需要连接工作(否则完成和代码分析可能无法正常工作),这意味着您必须在防火墙中清除它(至少对于本地连接 - 仅当您要使用远程调试器时才需要远程连接)。


Does anyone know why Eclipse is asking for incoming network connections? I searched around and saw mentions of Code Completion with PyDev, but I disabled code completion in PyDev, restarted, and was still prompted for incoming network connections.

解决方案

PyDev spawns a shell and connects to it to request information on builtin modules (besides using it to debug a process).

I.e.: The shell is spawn at https://github.com/fabioz/Pydev/blob/master/plugins/org.python.pydev/src_completions/org/python/pydev/editor/codecompletion/shell/PythonShell.java

and used in:

https://github.com/fabioz/Pydev/blob/master/plugins/org.python.pydev/src_completions/org/python/pydev/editor/codecompletion/revisited/modules/CompiledModule.java

So, this may be triggered at multiple places in PyDev (whenever a code completion, code analysis or indexing is done it may be requested and a request for any builtin module is done -- i.e.: anything in forced builtins as explained in http://www.pydev.org/manual_101_interpreter.html).

So, in order to function properly, PyDev really needs that connection to work (otherwise completions and code analysis may not work properly), which means you really have to clear it in your firewall (at least for local connections -- remote connections are only needed if you're going to use the remote debugger).

这篇关于为什么Eclipse需要传入网络连接(使用OS X)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-27 19:41