java.lang.Error: forward reference only allowed to identifiable subtrees; but was: eu.numberfour.n4js.n4JS.impl.N4InterfaceDeclarationImpl@1e816128 (declaredModifiers: null, name: null) (typingStrategy: ?~)

GitHub | mor-n4 | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Exception during post-processing of broken AST (illegal forward reference)

    GitHub | 8 months ago | mor-n4
    java.lang.Error: forward reference only allowed to identifiable subtrees; but was: eu.numberfour.n4js.n4JS.impl.N4InterfaceDeclarationImpl@1e816128 (declaredModifiers: null, name: null) (typingStrategy: ?~)

    Root Cause Analysis

    1. java.lang.Error

      forward reference only allowed to identifiable subtrees; but was: eu.numberfour.n4js.n4JS.impl.N4InterfaceDeclarationImpl@1e816128 (declaredModifiers: null, name: null) (typingStrategy: ?~)

      at eu.numberfour.n4js.postprocessing.AbstractProcessor.assertTrueIfRigid()
    2. eu.numberfour.n4js
      SourceElementExtensions.lambda$0
      1. eu.numberfour.n4js.postprocessing.AbstractProcessor.assertTrueIfRigid(AbstractProcessor.java:261)
      2. eu.numberfour.n4js.postprocessing.ASTProcessor.processSubtree_forwardReference(ASTProcessor.java:234)
      3. eu.numberfour.n4js.postprocessing.TypeProcessor.getTypeOfForwardReference(TypeProcessor.java:271)
      4. eu.numberfour.n4js.postprocessing.TypeProcessor.getType(TypeProcessor.java:239)
      5. eu.numberfour.n4js.typesystem.N4JSTypeSystem.type(N4JSTypeSystem.java:58)
      6. eu.numberfour.n4js.typesystem.N4JSTypeSystem.tau(N4JSTypeSystem.java:165)
      7. eu.numberfour.n4js.n4JS.extensions.SourceElementExtensions.collectVisibleIdentifiableElement(SourceElementExtensions.java:152)
      8. eu.numberfour.n4js.n4JS.extensions.SourceElementExtensions.collectVisibleTypedElement(SourceElementExtensions.java:130)
      9. eu.numberfour.n4js.n4JS.extensions.SourceElementExtensions.doCollectVisibleIdentifiableElements(SourceElementExtensions.java:188)
      10. eu.numberfour.n4js.n4JS.extensions.SourceElementExtensions.lambda$0(SourceElementExtensions.java:93)
      10 frames
    3. org.eclipse.xtext
      OnChangeEvictingCache.get
      1. org.eclipse.xtext.util.OnChangeEvictingCache.get(OnChangeEvictingCache.java:77)
      1 frame
    4. eu.numberfour.n4js
      N4JSScopeProvider.lambda$1
      1. eu.numberfour.n4js.n4JS.extensions.SourceElementExtensions.collectVisibleIdentifiableElements(SourceElementExtensions.java:98)
      2. eu.numberfour.n4js.scoping.N4JSScopeProvider.collectLexialEnvironmentsScopeLists(N4JSScopeProvider.java:448)
      3. eu.numberfour.n4js.scoping.N4JSScopeProvider.lambda$1(N4JSScopeProvider.java:420)
      3 frames
    5. org.eclipse.xtext
      OnChangeEvictingCache.get
      1. org.eclipse.xtext.util.OnChangeEvictingCache.get(OnChangeEvictingCache.java:77)
      1 frame
    6. eu.numberfour.n4js
      N4JSScopeProvider.getScope
      1. eu.numberfour.n4js.scoping.N4JSScopeProvider.getLexicalEnvironmentScope(N4JSScopeProvider.java:432)
      2. eu.numberfour.n4js.scoping.N4JSScopeProvider.scope_IdentifierRef_id(N4JSScopeProvider.java:395)
      3. eu.numberfour.n4js.scoping.N4JSScopeProvider.getScope(N4JSScopeProvider.java:212)
      3 frames
    7. org.eclipse.xtext
      DefaultLinkingService.getScope
      1. org.eclipse.xtext.linking.impl.DefaultLinkingService.getScope(DefaultLinkingService.java:59)
      1 frame
    8. eu.numberfour.n4js
      ErrorAwareLinkingService.getLinkedObjects
      1. eu.numberfour.n4js.resource.ErrorAwareLinkingService.getLinkedObjects(ErrorAwareLinkingService.java:69)
      1 frame
    9. org.eclipse.xtext
      StorageAwareResource.getEObject
      1. org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:247)
      2. org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:222)
      3. org.eclipse.xtext.resource.persistence.StorageAwareResource.getEObject(StorageAwareResource.java:122)
      3 frames
    10. org.eclipse.emf.ecore
      EcoreUtil.resolve
      1. org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:223)
      2. org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:199)
      3. org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:243)
      3 frames
    11. eu.numberfour.n4js
      N4JSResource.resolveLazyCrossReferences
      1. eu.numberfour.n4js.resource.N4JSResource.doResolveProxy(N4JSResource.java:661)
      2. eu.numberfour.n4js.utils.emf.ProxyResolvingEObjectImpl.eResolveProxy(ProxyResolvingEObjectImpl.java:32)
      3. eu.numberfour.n4js.n4JS.impl.IdentifierRefImpl.getId(IdentifierRefImpl.java:144)
      4. eu.numberfour.n4js.postprocessing.AbstractProcessor.isFparRefInFparDefaultExpression(AbstractProcessor.java:106)
      5. eu.numberfour.n4js.postprocessing.AbstractProcessor.askXsemanticsForType(AbstractProcessor.java:85)
      6. eu.numberfour.n4js.postprocessing.TypeProcessor.typeNode(TypeProcessor.java:128)
      7. eu.numberfour.n4js.postprocessing.TypeProcessor.typeNode(TypeProcessor.java:91)
      8. eu.numberfour.n4js.postprocessing.ASTProcessor.processNode_postChildren(ASTProcessor.java:296)
      9. eu.numberfour.n4js.postprocessing.ASTProcessor.processSubtree(ASTProcessor.java:207)
      10. eu.numberfour.n4js.postprocessing.ASTProcessor.processSubtree(ASTProcessor.java:200)
      11. eu.numberfour.n4js.postprocessing.ASTProcessor.processSubtree(ASTProcessor.java:200)
      12. eu.numberfour.n4js.postprocessing.ASTProcessor.processSubtree(ASTProcessor.java:200)
      13. eu.numberfour.n4js.postprocessing.ASTProcessor.processAST(ASTProcessor.java:131)
      14. eu.numberfour.n4js.postprocessing.ASTProcessor.processAST(ASTProcessor.java:113)
      15. eu.numberfour.n4js.resource.N4JSPostProcessor.doPerformPostProcessing(N4JSPostProcessor.java:72)
      16. eu.numberfour.n4js.resource.N4JSPostProcessor.performPostProcessing(N4JSPostProcessor.java:60)
      17. eu.numberfour.n4js.resource.PostProcessingAwareResource.performPostProcessing(PostProcessingAwareResource.java:168)
      18. eu.numberfour.n4js.resource.N4JSResource.performPostProcessing(N4JSResource.java:864)
      19. eu.numberfour.n4js.resource.PostProcessingAwareResource.resolveLazyCrossReferences(PostProcessingAwareResource.java:120)
      20. eu.numberfour.n4js.resource.N4JSResource.resolveLazyCrossReferences(N4JSResource.java:873)
      20 frames
    12. org.eclipse.xtext
      XtextReconciler.run
      1. org.eclipse.xtext.EcoreUtil2.resolveLazyCrossReferences(EcoreUtil2.java:498)
      2. org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.postParse(XtextDocumentReconcileStrategy.java:175)
      3. org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.doReconcile(XtextDocumentReconcileStrategy.java:153)
      4. org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.reconcile(XtextDocumentReconcileStrategy.java:67)
      5. org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.doRun(XtextReconciler.java:442)
      6. org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.access$3(XtextReconciler.java:422)
      7. org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$1.process(XtextReconciler.java:363)
      8. org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$1.process(XtextReconciler.java:1)
      9. org.eclipse.xtext.util.concurrent.IUnitOfWork$Void.exec(IUnitOfWork.java:37)
      10. org.eclipse.xtext.resource.OutdatedStateManager.exec(OutdatedStateManager.java:98)
      11. org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.modify(XtextDocument.java:428)
      12. org.eclipse.xtext.ui.editor.model.XtextDocument.internalModify(XtextDocument.java:162)
      13. org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.run(XtextReconciler.java:360)
      13 frames
    13. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      1 frame