intellij icon indicating copy to clipboard operation
intellij copied to clipboard

"Code insight is unavailable because the sbt project is not loaded" for hybrid sbt / bazel project

Open Friendseeker opened this issue 7 months ago • 1 comments

Description of the bug:

Issue

When a project is hybrid sbt / bazel (has project/build.properties), IntelliJ would think this project is a sbt project, and disable code insight since the sbt project is not loaded.

Image

Proposed solution

Similar to https://github.com/JetBrains/intellij-scala/commit/e7a77382a095087d29c1c3bb82b9e7b183c4d921

Use BuildToolModuleHandler API to register that the project is already imported via Bazel.

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.

Create a Hello World Scala Bazel Project

Add a build.sbt and project/build.properties for the Hello World Project.

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

2025.1.1.1

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

Scala

What Bazel plugin version are you using?

2025.04.29.0.1-api-version-251

Have you found anything relevant by searching the web?

No response

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

No response

Friendseeker avatar May 27 '25 03:05 Friendseeker

Duplicate of #7630.

odisseus avatar May 28 '25 10:05 odisseus