bazelbuild / intellij

IntelliJ plugin for Bazel projects
https://github.com/bazelbuild/intellij/blob/master/docs/index.md
Apache License 2.0
762 stars 305 forks source link

Kotlin Project Failed to load to IntelliJ while Testing #6939

Closed satyanandak closed 2 weeks ago

satyanandak commented 2 weeks ago

Description of the bug:

Hi Team, We have observed that the Kotlin Project is failing to load into IDE with below console output

Updating VCS... Running Bazel info... Command: bazel info --tool_tag=ijwb:IDEA:ultimate --override_repository=intellij_aspect=/usr/local/google/home/satyanandak/.local/share/JetBrains/IntelliJIdea2024.2/ijwb/aspect --override_repository=intellij_aspect_template=/usr/local/google/home/satyanandak/workspace/v2024.10.22/intellij/.ijwb/aspect --curses=no --color=yes --progress_in_terminal_title=no bazel-bin bazel-genfiles bazel-testlogs execution_root package_path output_path output_base release starlark-semantics java-home --

Which category does this issue belong to?

Intellij

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

Open Project Remove “examples” from v20YY.MM.DD/intellij/.bazelignore file Open the IDE after installing the Bazel plugin you built Select “Import Bazel Project”
Select v20YY.MM.DD/intellij as your workspace then click Next Select “Import Project View File” and point it to v20YY.MM.DD/intellij/examples/kotlin/simple_project/simple_project.bazelproject then click Next.

Which Intellij IDE are you using? Please provide the specific version.

IntelliJ IDEA 2024.1.7 & 2024.2.4

What programming languages and tools are you using? Please provide specific versions.

Kotlin

What Bazel plugin version are you using?

2024.10.22.0.1-api-version-241 & 2024.10.22.0.1-api-version-242

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

Kotlin_testing

mai93 commented 2 weeks ago

I think you need to use bazelisk instead, can you download it from here and add its path in the IDE by navigating to File -> Settings -> Other Settings -> Bazel Settings and put the path in Bazel binary location then try importing again.

satyanandak commented 2 weeks ago

@mai93, Thank You ! followed the steps and worked for me.