dukat icon indicating copy to clipboard operation
dukat copied to clipboard

Exception running dukat in ide with gradle for firebase-functions lib

Open ScottPierce opened this issue 5 years ago • 5 comments

implementation(npm("firebase-functions", "3.3.0")) rootProject.kotlinNodeJs.versions.dukat.version = "0.0.28" Gradle 6.1.1

> Task :firebase-functions:generateExternals
Exception in thread "main" java.lang.StackOverflowError
        at org.jetbrains.dukat.astCommon.QualifierEntity.hashCode(NameEntity.kt)
        at org.jetbrains.dukat.astCommon.QualifierEntity.hashCode(NameEntity.kt)
        at java.util.HashMap.hash(HashMap.java:339)
        at java.util.LinkedHashMap.get(LinkedHashMap.java:440)
        at org.jetbrains.dukat.model.commonLowerings.ModelContext.unalias(ModelContext.kt:95)
        at org.jetbrains.dukat.model.commonLowerings.ModelContext.getParents(ModelContext.kt:141)
        at org.jetbrains.dukat.model.commonLowerings.ModelContext.getAllParents(ModelContext.kt:149)
        at org.jetbrains.dukat.model.commonLowerings.ModelContext.getAllParents(ModelContext.kt:150)
        at org.jetbrains.dukat.model.commonLowerings.ModelContext.getAllParents(ModelContext.kt:150)
        at org.jetbrains.dukat.model.commonLowerings.ModelContext.getAllParents(ModelContext.kt:150)
        at org.jetbrains.dukat.model.commonLowerings.ModelContext.getAllParents(ModelContext.kt:150)
        at org.jetbrains.dukat.model.commonLowerings.ModelContext.getAllParents(ModelContext.kt:150)
        at org.jetbrains.dukat.model.commonLowerings.ModelContext.getAllParents(ModelContext.kt:150)
        ...

I cut the stacktrace off because it's a stackoverflow and repeats itself over and over and over.

ScottPierce avatar Feb 15 '20 14:02 ScottPierce

Same error from cli.

sakebook avatar Feb 20 '20 12:02 sakebook

see also - https://youtrack.jetbrains.com/issue/KT-37108

Schahen avatar Feb 28 '20 08:02 Schahen

This is critical for sure :sob: partially generated output would be better then fatal failure

audkar avatar May 29 '20 07:05 audkar

I just tried this with 0.5.4, and it still happens. here is a comment that has a complete repro project: https://github.com/Kotlin/dukat/issues/322#issuecomment-653673019

ScottPierce avatar Jul 04 '20 02:07 ScottPierce

Is there any sort of workaround for this. have tired converting discord.js and got the same error

DRSchlaubi avatar Jan 18 '21 09:01 DRSchlaubi