Skip to content

Write CLion's CMake state in the bootstrap so profiles are listed on a fresh checkout - #2771

Merged
3vcloud merged 1 commit into
devfrom
cmake-state-components
Nov 29, 2026
Merged

3vcloud merged 1 commit into
devfrom
cmake-state-components

Conversation

@3vcloud

@3vcloud 3vcloud commented Nov 29, 2026

Copy link
Copy Markdown
Member

Summary

  • On a fresh checkout, CLion lists no CMake profiles until its first-open wizard is run by hand. The bootstrap wrote the profile list, but not the state components CLion keeps for a configured preset project (CMakePresetLoader, CMakeProjectFlavorService, CMakeReloadState), so CLion took the project as already configured.
  • set_profiles now adds those three components when they're missing. Existing ones are left alone.
  • Adds a [Developers] line to the 8.35 release notes, since the change affects developers' IDE setup.

Testing

  • Ran set_profiles on a copy of this repo's workspace.xml with the components removed: all three come back, the profile list is written, and the file still parses.
  • npm --prefix site run build passes.
  • Not tested: a full bootstrap with a fresh .idea followed by a CLion open. The same components were verified in the launcher repository's CLion setup.

🤖 Generated with Claude Code

… fresh checkout

On a fresh checkout CLion only lists the CMake profiles once the workspace
holds the state components it keeps for a configured preset project. The
bootstrap wrote the profile list but not those components, so CLion took
the project as already configured and listed nothing until its first-open
wizard was run by hand. set_profiles now adds CMakePresetLoader,
CMakeProjectFlavorService and CMakeReloadState when they're missing.
@3vcloud
3vcloud changed the base branch from master to dev November 29, 2026 00:02
@3vcloud
3vcloud merged commit fc04981 into dev Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant