Menu

#870 Broken code completion for builtins (with zip installl)

1.4.4
open
9
2009-03-07
2009-03-03
No

Code completion is broken when installing from a ZIP archive published at http://www.fabioz.com/pydev/zips/ Supposedly this is because of change in distribution format.

I opened some random non-trivial source that has couple of imports. My console show output like this:

Error creating python process - exited before creating sockets -
exitValue = (1)(/usr/bin/python2.4
/tmp/eclipse-config/org.eclipse.osgi/bundles/650/1/.cp/PySrc/pycompletionserver.py
56467 44314) - os:Linux
Error creating python process - exited before creating sockets -
exitValue = (1)(/usr/bin/python2.4
/tmp/eclipse-config/org.eclipse.osgi/bundles/650/1/.cp/PySrc/pycompletionserver.py
56467 44314) - os:Linux
org.eclipse.core.runtime.CoreException: Error creating python process
- exited before creating sockets - exitValue = (1)(/usr/bin/python2.4
/tmp/eclipse-config/org.eclipse.osgi/bundles/650/1/.cp/PySrc/pycompletionserver.py
56467 44314) - os:Linux
at org.python.pydev.plugin.PydevPlugin.log(PydevPlugin.java:315)
at org.python.pydev.editor.codecompletion.shell.AbstractShell.startIt(AbstractShell.java:368)
at org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(AbstractShell.java:237)
at org.python.pydev.editor.codecompletion.shell.AbstractShell.getServerShell(AbstractShell.java:190)
at org.python.pydev.editor.PyEdit$2.run(PyEdit.java:512)
Caused by: java.lang.RuntimeException: Error creating python process -
exited before creating sockets - exitValue = (1)(/usr/bin/python2.4
/tmp/eclipse-config/org.eclipse.osgi/bundles/650/1/.cp/PySrc/pycompletionserver.py
56467 44314) - os:Linux
at org.python.pydev.plugin.PydevPlugin.log(PydevPlugin.java:314)
... 4 more

And the directory contains only

$ ls /tmp/eclipse-config/org.eclipse.osgi/bundles/650/1/.cp/PySrc/
interpreterInfo.py pycompletionserver.py

IMO it means that pycompletionserver.py script is executed but fails very quickly is it trries to import some other modules. These modules are in the same folder of plugin but they are not extracted into temporary location by OSGi framework.

Discussion

  • Fabio Zadrozny

    Fabio Zadrozny - 2009-03-04

    Yes, this happened when I was doing the update to the P2, and the zip files are now actually containing the update site and not the plugins as they should be installed.

    I'll change that for the next release.

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-03-04
    • priority: 5 --> 9
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-03-07
    • summary: Broken code completion for builtins --> Broken code completion for builtins (with zip installl)
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.