https://kotlinlang.org logo
Title
t

theiw

10/24/2018, 7:54 PM
follow up for ^^.
WORKSPACE
is as follows:
kotlin_1_3 = {
  "urls": [
    "<https://github.com/JetBrains/kotlin/releases/download/v1.3-rc/kotlin-compiler-1.3.0-rc-57.zip>",
  ],
  "sha256": "f01df0ff86520346bc677c03fd600ee4a5ec657209d82f600049ec658bdccb19",
}

rules_kotlin_version = "47152947883eeebbf2ab93a4fd81e362c18e9242"

git_repository(
    name = "io_bazel_rules_kotlin",
    remote = "<https://github.com/bazelbuild/rules_kotlin.git>",
    commit = rules_kotlin_version
)
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains")
kotlin_repositories(compiler_release = kotlin_1_3)
kt_register_toolchains()
with
BUILD
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kt_jvm_library")

kt_jvm_library(
    name = "future",
    srcs = glob(["src/future/*.kt"]),
    deps = [],
)
currently have
$ bazel build //:future
INFO: Analysed target //:future (0 packages loaded).
INFO: Found 1 target...
ERROR: /private/var/tmp/_bazel_iw/f04982cc20c2b9e2e0acdc7f8dfda686/external/io_bazel_rules_kotlin/src/main/kotlin/io/bazel/kotlin/builder/BUILD:34:1: Building external/io_bazel_rules_kotlin/src/main/kotlin/io/bazel/kotlin/builder/libbuilder.jar (2 source files) and running annotation processors (ComponentProcessor) failed (Exit 1)
error: cannot access NotNull
  class file for org.jetbrains.annotations.NotNull not found
  Consult the following stack trace for details.
  com.sun.tools.javac.code.Symbol$CompletionFailure: class file for org.jetbrains.annotations.NotNull not found
Target //:future failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1.508s, Critical Path: 1.25s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
…more
bazel
discovery needed 😄
v

Vladyslav Sitalo

10/24/2018, 7:59 PM
#build-tools maybe?
s

Shawn

10/24/2018, 7:59 PM
are you asking for bazel help or kotlin help rn
t

theiw

10/24/2018, 8:05 PM
@Shawn
bazel
help right now
s

Shawn

10/24/2018, 8:05 PM
would recommend moving it over to #build-tools or #random tbh
#general isn’t a great space to ask questions that aren’t like, general language-specific questions
t

theiw

10/24/2018, 8:06 PM
@Shawn is #build-tools invite channel ?
s

Shawn

10/24/2018, 8:06 PM
nope, just click through and join
you should check out the Channel List or the quick switcher
ctrl/cmd+k
t

theiw

10/24/2018, 8:07 PM
fab. i’ll try there. thanks
s

Shawn

10/24/2018, 8:07 PM
if you’re unfamiliar with the slack UI, highly recommend the New Member Guide https://get.slack.help/hc/en-us/articles/218080037-Getting-started-for-new-members
t

theiw

10/24/2018, 8:08 PM
@Shawn thanks for this
👍 1