bazelbuild / rules_kotlin

Bazel rules for Kotlin
Apache License 2.0
328 stars 205 forks source link

Failed to resolve kotlin-stdlib-js for Kotlin 2.0 #1176

Open neckbosov opened 1 month ago

neckbosov commented 1 month ago

rules_kotlin version: 1.9.1 Bazel version: 5.4.1

I tried to update kotlin version to 2.0 in my project and got following error:

external/rules_kotlin/kotlin/compiler/BUILD.bazel:22:22: no such target '@com_github_jetbrains_kotlin//:lib/kotlin-stdlib-js.jar': target 'lib/kotlin-stdlib-js.jar' not declared in package ''

What can cause such an error? I tried to look at the rules_kotlin code but failed to understand where @com_github_jetbrains_kotlin came from. What can I do to solve the problem?

pettermahlen commented 1 month ago

I am running into something similar. AFAICT, kotlin-stdlib-js is distributed as a klib artifact, not a jar. It wasn't the same in 1.9.23; that included a .jar file.

neckbosov commented 1 month ago

Looks related to #808

restingbull commented 1 week ago

We are considering removing js support for 2.0 -- until such time as we have proper kotlin native support.

restingbull commented 1 week ago

Voting Box is Open