No errors visible within project
Answered
I have QMK project which is quite problematic for CLion, configured as suggested here https://youtrack.jetbrains.com/issue/CPP-24287/CLion-hangs-when-loading-the-QMK-firmware-project, via compilation database way.
Almost everything works, navigation, completion… only problem is, I never get any errors, like missing semis, nonexistent functions etc., so I need to watch compiler output for that which is pretty inconvenient.
Is there any config I am missing, or what could be the issue here?
Please sign in to leave a comment.
Hello!
Do you see any of the following indicators?
Hi,
thank you for looking into my issue.
- CLion 2025.1.1 is the version I am using
- yes, the behavior is same everywhere - but it is strange all the warning and smart things work just fine, the errors are the only thing that is not working at the moment
- there is how my editor looks on the screenshot
I don't see Tools → Compilation database in my IDE at all - I generated compile commands through QMK CLI app and opened resulting “compile_commands.json” as a project in CLion, which was the only way to get everything but errors itself working just fine.
It means that CLion doesn't recognize your project as a Compilation Database project. Because of that, there is
Context: None
in the Status bar, which means that CLion didn't find a resolve context for the file and therefore code insight features might not work reliably.Please close the project in CLion (File | Close Project), remove the
.idea
subdirectory from the project directory, and open the project in CLion as described in https://www.jetbrains.com/help/clion/compilation-database.html#compdb_load. Do you have Tools | Compilation Database after that? Are warnings/errors shown in the editor?Thank you very much for your help Anna, finally got it to work perfectly.