[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[photran] 'Photran indexer' has encountered a problem

Hi All,

Iâve recently started trying to use Photon (9.1.1 on OS X, but I get the same error on Windows) for a new project and am having trouble getting the indexing working. Each time I try to enable analysis/refactoring I get the following error: "An internal error occurred during: "Photran indexerâ. Index: 0, Size: 0â.

Itâs a large(ish) project with ~400 source files in a separate /src directory and a few dozen include files in /includes, but nothing which should cause a problem I donât think.

Iâve had a look in the log files and have attached the relevant error.

It would be great to get this working so any help/advice is appreciated.

Kind regards,

Duncan

!ENTRY org.eclipse.core.jobs 4 2 2017-02-13 10:59:52.878
!MESSAGE An internal error occurred during: "Photran indexer".
!STACK 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.rangeCheck(ArrayList.java:653)
        at java.util.ArrayList.get(ArrayList.java:429)
        at org.eclipse.photran.internal.core.analysis.binding.DerivedTypeCollector.visitASTProcComponentDefStmtNode(DerivedTypeCollector.java:46)
        at org.eclipse.photran.internal.core.parser.ASTProcComponentDefStmtNode.accept(ASTProcComponentDefStmtNode.java:94)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.traverseChildren(ASTVisitor.java:21)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.visitASTListNode(ASTVisitor.java:26)
        at org.eclipse.photran.internal.core.parser.ASTListNode.accept(ASTListNode.java:131)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.traverseChildren(ASTVisitor.java:21)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.visitASTDerivedTypeDefNode(ASTVisitor.java:124)
        at org.eclipse.photran.internal.core.parser.ASTDerivedTypeDefNode.accept(ASTDerivedTypeDefNode.java:100)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.traverseChildren(ASTVisitor.java:21)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.visitASTListNode(ASTVisitor.java:26)
        at org.eclipse.photran.internal.core.parser.ASTListNode.accept(ASTListNode.java:131)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.traverseChildren(ASTVisitor.java:21)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.visitASTModuleNode(ASTVisitor.java:271)
        at org.eclipse.photran.internal.core.parser.ASTModuleNode.accept(ASTModuleNode.java:74)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.traverseChildren(ASTVisitor.java:21)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.visitASTListNode(ASTVisitor.java:26)
        at org.eclipse.photran.internal.core.parser.ASTListNode.accept(ASTListNode.java:131)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.traverseChildren(ASTVisitor.java:21)
        at org.eclipse.photran.internal.core.parser.ASTVisitor.visitASTExecutableProgramNode(ASTVisitor.java:175)
        at org.eclipse.photran.internal.core.parser.ASTExecutableProgramNode.accept(ASTExecutableProgramNode.java:61)
        at org.eclipse.photran.internal.core.FortranAST.accept(FortranAST.java:53)
        at org.eclipse.photran.internal.core.analysis.binding.Binder.bind(Binder.java:66)
        at org.eclipse.photran.internal.core.vpg.PhotranVPGWriter.populateVPG(PhotranVPGWriter.java:582)
        at org.eclipse.photran.internal.core.vpg.PhotranVPGWriter.populateVPG(PhotranVPGWriter.java:1)
        at org.eclipse.photran.internal.core.vpg.VPGWriter.computeEdgesAndAnnotations(VPGWriter.java:63)
        at org.eclipse.photran.internal.core.vpg.ASTRepository.acquireTransientAST(ASTRepository.java:87)
        at org.eclipse.photran.internal.core.vpg.VPG.forceRecomputationOfEdgesAndAnnotations(VPG.java:405)
        at org.eclipse.photran.internal.core.vpg.eclipse.EclipseVPG.indexIfNotUpToDate(EclipseVPG.java:471)
        at org.eclipse.photran.internal.core.vpg.eclipse.EclipseVPG$WorkspaceSyncResourceVisitor.index(EclipseVPG.java:266)
        at org.eclipse.photran.internal.core.vpg.eclipse.EclipseVPG.ensureVPGIsUpToDate(EclipseVPG.java:182)
        at org.eclipse.photran.internal.core.vpg.eclipse.EclipseVPG$VPGInitialWorkspaceSyncJob.runInWorkspace(EclipseVPG.java:161)
        at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)