We have moved to a new Sailfish OS Forum. Please start new discussions there.

Bug: Qt Creator reorders yaml file for no apparent reason

asked 2014-01-06 09:58:02 +0200

Wellu gravatar image

updated 2014-01-07 15:16:45 +0200

kaltsi gravatar image

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.

edit retag flag offensive close delete


I have seen this same bug existing. it's not a big problem but annoying indeed.

Joni ( 2014-01-06 11:53:58 +0200 )edit

Also it's writing full paths as in /usr/share instead of %{_datadir} and insists in making those "corrections" every time you touch the .pro.

Tanghus ( 2014-01-06 18:06:58 +0200 )edit

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 )edit

Little 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

1 Answer

Sort by » oldest newest most voted

answered 2014-01-07 15:16:29 +0200

kaltsi gravatar image

Qt Creator tries to be clever and helpful with the yaml file, but often fails to be either. There are going to be some changes to the yaml file editor in upcoming SDK releases. We're thinking of removing the special view and just displaying yaml as a plain text file to start with.

edit flag offensive delete publish link more


The yaml editor has been removed in the upcoming SDK release. Yaml is opened and treated as a plain text file.

kaltsi ( 2014-04-13 15:40:45 +0200 )edit
Login/Signup to Answer

Question tools



Asked: 2014-01-06 09:58:02 +0200

Seen: 429 times

Last updated: Jan 07 '14