Project generation from command line, headless
I'm trying to generate a project from a .ioc file automatically on a headless system. This sees to be a very common source of problems. Is there a definitive solution for this? Otherwise I'm just here adding my vote for ST to add support for this.
OS: OpenSUSE.
I can't find a way of doing this with the STM32cubeIDE install. But if I install STM32cubeMX separately then the docs say you can do this via a script using ./STM32CubeMX -s yourscript. That nor the -i (for interactive) arguments work. The solution as provided in threads from 2019 is to do: "java -jar /path/to/STM32CubeMx -q yourscript". Why are the docs still wrong / why is this workaround still required when this has been a reported issue for 4 years?
The next issue is that even this workaround isn't true CLI, as it still requires a display, if you try to run this headless you get: No X11 DISPLAY variable was set,
And when running it on the local machine I see a small gui progress bar, and then a dialogue box pops up asking if I'm sure I want to generate the project. This issue I've seen reported in forum post from 2022. I could setup a virtual display to handle the progress bar, but having to press OK on the dialogue box is a problem, maybe I can find a way to fake keyboard input or something to get through this, but it really shouldn't be needed.
The best workaround ATM seems to be check in the auto-generated code. As with many other people I'd really rather avoid this, so are there any real solutions here?
Thanks
Andrew Parlane
