JetBrains / rules_idea

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for the 2022.1.3 and EAP Intellij

liucijus opened this issue · comments

I tried updating Intellij used in test example, but I'm getting compilation error:

ERROR: /home/vaidas/.cache/bazel/_bazel_vaidas/5c021e50cea8bb825fd0a3a624775fd3/external/idea_ultimate/indexing/BUILD.bazel:2:16: KotlinCompile @idea_ultimate//indexing:indexing_lib { kt: 5, java: 1, srcjars: 0 } for k8 failed: (Exit 1): build failed: error executing command bazel-out/host/bin/external/io_bazel_rules_kotlin/src/main/kotlin/build '--flagfile=bazel-out/k8-fastbuild/bin/external/idea_ultimate/indexing/indexing_lib-kt-java.jar-0.params'
warning: some JAR files in the classpath have the Kotlin Runtime library bundled into them. This may cause difficult to debug problems if there's a different version of the Kotlin Runtime library in the classpath. Consider removing these libraries from the classpath
bazel-out/k8-fastbuild/bin/external/idea_ultimate/lib/_ijar/binary_libs/lib/3rd-party-rt-ijar.jar: warning: library has Kotlin runtime bundled into it
external/rules_intellij/src/main/kotlin/rules_intellij/indexing/IndexingService.kt:8:39: error: unresolved reference: StringHash
import com.intellij.openapi.util.text.StringHash
                                      ^
external/rules_intellij/src/main/kotlin/rules_intellij/indexing/IndexingService.kt:9:29: error: unresolved reference: exists
import com.intellij.util.io.exists

Intellij:

#WORKSPACE
intellij(
    name = "idea_ultimate",
    plugins = {
        "indexing-shared-ultimate:intellij.indexing.shared:221.6008.1": "44472c50bca5e0c595467ea0f9f9b46d9232bcdb9ef53abe8cafb001f13622f0",
        "indexing-shared:intellij.indexing.shared.core": "",
    },
    sha256 = "598e085c98283c3206d9b755e6ef5f3321a3a11b1e5affa740276e9e3b0bd1f0",
    type = "ideaIU",
    version = "2022.1.3",
)

Plugins:

http_file(
    name = "bazel_plugin_221",
    sha256 = "4209c61d070114df340a3d6bb172ef9becdaeff72dc793b9f3f9f238e2f8c307",
    urls = ["https://github.com/wix-playground/intellij/releases/download/v20.0-NIGHTLY.884/bazel-intellij-20221.20-NIGHTLY.884.zip"],
)

http_file(
    name = "scala_plugin_221",
    sha256 = "6a8cfc87c9485f48bd13856b5f4819a020f77c2a90f38d7128e026fc323330a7",
    urls = ["https://plugins.jetbrains.com/files/1347/167520/scala-intellij-bin-2022.1.13.zip"],
)

# BUILD
setup_intellij_toolchain(
    name = "ide",
    ide_repo = "idea_ultimate",
    plugins = {
        "ijwb": "@bazel_plugin_221//file",
        "Scala": "@scala_plugin_221//file",
    },
)