java.lang.RuntimeException: Failed to emit type $jscomp.scope.Bar

GitHub | calebegg | 1 year 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

    Crash on specific input

    GitHub | 1 year ago | calebegg
    java.lang.RuntimeException: Failed to emit type $jscomp.scope.Bar

    Root Cause Analysis

    1. java.lang.RuntimeException

      Did not find a matching goog.module while processing type $jscomp.scope.Bar

      at com.google.javascript.clutz.DeclarationGenerator$TreeWalker.visitSyntheticModuleTypes()
    2. com.google.javascript
      DeclarationGenerator$TreeWalker$1.caseObjectType
      1. com.google.javascript.clutz.DeclarationGenerator$TreeWalker.visitSyntheticModuleTypes(DeclarationGenerator.java:1191)
      2. com.google.javascript.clutz.DeclarationGenerator$TreeWalker.access$1800(DeclarationGenerator.java:636)
      3. com.google.javascript.clutz.DeclarationGenerator$TreeWalker$1.caseObjectType(DeclarationGenerator.java:996)
      4. com.google.javascript.clutz.DeclarationGenerator$TreeWalker$1.caseObjectType(DeclarationGenerator.java:955)
      4 frames
    3. Closure Compiler
      ObjectType.visit
      1. com.google.javascript.rhino.jstype.ObjectType.visit(ObjectType.java:602)
      1 frame
    4. com.google.javascript
      DeclarationGenerator.main
      1. com.google.javascript.clutz.DeclarationGenerator$TreeWalker.visitType(DeclarationGenerator.java:1170)
      2. com.google.javascript.clutz.DeclarationGenerator$TreeWalker.visitType(DeclarationGenerator.java:940)
      3. com.google.javascript.clutz.DeclarationGenerator$TreeWalker.visitTypeDeclaration(DeclarationGenerator.java:910)
      4. com.google.javascript.clutz.DeclarationGenerator$TreeWalker.visitFunctionParameters(DeclarationGenerator.java:1383)
      5. com.google.javascript.clutz.DeclarationGenerator$TreeWalker.visitObjectType(DeclarationGenerator.java:1265)
      6. com.google.javascript.clutz.DeclarationGenerator$TreeWalker.visitClassOrInterface(DeclarationGenerator.java:822)
      7. com.google.javascript.clutz.DeclarationGenerator$TreeWalker.walk(DeclarationGenerator.java:702)
      8. com.google.javascript.clutz.DeclarationGenerator$TreeWalker.access$100(DeclarationGenerator.java:636)
      9. com.google.javascript.clutz.DeclarationGenerator.declareNamespace(DeclarationGenerator.java:345)
      10. com.google.javascript.clutz.DeclarationGenerator.produceDts(DeclarationGenerator.java:228)
      11. com.google.javascript.clutz.DeclarationGenerator.generateDeclarations(DeclarationGenerator.java:168)
      12. com.google.javascript.clutz.DeclarationGenerator.generateDeclarations(DeclarationGenerator.java:143)
      13. com.google.javascript.clutz.DeclarationGenerator.main(DeclarationGenerator.java:88)
      13 frames