answered
2014-07-16 10:59:10 +0200
We ran into this problem once during internal testing, but were unable to figure out what could have been the cause. Thanks for the report, we'll try to figure it out.
Edit:
Now I understand the cause for this problem. If the alternate project folder is changed from the Qt Creator options after installation, that new value is not set correctly by the update process to the MerSDK virtual machine.
An example:
1) user installed the 1406 SDK and didn't select the alternate project folder in the installer, so it defaults to /home/user. Later he changes it to /opt and continues hacking happily.
2) upgrade dialog to 1407 pops up and user chooses to upgrade the SDK. The upgrade first removes the old MerSDK and recreates it using the new data from the upgrade. Unfortunately the upgrade process is unaware that the user has changed the alternate project folder to /opt and recreates MerSDK with the original value of /home/user.
Now Qt Creator thinks that the alt project folder is /opt and happily opens projects from there, but MerSDK thinks it's /home/user and when it tries to start building the project it cannot find the files from the correct place.
One way to fix it is to reinstall, the less destructive way to fix it is to set the alternate project folder from Qt Creator options first to /tmp and then back to /opt. This way MerSDK will be reconfigured to use the correct alt project folder.
Sorry for the bug, it was a case that was not properly tested. It is also non trivial to fix properly, but we'll figure out something.
Did you close Qt Creator during the update? Did you first try only removing the ~/.config/SailfishAlpha4 directory or did it really require the full reinstall? When removing the SailfishAlpha4 directory it is necessary to first close Qt Creator, then remove the dir and then restart Qt Creator.
kaltsi ( 2014-07-16 11:16:30 +0200 )editYes, I did close Qt Creator. I don't know however, if there was a background process still dangling or not. And no, I did not try removing the folder first before re-install, but you're right that probably might have fixed it without re-install
skubo ( 2014-07-16 11:27:24 +0200 )editI have the same problem with Linux. I started Qt Creator, selected "update" in help menu and started the update. After the first action of the updater it restarted itself and I continued the updater _without_ closing the Qt Creator. The updater then told me to close QT Creator. Then the updating could be continued.
Removing only ~/.config/SailfishAlpha4 is not sufficient to solve the problem.
ibins ( 2014-07-16 11:32:21 +0200 )editDid either of you have the "alternate source folder" configured with the previous SDK? The installer asks for it or it can be changed from Mer settings later. If you had it configured, does that folder path exist in your current environment?
kaltsi ( 2014-07-16 11:43:31 +0200 )editI think I had it configured to "/home/<user>/something ; and yes, the "something" exists.
skubo ( 2014-07-16 11:50:53 +0200 )edit