2026-02-26 12:29 PM
I've successfully set up a docker container building my project using the headless script. I've also successfully generated a Windows version of the compile_commands.json using the setting inside the properties menu. But I need a version of this that's from the linux build, because I want to lint inside the docker container for continuous integration. I've looked at what gets changed inside the .settings folder when that setting is changed in the normal non headless IDE ("generateCDB=true"), and I've tried simply building the code with that folder and the files in it in the same place in linux, but compile_commands.json is not generated.
2026-04-28 6:11 AM - edited 2026-04-28 6:12 AM
I want to be able to save the setting in git. But unfortunately STM32CubeIDE saves the setting inside the workspace. So every developer has to enable the setting for every project manually and headless build doesn't work. So it's unusable.
Additionally compile_commands.json has bugs in it: https://community.st.com/t5/stm32cubeide-mcus/stm32cubeide-json-compilation-database-generator-does-not-create/m-p/793690