Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-3657

Error while parsing/building a specific PHP script

    Details

      Description

      This code triggers a node-building exception:

      <?php
      if ( 1 )
        if ( 2 )
          echo "err";
      ?>
      

      Exception in the log:

      java.util.EmptyStackException
      	at java.util.Stack.peek(Stack.java:85)
      	at java.util.Stack.pop(Stack.java:67)
      	at com.aptana.editor.php.internal.parser.nodes.NodeBuilder.handleCommonDeclarationEnd(NodeBuilder.java:588)
      	at com.aptana.editor.php.internal.parser.nodes.NodeBuildingVisitor.endVisit(NodeBuildingVisitor.java:553)
      	at org2.eclipse.php.internal.core.ast.nodes.IfStatement.accept0(IfStatement.java:91)
      	at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285)
      	at org2.eclipse.php.internal.core.ast.nodes.Program.childrenAccept(Program.java:203)
      	at org2.eclipse.php.internal.core.ast.nodes.Program.accept0(Program.java:196)
      	at org2.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:285)
      	at com.aptana.editor.php.internal.parser.PHPParser.processChildren(PHPParser.java:256)
      	at com.aptana.editor.php.internal.parser.PHPParser.parse(PHPParser.java:128)
      	at com.aptana.parsing.ParserPoolFactory.parse(ParserPoolFactory.java:222)
      	at com.aptana.editor.common.parsing.FileService.parse(FileService.java:183)
      	at com.aptana.editor.common.parsing.FileService.parse(FileService.java:144)
      	at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:197)
      	at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.reconcile(CommonReconcilingStrategy.java:190)
      	at com.aptana.editor.common.text.reconciler.CommonReconcilingStrategy.fullReconcile(CommonReconcilingStrategy.java:333)
      	at com.aptana.editor.common.text.reconciler.CompositeReconcilingStrategy.fullReconcile(CompositeReconcilingStrategy.java:114)
      	at com.aptana.editor.common.text.reconciler.CommonReconciler.process(CommonReconciler.java:153)
      	at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:206)
      

        Attachments

          Activity

            People

            • Assignee:
              sgibly Shalom Gibly
              Reporter:
              sgibly Shalom Gibly
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration