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

NumberFormatException #517

Open
Queatz opened this issue Aug 8, 2023 · 0 comments
Open

NumberFormatException #517

Queatz opened this issue Aug 8, 2023 · 0 comments

Comments

@Queatz
Copy link

Queatz commented Aug 8, 2023

I am trying to use BabylonJS in a Kotlin/JS project.

🕗 Version

dukat version 0.5.8-rc.4-dev.20221020

💻 Code or Package Name

implementation(npm("@babylonjs/core", "6.15.0"))

🙁 Actual behavior

node_modules$ dukat ./@babylonjs/core/index.d.ts 
Exception in thread "main" java.lang.NumberFormatException: For input string: "3735928559"
        at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:67)
        at java.base/java.lang.Integer.parseInt(Integer.java:668)
        at java.base/java.lang.Integer.parseInt(Integer.java:786)
        at org.jetbrains.dukat.nodeIntroduction.ExpressionConverter.convert(convertStatements.kt:129)
        at org.jetbrains.dukat.nodeIntroduction.ExpressionConverter.convert(convertStatements.kt:243)
        at org.jetbrains.dukat.nodeIntroduction.ExpressionConverter.convertExpression(convertStatements.kt:601)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.process(introduceModels.kt:542)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.processMembers(introduceModels.kt:283)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.convertToClassModel(introduceModels.kt:687)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.convertToModel(introduceModels.kt:748)
        at org.jetbrains.dukat.nodeIntroduction.DocumentConverter.convert(introduceModels.kt:205)
        at org.jetbrains.dukat.nodeIntroduction.NodeConverter.convert(introduceModels.kt:891)
        at org.jetbrains.dukat.nodeIntroduction.IntroduceModelsKt.introduceModels(introduceModels.kt:950)
        at org.jetbrains.dukat.ts.translator.TypescriptLowerer.lower(TypescriptLowerer.kt:95)
        at org.jetbrains.dukat.ts.translator.JsRuntimeByteArrayTranslator.lower(JsRuntimeByteArrayTranslator.kt:13)
        at org.jetbrains.dukat.ts.translator.JsRuntimeByteArrayTranslator.translate(JsRuntimeByteArrayTranslator.kt:21)
        at org.jetbrains.dukat.ts.translator.TranslateTypescriptDeclarationsKt.translateTypescriptDeclarations(translateTypescriptDeclarations.kt:10)
        at org.jetbrains.dukat.cli.CliKt.main(cli.kt:267)

🙂 Expected behavior

Success, always success

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