intellij icon indicating copy to clipboard operation
intellij copied to clipboard

No Scala SDK in module - Bazel 8

Open michalbogacz opened this issue 6 months ago • 2 comments

Description of the bug:

Cannot fully import project https://github.com/michalbogacz/scala-bazel-monorepo After import there is error "No Scala SDK in module". This happens only in Bazel 8.

Image

Even if I configure SDK manually, Bazel plugin sync will remove it.

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.

Try to import example project with newest IntelliJ and Bazel plugin.

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

IntelliJ IDEA 2025.1.3 (Ultimate Edition)

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

Scala 3.3.6

What Bazel plugin version are you using?

2025.05.27.0.1-api-version-251

Have you found anything relevant by searching the web?

The closest one seems to be https://github.com/bazelbuild/intellij/issues/7678 but mentioned workaround https://github.com/bazelbuild/intellij/issues/7678#issuecomment-2984867527 does not help in this case.

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

This project imports without SDK issue when Bazel version is 7

michalbogacz avatar Jun 24 '25 07:06 michalbogacz

Works on my machine (with the workaround, that is). IU 251.26094.98, Bazel plugin 72e1e44f24adaba8b0f173e525c3f53909e349f8.

odisseus avatar Jun 25 '25 02:06 odisseus

The workaround also does not work for me. When I initiate a sync with the Bazel plugin, the "No Scala SDK in module" banner re-appears.

eric-maynard avatar Aug 28 '25 17:08 eric-maynard