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

GitHub | calebegg | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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