Bug: Qt Creator reorders yaml file for no apparent reason
yaml files contain necessary information for Sailfish project thus those need to be kept is version control system. Whenever a Sailfish project is opened the yaml file is regenerated even though pro file has not changed at all. In fact yaml file seems to contain the exact same lines however the order has been changed.
It seems that at least sections PkgConfigBR and Files get reordered for no apparent reason. This means that the version control system sees difference in the file and wants to commit it back. This creates unnecessary commits and changes to the source tree.
I have seen this same bug existing. it's not a big problem but annoying indeed.
Joni ( 2014-01-06 11:53:58 +0200 )editAlso it's writing full paths as in
Tanghus ( 2014-01-06 18:06:58 +0200 )edit/usr/share
instead of%{_datadir}
and insists in making those "corrections" every time you touch the .pro.I too have entries changing order, and changing again on a subsequent save. I also have new entries to the yaml file sometime completely vanishing if the yaml is saved immediately after creating a new entry.
FlyingSheep ( 2014-01-07 08:09:22 +0200 )editLittle workaround for now: everytime the project file is saved it will rearrange those items in inverse order, so to get back the previous state (when you want to commit) just save the project file again.
Dickson ( 2014-01-07 18:35:52 +0200 )edit