Refactoring does not work

agerled
2005-01-21
2013-03-15
  • agerled

    agerled - 2005-01-21

    Versions
    Pydev 0.8.0
    Eclipse 3.0.0

    Rename and extract method does not work. Have not tried the others.

    Excerpt below from unnamed file in .metadata catalog of the workspace.

    Can someone help ?

    !ENTRY org.python.pydev 4 4 jan 21, 2005 12:48:09.729
    !MESSAGE Attempt: 20 of 20 failed, trying again...
    !STACK 0
    java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(Unknown Source)
        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at java.net.Socket.<init>(Unknown Source)
        at org.python.pydev.editor.codecompletion.PythonShell.startIt(PythonShell.java:196)
        at org.python.pydev.editor.codecompletion.PythonShell.startIt(PythonShell.java:249)
        at org.python.pydev.editor.codecompletion.PythonShell.restartShell(PythonShell.java:516)
        at org.python.pydev.editor.refactoring.PyRefactoring.makeAction(PyRefactoring.java:87)
        at org.python.pydev.editor.refactoring.PyRefactoring.rename(PyRefactoring.java:139)
        at org.python.pydev.editor.actions.refactoring.PyRename.perform(PyRename.java:32)
        at org.python.pydev.editor.actions.refactoring.PyRefactorAction$Operation.execute(PyRefactorAction.java:66)
        at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:91)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
        at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:105)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)

    !ENTRY org.eclipse.ui 4 4 jan 21, 2005 12:48:10.229
    !MESSAGE Unhandled event loop exception

    !ENTRY org.eclipse.ui 4 0 jan 21, 2005 12:48:10.229
    !MESSAGE java.lang.NullPointerException
    !STACK 0
    java.lang.NullPointerException
        at org.python.pydev.editor.actions.refactoring.PyRefactorAction.run(PyRefactorAction.java:244)
        at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:276)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
        at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
        at org.eclipse.core.launcher.Main.run(Main.java:644)
        at org.eclipse.core.launcher.Main.main(Main.java:628)

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2005-01-24

      It seems that you are not being able to connect to the python shell process for the refactoring. You can try to raise the number of attempts to connect to it .

      (go to window->preferences->pydev->code completion and raise the number of attempts - it takes longer on some machines than on others)

       

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks