Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StackOverflowError with StringsKt__AppendableKt.appendElement() on processing puppeteer package #470

Open
sashache opened this issue Nov 25, 2021 · 0 comments

Comments

@sashache
Copy link

Get Kotlin/JS Gradle project with build.gradle.kts like the following:

plugins {
    kotlin("js") version "1.6.0"
}

group = "org.jetbrains.ache"
version = "1.0"

repositories {
    mavenCentral()
}

dependencies {
    implementation(npm("puppeteer", "11.0.0", true))
}

kotlin {
    js(IR) {
        binaries.executable()
        nodejs()
    }
}

Execute shell commands:

> cd (project directory)
> pkill -f -9 GradleDaemon
> rm -rf ./.gradle
> ./gradlew --console plain clean build

...
> Task :kotlinNpmInstall
> Task :generateExternalsIntegrated
Exception in thread "main" java.lang.StackOverflowError
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.process(introduceModels.kt:349)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.process$default(introduceModels.kt:323)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter$convertMeta$1.invoke(introduceModels.kt:276)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter$convertMeta$1.invoke(introduceModels.kt:181)
        at kotlin.text.StringsKt__AppendableKt.appendElement(Appendable.kt:85)
        at kotlin.collections.CollectionsKt___CollectionsKt.joinTo(_Collections.kt:3304)
        at kotlin.collections.CollectionsKt___CollectionsKt.joinToString(_Collections.kt:3321)
        at kotlin.collections.CollectionsKt___CollectionsKt.joinToString$default(_Collections.kt:3320)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.convertMeta(introduceModels.kt:275)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.process(introduceModels.kt:336)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.process(introduceModels.kt:355)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.process$default(introduceModels.kt:323)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.process(introduceModels.kt:350)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.process$default(introduceModels.kt:323)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter$convertMeta$1.invoke(introduceModels.kt:276)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter$convertMeta$1.invoke(introduceModels.kt:181)
        at kotlin.text.StringsKt__AppendableKt.appendElement(Appendable.kt:85)
        at kotlin.collections.CollectionsKt___CollectionsKt.joinTo(_Collections.kt:3304)
        at kotlin.collections.CollectionsKt___CollectionsKt.joinToString(_Collections.kt:3321)
        at kotlin.collections.CollectionsKt___CollectionsKt.joinToString$default(_Collections.kt:3320)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.convertMeta(introduceModels.kt:275)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.process(introduceModels.kt:336)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.process(introduceModels.kt:355)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.process$default(introduceModels.kt:323)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.process(introduceModels.kt:350)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.process$default(introduceModels.kt:323)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter$convertMeta$1.invoke(introduceModels.kt:276)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter$convertMeta$1.invoke(introduceModels.kt:181)
        at kotlin.text.StringsKt__AppendableKt.appendElement(Appendable.kt:85)
        (etc)

...
BUILD SUCCESSFUL in 36s (Kotlin/JS does not fail on dukat failures.)

Not sure about dukat version. Created build/js/node_modules/dukat/package.json specifies version 0.5.8-rc.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant