java.lang.RuntimeException: Still can't determine whether it's a package or not.

pydev | fmalzer | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    NPE:Error checking for valid tokens (imports)

    pydev | 6 years ago | fmalzer
    java.lang.RuntimeException: Still can't determine whether it's a package or not.

    Root Cause Analysis

    1. java.lang.RuntimeException

      Still can't determine whether it's a package or not.

      at org.python.pydev.editor.codecompletion.revisited.javaintegration.JavaModuleInProject.isPackage()
    2. org.python.pydev
      AbstractASTManager.getRepInModule
      1. org.python.pydev.editor.codecompletion.revisited.javaintegration.JavaModuleInProject.isPackage(JavaModuleInProject.java:71)
      2. org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.internalGenerateGetCompletionsForModule(AbstractASTManager.java:615)
      3. org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompletionsForModule(AbstractASTManager.java:508)
      4. org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompletionsForModule(AbstractASTManager.java:479)
      5. org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompletionsForModule(AbstractASTManager.java:471)
      6. org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getCompletionsForModule(AbstractASTManager.java:463)
      7. org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getRepInModule(AbstractASTManager.java:1028)
      8. org.python.pydev.editor.codecompletion.revisited.AbstractASTManager.getRepInModule(AbstractASTManager.java:994)
      8 frames
    3. com.python.pydev
      AbstractScopeAnalyzerVisitor.visitImportFrom
      1. com.python.pydev.analysis.visitors.ImportChecker.visitImportToken(ImportChecker.java:170)
      2. com.python.pydev.analysis.visitors.ImportChecker.visitImportToken(ImportChecker.java:139)
      3. com.python.pydev.analysis.visitors.Scope.addImportTokens(Scope.java:174)
      4. com.python.pydev.analysis.scopeanalysis.AbstractScopeAnalyzerVisitor.visitImportFrom(AbstractScopeAnalyzerVisitor.java:476)
      4 frames
    4. org.python.pydev
      Module.traverse
      1. org.python.pydev.parser.jython.ast.ImportFrom.accept(ImportFrom.java:70)
      2. org.python.pydev.parser.jython.ast.Module.traverse(Module.java:66)
      2 frames