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

Bug: Qt Creator reorders yaml file for no apparent reason

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

Wellu gravatar image

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

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

Comments

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

Joni ( 2014-01-06 11:53:58 +0300 )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 +0300 )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 +0300 )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 +0300 )edit

1 Answer

Sort by » oldest newest most voted
2

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

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

Comments

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 +0300 )edit
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

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

Seen: 430 times

Last updated: Jan 07 '14