Help with kotlin-js
- Dominant language
- Java
- Stars
- 75
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Hi @KvanTTT @bashor
I'm experimenting with Kotlin/Wasm and facing an issue you might be able to help with...
I've downloaded kotlinc 2.0.0-Beta3, and `kotlinc-js -version` shows the correct version.
When I run:
`kotlinc-js src/main/kotlin/Test.kt -Xwasm -Xwasm-target=wasm -ir-output-name test.js -ir-output-dir out/wasm -kotlin-home /Users/ericvergnaud/Development/kotlinc`
I get:
`exception: java.lang.IllegalStateException: Class not found: kotlin/Float`
How do I tell kotlin-js where to find builtins (I thought -kotlin-home was about that) ?
Btw where are they actually located ?
Contributor guide
Research direction
Start with src/main/kotlin/Test.kt and reproduce the kotlinc-js command shown in the issue, including -Xwasm and -kotlin-home. Investigate how the Kotlin/Wasm compiler resolves kotlin/Float and where the required builtins are located; done would mean a confirmed cause and documented working configuration or a validated compiler fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin, wasm
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100