antlr / antlr/antlr5

Help with kotlin-js

Open
#28 17 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.