-
Notifications
You must be signed in to change notification settings - Fork 213
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
Building on v1.5.0-alpha-2 fails on Windows #492
Comments
Also fails on |
As a guess, I think rules_kotlin/src/main/kotlin/io/bazel/kotlin/builder/BUILD Lines 16 to 38 in 5357ac1
which would reference the lib here: rules_kotlin/kotlin/internal/repositories/BUILD.com_github_jetbrains_kotlin Lines 31 to 34 in 404d3b3
|
This is still failing for me on Windows with v1.5.0-alpha-3:
It is fixed by the following patch, which I will submit as a PR: --- src/main/kotlin/BUILD.bazel
+++ src/main/kotlin/BUILD.bazel
@@ -41,6 +41,7 @@
":skip-code-gen",
"//src/main/kotlin/io/bazel/kotlin/compiler",
"@com_github_jetbrains_kotlin//:lib/kotlin-compiler.jar",
+ "@com_github_jetbrains_kotlin//:lib/jvm-abi-gen.jar",
],
main_class = "io.bazel.kotlin.builder.cmd.Build",
visibility = ["//visibility:public"], |
Fixes bazelbuild#492 also for the released artifacts.
Fixes bazelbuild#492 also for the released artifacts.
Fixes #492 also for the released artifacts.
I've been trying to use
v1.5.0-alpha-2
and compilation of any Kotlin code fails with:I've attached a simple repro project (BUILD, WORKSPACE, and Main.kt files), which look like this:
WORKSPACE
BUILD
Main.kt
Running
bazel build //:main
orbazel run //:main
fails with the aforementioned exception (I've also attached the full stack trace since the error is a bit larger).Note that this also reproduces with
v1.5.0-alpha-3
.BugReproProject.zip
Stacktrace.txt
The text was updated successfully, but these errors were encountered: