Skip to content

Load project

CLion SOP: index SRS using configure + Makefiles (WSL)

I spent several hours trying to get CLion indexing working with trunk/compile_commands.json. Even after adjusting -I include paths and regenerating/running on WSL native, symbol resolution still didn’t work. In the end, the reliable fix was to switch to Makefile project loading generated by the configure script and it works fine.

Steps

  1. Generate Makefiles

    • Run configure so it produces the parent Makefile under trunk/.
  2. Reset CLion project metadata

    • Delete trunk/.idea/ if it exists.
  3. Recreate the CLion project

    • Close the project.
    • Remove the old CLion project files in trunk/.
  4. Open the project correctly

    • Open CLion with the trunk/ folder (where the parent Makefile lives).
    • Load as a Makefile project.
  5. Let CLion clean/reload

    • When prompted, choose Clean/Reload.
  6. Verify

    • Use CLion’s Build tools to confirm the Makefile project model is loaded.
    • Symbols and “Go to definition” should work normally.

img

Share this page:

LinkedIn Twitter Facebook

Comments