Menu ▾ ▴

jython 2.5b1 Froze eclipse on autocomplete

v3ss
2009-01-10
2013-03-15
  • v3ss

    v3ss - 2009-01-10

    Hi Fabio;

    After this new 2.5b1 Release Jython is working! it properly looks for all the libs but when i try to do any completion, it make elipse froze and unresponsive . After 15 minute of waiting i have to quit.

    Is there background too much processing that i should wait or it just hang eclipse?

    keep up good work! I wanna see jython working on pydev! this new jython will bring a lot of oppurtunity!

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-01-11

      There's a bug (that's been fixed in the latest svn) that is related to a halting condition in the code-completion.

      It should be released in 2-3 days...

      Cheers,

      Fabio

       
    • v3ss

      v3ss - 2009-01-14

      Dear Fabio

      Jython still not working on Pydev 1.4.2

      When i tried to import and tried auto complete it just freeze eclipse.

      jython version is 2.5b1 , is that working for you ? Only me having that problem?

      Also When creating new project , it no longer ask "Grammer Version , with a list box (which have python 2.5,2.6,3.0) , but old syle 2.4 , 2.5 , jython 2.1.

      is that intended change?

      Regards,

      Phyo.

       
    • v3ss

      v3ss - 2009-01-14

      I have removed all old versions of pydev and now the problem of showing old pydev project creation is fixed

      But Still , On jython , auto completion freezes , I changed "connect to shell" second to 20s , that fixed me from freezing BUT returns no AutoCompletion / context assist result ..

      I tried to go to console but :

      import sys; print '%s %s' % (sys.executable or sys.platform, sys.version)
      Failed to read servers response: Connection refused

      Both Python and Jython consoles not working ...........

      Any help will be greatly appreciated.

       
    • v3ss

      v3ss - 2009-01-14

      Here , when i run eclipse in console and , try ctrl + space , i got this . i think this will help.

      Is 2.5.b1 is tested?
                                                          
      .........
      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:/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:/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 51212 37682)  - 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/Lib/site.py", line 418, in <module>
          main()
        File "/home/v3ss/jython2.5b1/Lib/site.py", line 411, in main
          execsitecustomize()
        File "/home/v3ss/jython2.5b1/Lib/site.py", line 392, in execsitecustomize
          import sitecustomize
        File "/home/v3ss/jython2.5b1/Lib/site.py", line 392, in execsitecustomize
          import sitecustomize
      KeyError: 'sitecustomize'

      Error received...
      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:/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:/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 51212 37682)  - the process in NOT ALIVE anymore (output=255) -  the output of the process is: Std output:

       
    • v3ss

      v3ss - 2009-01-14

      here is more ...

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

              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)

       
    • v3ss

      v3ss - 2009-01-14

      Fromm the error it seems that The completion shell cannot startserver cannot start and the completor tries to connect it....

      It fails when it try to start completionserver by doing :
      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:/opt/eclipseapt/plugins/org.python.pydev_1.4.2/PySrc:__classpath__:__pyclasspath__:/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:/opt/eclipseapt/plugins/org.python.pydev_1.4.2/PySrc:__classpath__:__pyclasspath__:/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 36935 34198

      BUT i tried to start by calling this :
      v3ss@v3ssBox-2 /opt/eclipseapt/plugins/org.python.pydev_1.4.2/PySrc $ /opt/jython2.5b1/jython pycompletionserver.py 36935 34198
      jycompletionserver will start
      jycompletionserver creating socket
      jycompletionserver waiting for connection
                                                             

      And works fine .. Why ?

       
    • v3ss

      v3ss - 2009-01-14

      Now it worked! i installed Jython as Standalone Jar file.and it worked!!!

      But as i install Jython as standalone Jar,. Site Packages will not work ? How can i make use of site-packages? I tried easy_install and it saids pkg_resource dose not exist..

      I think it will be good if pydev call directly the shell /bat file provied on Jython2.5b1 standard installation  , it runs pycompletionserver.py .

       
    • v3ss

      v3ss - 2009-01-15

      I was wrong , on above messaged , i installed Jython2.5b0 instead of b1 and it worked ..

      when i tried again with 2.5b1 still not working..

      So thats it? Pydev support up to 2.5b0...

       
      • Fabio Zadrozny

        Fabio Zadrozny - 2009-01-15

        Probably a Jython bug... Please report that as a bug (in Pydev). I have to see it with a bit more details what exactly changed in Jython fro b0 to b1.

        Cheers,

        Fabio

         
    • v3ss

      v3ss - 2009-01-15

      I was wrong , on above messaged , i installed Jython2.5b0 instead of b1 and it worked ..

      when i tried again with 2.5b1 still not working..

      So thats it? Pydev support up to 2.5b0...