Refactoring Not Working

  • Michael

    Michael - 2005-01-27


    I'm runing PyDev .85 in eclipse 3.1 (also tried it in 3.01). When I try to refactor, I get a progress box which pops up saying "operation in progress" but the bar never advances, and it appears that the process times out. None of the refactor functions end up doing anything. The dialog just eventually disappears, and i'm dropped back into the editor.

    I suspect it's a misconfiguration on my part, but I have no idea where to start looking....

    Any help would be appreciated!


    • Fabio Zadrozny

      Fabio Zadrozny - 2005-01-27

      Classic question: is your PYTHONPATH set in your enviroment? (In your enviroment and not in the project properties that for now is only used for code completion)

      If that does not work, check if python is properly configured (in windows->preferences->debug, you have to set the python.exe if python is not in your path)

      If that does not solve it too, check if you have something in your error log (windows->show view->error log)



    • Michael

      Michael - 2005-01-27

      Hi Fabio,

      My path variable is set to the following:
      C:\Python24;C:\Python24\DLLs;C:\Python24\Lib;C:\Python24\libs;C:\Python24\tcl;D:\My Documents\Eclipse\Workspace\;

      Code completion and execution work, so i think that this is ok as is. Python.exe is also set correctly.

      The error log reports a java.lkang.NullPointerException.

      Below is a copy of the stack trace

      Thanks again for your help,

          at org.eclipse.ui.internal.PluginAction.runWithEvent(
          at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(
          at org.eclipse.jface.action.ActionContributionItem.access$2(
          at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(
          at org.eclipse.swt.widgets.EventTable.sendEvent(
          at org.eclipse.swt.widgets.Widget.sendEvent(
          at org.eclipse.swt.widgets.Display.runDeferredEvents(
          at org.eclipse.swt.widgets.Display.readAndDispatch(
          at org.eclipse.ui.internal.Workbench.runEventLoop(
          at org.eclipse.ui.internal.Workbench.runUI(
          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
          at org.eclipse.core.internal.runtime.PlatformActivator$
          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(
          at org.eclipse.core.launcher.Main.main(

      • Fabio Zadrozny

        Fabio Zadrozny - 2005-01-27

        I see you are using python 2.4. In that case the problem might be:

        Pydev 0.8.5 had a packaging problem and because of that, sometimes code completion did not work very well with python 2.4. If you use this version, you can fix that by erasing all *.pyc files that come toghether with the plugin (it seems that a file named inspect.pyc got in the package because of some experiments I was doing and as python 2.4 did not have the source file to recreate it, it seems to hang for a long time... when it did not hang forever)

    • Michael

      Michael - 2005-01-27

      Thanks! That did the trick :)


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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks