Closely related to Stable component IDs, it would help me if SquareLine export stable-sorted function prototypes and header includes to reduce merge conflicts when updating our device firmware codebase from our UI engineer.
Do you see alternative options and workaround to achieve it?
Not practically, no.
Mention some use cases
Checking in changes from SquareLine studio on a branch, then merging that branch.
Example of undesired headers and prototype order shuffling
AFAIK the header/prototype export order is not alphabetical at the moment but what the project-data (the order in which objects are added) dictates. But nevertheless it’s a good idea to get them sorted and make git-diffs even smaller, thanks for pointing it out.
That seems like it should make sense and largely matches what I’ve seen exporting the project from only Windows.
However, we recently tried exporting on Linux, and found the include ordering changed again - causing a giant diff each time we exported on a different OS and checked it back into git. So it seems there is some other parameter to the ordering.