Skip to content

Importing Bazel project gets stuck / does not finish #7867

@rkartmann

Description

@rkartmann

Description of the bug:

When I try to import a new Bazel project (File > Import Bazel Project...), the new project window immediately gets stuck with a dialog window and a spinning wheel, making CLion unusable.

Image

This state never finishes. Therefore, I am unable to importing projects / project clones which I did not import before.

I can still open Bazel projects which I imported before with older versions of CLion and "Bazel for CLion" and (around 2025-05), but I cannot say at which point the import stopped working.

Project size does not seem to be relevant. Even the official hello world examples (e.g. https://github.com/bazelbuild/examples/tree/main/cpp-tutorial/stage1) cannot be imported.

Which category does this issue belong to?

CLion

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

  1. Clone https://github.com/bazelbuild/examples
  2. In CLion: File > Import Bazel Project...
  3. Workspace = .../examples/cpp-tutorial/stage1 > Next
  4. Create from scratch > Next
  5. Create

(Always trust project)

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

CLion 2025.2.1

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

C++

What Bazel plugin version are you using?

2025.08.04-api-version-252

Have you found anything relevant by searching the web?

No, I did not find reports of the whole IDE getting stuck when importing a project.

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

I have zero introspection into what is blocking, as there are no tool windows, consoles, ... in the new window. I can try to provide log files if someone points me to where they are.
I can press "Cancel" in the opened dialog to abort the import.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Untriaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions