pydev package explorer broken

2009-06-25
2013-03-15
  • Niko Wilbert

    Niko Wilbert - 2009-06-25

    Today I updated some Eclipse packages and now the Pydev package explorer does not display anything anymore. Any ideas how to fix this? I am on the latest version of Pydev Extensions.

    Thanks!

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-06-25

      You're in the latest stable or nightly build?

      Do you have some error in your error log? See: http://pydev.sourceforge.net/faq.html#how_do_i_report_a_bug for details on how to find it.

      Cheers,

      Fabio

       
    • Niko Wilbert

      Niko Wilbert - 2009-06-25

      Latest stable Eclipse and PyDev versions on Vista 32bit.

      Might be just my bad luck, I guess I will have to reinstall PyDev.

       
      • Fabio Zadrozny

        Fabio Zadrozny - 2009-06-25

        Just a doubt:

        Do the projects appear in the resource navigator? Is it possible that you have some active filter that's filtering them?

        Cheers,

        Fabio

        p.s.: Did you find anything in the error log?

         
        • Niko Wilbert

          Niko Wilbert - 2009-06-25

          I didn't setup any custom filters before. I also tried disabling all filters, no effect.

          I also reinstalled PyDev, no difference either.

          Here is the last entry from the log-file:

          !ENTRY org.eclipse.ui.navigator 4 0 2009-06-25 14:46:01.485
          !MESSAGE Could not acquire children from extension: org.eclipse.ui.navigator.resourceContent
          !STACK 0
          java.lang.RuntimeException: Error on document:null project:P/Playground
              at org.python.pydev.plugin.nature.PythonNatureStore.getPropertyFromXml(PythonNatureStore.java:570)
              at org.python.pydev.plugin.nature.PythonNature.getProjectInterpreterName(PythonNature.java:1068)
              at org.python.pydev.plugin.nature.PythonNature.getProjectInterpreter(PythonNature.java:1019)
              at org.python.pydev.plugin.nature.PythonNature.getConfigErrorsAndInfo(PythonNature.java:1094)
              at org.python.pydev.navigator.ProjectInfoForPackageExplorer.getConfigErrorsAndInfo(ProjectInfoForPackageExplorer.java:79)
              at org.python.pydev.navigator.ProjectInfoForPackageExplorer.recreateInfo(ProjectInfoForPackageExplorer.java:53)
              at org.python.pydev.navigator.ProjectInfoForPackageExplorer.<init>(ProjectInfoForPackageExplorer.java:45)
              at org.python.pydev.navigator.PythonBaseModelProvider.getProjectInfo(PythonBaseModelProvider.java:383)
              at org.python.pydev.navigator.PythonBaseModelProvider.getProjectSourceFolders(PythonBaseModelProvider.java:397)
              at org.python.pydev.navigator.PythonBaseModelProvider.getResourceInPythonModel(PythonBaseModelProvider.java:342)
              at org.python.pydev.navigator.PythonBaseModelProvider.getResourceInPythonModel(PythonBaseModelProvider.java:328)
              at org.python.pydev.navigator.PythonModelProvider.wrapChildren(PythonModelProvider.java:429)
              at org.python.pydev.navigator.PythonModelProvider.convertToPythonElementsAddOrRemove(PythonModelProvider.java:335)
              at org.python.pydev.navigator.PythonModelProvider.getPipelinedChildren(PythonModelProvider.java:104)
              at org.python.pydev.navigator.PythonModelProvider.getPipelinedElements(PythonModelProvider.java:132)
              at org.eclipse.ui.internal.navigator.NavigatorContentServiceContentProvider.pipelineElements(NavigatorContentServiceContentProvider.java:363)
              at org.eclipse.ui.internal.navigator.NavigatorContentServiceContentProvider.getElements(NavigatorContentServiceContentProvider.java:170)
              at org.eclipse.ui.internal.navigator.NavigatorSaveablesService.computeSaveables(NavigatorSaveablesService.java:235)
              at org.eclipse.ui.internal.navigator.NavigatorSaveablesService.recomputeSaveablesAndNotify(NavigatorSaveablesService.java:501)
              at org.eclipse.ui.internal.navigator.NavigatorSaveablesService.onVisibilityOrActivationChange(NavigatorSaveablesService.java:595)
              at org.eclipse.ui.internal.navigator.VisibilityAssistant.notifyClients(VisibilityAssistant.java:125)
              at org.eclipse.ui.internal.navigator.VisibilityAssistant.onExtensionActivation(VisibilityAssistant.java:225)
              at org.eclipse.ui.internal.navigator.NavigatorActivationService.notifyListeners(NavigatorActivationService.java:256)
              at org.eclipse.ui.internal.navigator.NavigatorActivationService.setActive(NavigatorActivationService.java:188)
              at org.eclipse.ui.internal.navigator.NavigatorActivationService.activateExtensions(NavigatorActivationService.java:321)
              at org.eclipse.ui.internal.navigator.filters.UpdateActiveExtensionsOperation.execute(UpdateActiveExtensionsOperation.java:119)
              at org.eclipse.ui.internal.navigator.filters.CommonFilterSelectionDialog.okPressed(CommonFilterSelectionDialog.java:231)
              at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472)
              at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
              at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
              at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
              at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
              at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
              at org.eclipse.jface.window.Window.open(Window.java:801)
              at org.eclipse.ui.internal.navigator.filters.SelectFiltersAction.run(SelectFiltersAction.java:52)
              at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
              at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
              at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
              at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
              at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
              at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
              at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
              at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
              at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
              at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
              at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
              at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
              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:386)
              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
              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.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)
          Caused by: org.eclipse.core.runtime.AssertionFailedException: null argument:
              at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:86)
              at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:74)
              at org.python.pydev.plugin.nature.PythonNatureStore.getRootNodeInXml(PythonNatureStore.java:372)
              at org.python.pydev.plugin.nature.PythonNatureStore.findPropertyNodeInXml(PythonNatureStore.java:410)
              at org.python.pydev.plugin.nature.PythonNatureStore.getPropertyFromXml(PythonNatureStore.java:558)
              ... 64 more

           
    • Niko Wilbert

      Niko Wilbert - 2009-06-25

      Actually I was unable to uninstall PyDev, when I uninstall it via Help->Software Updates... it stays installed. Just the uninstall button is grayed out afterwards.

      All projects are displayed normally in the normal navigator view.

       
      • Fabio Zadrozny

        Fabio Zadrozny - 2009-06-25

        Ok, I was able to reproduce your problem here from the error log info:

        It seems Pydev is not dealing well with problems in the .pydevproject file (in that case, your .pydevproject in your Playground project).

        I've reproduced the problem by creating a non-parseable xml file as .pydevproject (which I believe is your problem). Can you create a bug-report with that and attach your .project and .pydevproject files in that project so that I can check if that's indeed the problem?

        Cheers,

        Fabio

         
        • Niko Wilbert

          Niko Wilbert - 2009-06-25

          Since I needed a quick fix I deleted all the metadata in my workspace.

          Now (after setting everything up) everything seems to work fine. According to the log file there are no more problems regarding the project that seemed to cause trouble.

          So it appears that this was somehow caused by the Eclipse update system (this seems to be a constant source of grief, hopefully it works better in Eclipse 3.5).

          Let me know if I should still file a bug report. I guess uploading the project files doesn't make much sense now.

           
          • Fabio Zadrozny

            Fabio Zadrozny - 2009-06-25

            No need to create that bug... Anyways, I've just fixed the problem when the valid xml file is there (which was a real problem anyways).

            That's available in the latest nightly build (svn: 2825)

            Cheers,

            Fabio

             
            • Niko Wilbert

              Niko Wilbert - 2009-06-25

              Thanks!

              Cheers,
              Niko

               

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks