#834 Jython2.5b1 Completion not working

closed-fixed
jython (38)
9
2009-01-19
2009-01-15
v3ss
No

As i posted on forum , Jython 2.5b1 not working.

I have tried with Single Jar installation of Jython and full installation , both fails :

Here is the message when trying to auto complete .

AbstractShell: Synchronizing on shells...
AbstractShell: Getting shell related to:Jython id:1
AbstractShell: pythonShell == null
AbstractShell: pythonShell.startIt()
AbstractShell: executing /opt/jdk1.6.0_11/bin/java -Dpython.cachedir=/home/v3ss/pydevcache -Dpython.path=/opt/eclipseapt/plugins/org.python.pydev_1.4.2/PySrc/pydev_sitecustomize:/home/v3ss/jython2.5b1/Lib:/home/v3ss/jython2.5b1/Lib/site-packages:/home/v3ss/jython2.5b1/jython.jar/Lib:/opt/jdk1.6.0_11/jre/lib/resources.jar:/opt/jdk1.6.0_11/jre/lib/rt.jar:/opt/jdk1.6.0_11/jre/lib/jsse.jar:/opt/jdk1.6.0_11/jre/lib/jce.jar:/opt/jdk1.6.0_11/jre/lib/charsets.jar:/opt/jdk1.6.0_11/jre/lib/ext/sunjce_provider.jar:/opt/jdk1.6.0_11/jre/lib/ext/localedata.jar:/opt/jdk1.6.0_11/jre/lib/ext/sunpkcs11.jar:/opt/jdk1.6.0_11/jre/lib/ext/dnsns.jar -classpath /home/v3ss/jython2.5b1/jython.jar:/opt/eclipseapt/plugins/org.python.pydev_1.4.2/PySrc/pydev_sitecustomize:/home/v3ss/jython2.5b1/Lib:/home/v3ss/jython2.5b1/Lib/site-packages:/home/v3ss/jython2.5b1/jython.jar/Lib:/opt/jdk1.6.0_11/jre/lib/resources.jar:/opt/jdk1.6.0_11/jre/lib/rt.jar:/opt/jdk1.6.0_11/jre/lib/jsse.jar:/opt/jdk1.6.0_11/jre/lib/jce.jar:/opt/jdk1.6.0_11/jre/lib/charsets.jar:/opt/jdk1.6.0_11/jre/lib/ext/sunjce_provider.jar:/opt/jdk1.6.0_11/jre/lib/ext/localedata.jar:/opt/jdk1.6.0_11/jre/lib/ext/sunpkcs11.jar:/opt/jdk1.6.0_11/jre/lib/ext/dnsns.jar org.python.util.jython /opt/eclipseapt/plugins/org.python.pydev_1.4.2/PySrc/pycompletionserver.py 54811 57504
AbstractShell: afterCreateProcess
AbstractShell: connecting...
AbstractShell: connecting attept...1
AbstractShell: connecting attept...2
AbstractShell: connecting attept...3
AbstractShell: connecting attept...4
AbstractShell: connecting attept...5
AbstractShell: connecting attept...6
AbstractShell: connecting attept...7
AbstractShell: connecting attept...8
AbstractShell: connecting attept...9
AbstractShell: connecting attept...10
AbstractShell: connecting attept...11
AbstractShell: connecting attept...12
AbstractShell: connecting attept...13
AbstractShell: connecting attept...14
AbstractShell: connecting attept...15
AbstractShell: connecting attept...16
AbstractShell: connecting attept...17
AbstractShell: connecting attept...18
AbstractShell: connecting attept...19
AbstractShell: connecting attept...20
AbstractShell: NOT connected
AbstractShell: Error connecting to python process ( /opt/jdk1.6.0_11/bin/java -Dpython.cachedir=/home/v3ss/pydevcache -Dpython.path=/opt/eclipseapt/plugins/org.python.pydev_1.4.2/PySrc/pydev_sitecustomize:/home/v3ss/jython2.5b1/Lib:/home/v3ss/jython2.5b1/Lib/site-packages:/home/v3ss/jython2.5b1/jython.jar/Lib:/opt/jdk1.6.0_11/jre/lib/resources.jar:/opt/jdk1.6.0_11/jre/lib/rt.jar:/opt/jdk1.6.0_11/jre/lib/jsse.jar:/opt/jdk1.6.0_11/jre/lib/jce.jar:/opt/jdk1.6.0_11/jre/lib/charsets.jar:/opt/jdk1.6.0_11/jre/lib/ext/sunjce_provider.jar:/opt/jdk1.6.0_11/jre/lib/ext/localedata.jar:/opt/jdk1.6.0_11/jre/lib/ext/sunpkcs11.jar:/opt/jdk1.6.0_11/jre/lib/ext/dnsns.jar -classpath /home/v3ss/jython2.5b1/jython.jar:/opt/eclipseapt/plugins/org.python.pydev_1.4.2/PySrc/pydev_sitecustomize:/home/v3ss/jython2.5b1/Lib:/home/v3ss/jython2.5b1/Lib/site-packages:/home/v3ss/jython2.5b1/jython.jar/Lib:/opt/jdk1.6.0_11/jre/lib/resources.jar:/opt/jdk1.6.0_11/jre/lib/rt.jar:/opt/jdk1.6.0_11/jre/lib/jsse.jar:/opt/jdk1.6.0_11/jre/lib/jce.jar:/opt/jdk1.6.0_11/jre/lib/charsets.jar:/opt/jdk1.6.0_11/jre/lib/ext/sunjce_provider.jar:/opt/jdk1.6.0_11/jre/lib/ext/localedata.jar:/opt/jdk1.6.0_11/jre/lib/ext/sunpkcs11.jar:/opt/jdk1.6.0_11/jre/lib/ext/dnsns.jar org.python.util.jython /opt/eclipseapt/plugins/org.python.pydev_1.4.2/PySrc/pycompletionserver.py 54811 57504) - the process in NOT ALIVE anymore (output=255) - the output of the process is: Std output:

