Refactoring error

2004-11-23
2013-03-15
  • Michael Beaulieu

    When trying to rename a method I get the dialog asking for the new method name and then I get an error message:

    Looking at the event log in Eclipse I see the details:
    Error Nov 23, 2004 09:40:36.352

    Traceback (most recent call last):
      File "c:\Documents and Settings\Michael\My Projects\eclipse\plugins\org.python.pydev_0.8.0\PySrc\refactoring.py", line 152, in HandleRefactorMessage
        f = func(*msgSplit)
    TypeError: renameByCoordinates() takes exactly 5 arguments (8 given)

    java.lang.RuntimeException:

    Traceback (most recent call last):
      File "c:\Documents and Settings\Michael\My Projects\eclipse\plugins\org.python.pydev_0.8.0\PySrc\refactoring.py", line 152, in HandleRefactorMessage
        f = func(*msgSplit)
    TypeError: renameByCoordinates() takes exactly 5 arguments (8 given)

        at org.python.pydev.editor.actions.refactoring.PyRefactorAction.run(PyRefactorAction.java:260)
        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(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
        at org.eclipse.core.launcher.Main.run(Main.java:704)
        at org.eclipse.core.launcher.Main.main(Main.java:688)

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2004-11-24

      Ok, I think I know what is happening... probably you have spaces in the path to the file you're editing right? I think this could give this error...

      Can you report this as a bug?

      Fabio