Remember Flatpak build configuration
Affected version
- Nightly flatpak: Yes
Steps to reproduce
- In a project that use Flatpak to build, that you have previously build, create a syntax error in the flatpak manifest JSON.
- Reopen the project, the flatpak build configuration will be gone
Current behavior
There is no Flatpak build configuration. It revert to whatever it guessed. And no error is displayed. Actually there errors I got is that there was no meson because it used the host envinroment to build which is Silverblue.
Expected behavior
It tells me there is an error in the manifest.
Additional information
I have discussed it on IRC, here are some takeaways:
Builder scan for JSON file and tries to detect flatpak manifest. If there is an error it can't figure it out. That's understandable. But in the case the project was built that way previously. My suggestion is as follow, and that's just armchairing:
- when builder use the Flatpak manifest to build, the configuration is saved. It could just the path of the manifest.
- When open the project, the manifest save in the path is checked, if there is an error, the user gets notified.
Maybe this information can be saved in .buildconfig
. This would go a long way from "why doesn't it build, it can't find meson", which was the first symptom.
Edited by Sophie Herold