Intellisense doesn't work in every case...

Dunken
2010-05-30
2013-03-15
  • Dunken

    Dunken - 2010-05-30

    Hi
    I just got started with PyDev for Eclipse. Unfortunately, intellisense sometimes doesn't work.

    import nltk
    from nltk.corpus import semcor as sc
    sc.xml('brownv/tagfiles/br-r03.xml')
    

    After "from nltk." I get intellisense but after sc (before xml) I don't… Why is that? It seems like I haven't set a source code reference but if I would have missed one the former shouldn't work either…
    The program works as expected.

     
  • kutchbhi

    kutchbhi - 2011-07-18

    sorry for bumping this thread. But I have the exact same problem.
    pydev with eclipse. Intellisense doesnt work with 'external'(non-core) libraries.

    from PySide.QtCore import *
    from PySide.QtGui import *

    # Create a Qt application 
    app = QApplication(sys.argv)
    # Create a Label and show it
    label = QLabel("<font color=red size=40>Hello World</font>")
    label.
    

    after label. nothing pops up.
    HOWEVER in aptana studio3 it works as expected. Only in eclipse with pydev does it not work.

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-07-18

    The PyDev in Aptana Studio 3 is exactly the same PyDev you have in Eclipse, so, it's probably some misconfiguration on Eclipse… do you have some error in your error log?

    Cheers,

    Fabio

     
  • kutchbhi

    kutchbhi - 2011-07-18

    Last entry in the log file

    !ENTRY org.python.pydev.core 1 1 2011-07-19 04:56:20.890
    !MESSAGE Expected IO issue (version changed or validation not ok): properly handled.
    !STACK 0
    java.io.IOException: Only 0 modules restored in I/O. org.python.pydev.editor.codecompletion.revisited.ProjectModulesManager dir:D:\python\eclipse\.metadata\.plugins\org.eclipse.core.resources\.projects\play\org.python.pydev\v1_astmanager
        at org.python.pydev.editor.codecompletion.revisited.ModulesManager.loadFromFile(ModulesManager.java:285)
        at org.python.pydev.editor.codecompletion.revisited.ASTManager.loadFromFile(ASTManager.java:106)
        at org.python.pydev.plugin.nature.PythonNature.init(PythonNature.java:548)
        at org.python.pydev.plugin.nature.PythonNature.setProject(PythonNature.java:309)
        at org.eclipse.core.internal.resources.NatureManager.createNature(NatureManager.java:234)
        at org.eclipse.core.internal.resources.Project.getNature(Project.java:448)
        at org.python.pydev.plugin.nature.PythonNature.getPythonNature(PythonNature.java:701)
        at org.python.pydev.editor.PyEdit.getPythonNature(PyEdit.java:1566)
        at org.python.pydev.editor.PyEdit.getGrammarVersionProvider(PyEdit.java:1546)
        at org.python.pydev.parser.PyParser.getGrammarProviderFromEdit(PyParser.java:230)
        at org.python.pydev.parser.PyParser.<init>(PyParser.java:221)
        at org.python.pydev.parser.PyParserManager.attachParserTo(PyParserManager.java:167)
        at org.python.pydev.editor.PyEdit.doSetInput(PyEdit.java:825)
        at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3200)
        at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
        at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
        at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
        at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2642)
        at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3218)
        at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3245)
        at org.python.pydev.editor.PyEdit.init(PyEdit.java:634)
        at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:828)
        at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
        at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
        at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
        at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:271)
        at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1459)
        at org.eclipse.ui.internal.EditorManager$5.runWithException(EditorManager.java:972)
        at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
        at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
        at org.eclipse.ui.internal.Workbench$33.runWithException(Workbench.java:1595)
        at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4140)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3757)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        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:344)
        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:622)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
    
     
  • kutchbhi

    kutchbhi - 2011-07-18

    nvmind its working now with pyqt. Wasn't working with pyside