Err output:
error importing site
Traceback (most recent call last):
File "/home/v3ss/jython2.5b1/jython.jar/Lib/site.py", line 418, in <module>
File "/home/v3ss/jython2.5b1/jython.jar/Lib/site.py", line 411, in main
File "/home/v3ss/jython2.5b1/jython.jar/Lib/site.py", line 392, in execsitecustomize
File "/home/v3ss/jython2.5b1/jython.jar/Lib/site.py", line 392, in execsitecustomize
KeyError: 'sitecustomize'

Below is the stacktrace:

at org.python.pydev.editor.codecompletion.shell.AbstractShell.startIt(AbstractShell.java:445)
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.codecompletion.PyCodeCompletion.lazyStartShell(PyCodeCompletion.java:325)
at org.python.pydev.editor.codecompletion.PyCodeCompletion.getCodeCompletionProposals(PyCodeCompletion.java:103)
at org.python.pydev.editor.codecompletion.PythonCompletionProcessor.getPythonProposals(PythonCompletionProcessor.java:217)
at org.python.pydev.editor.codecompletion.PythonCompletionProcessor.computeCompletionProposals(PythonCompletionProcessor.java:148)
at org.python.pydev.editor.simpleassist.SimpleAssistProcessor.computeCompletionProposals(SimpleAssistProcessor.java:167)
at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1836)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:553)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:550)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:485)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:479)
at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1664)
at org.python.pydev.editor.codecompletion.PyContentAssistant.showPossibleCompletions(PyContentAssistant.java:67)
at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:807)
at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1506)
at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:471)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:822)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:880)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:569)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:511)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:126)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1436)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1157)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1182)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1167)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1194)
at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:698)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2761)
at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:702)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1543)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4502)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4099)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5783)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1177)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1541)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3031)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

But I have tried running This way :
/home/v3ss/jython2.5b1/jython /opt/eclipseapt/plugins/org.python.pydev_1.4.2/PySrc/pycompletionserver.py 36935 34198

and the completion server started :

jycompletionserver will start
jycompletionserver creating socket
jycompletionserver waiting for connection

Discussion

  • v3ss

    v3ss - 2009-01-15
    • priority: 5 --> 9
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-01-19
    • status: open --> closed-fixed
     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-01-19

    This happened because of a change in the Jython behaviour, so, the custom pydev sitecustomize would enter in loop because the sitecustomize folder would be added to 2 places (pythonpath and __classpath__ and __jyclasspath__).

    So, the __classpath__ and __jyclasspath__ are removed altogether in the pydev sitecustomize.py

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2009-01-19

    Fixed for 1.4.3 (svn: 2490)

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks