cancel
Showing results for 
Search instead for 
Did you mean: 

Headless linux build - need compile_commands.json for PCLintPlus

AO'Do.1
Associate

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.

1 REPLY 1

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

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.