Bug 438212 - Changes made to compile configurations do not get saved to CMakeCache.txt and therefore ignored
Summary: Changes made to compile configurations do not get saved to CMakeCache.txt and...
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: All build tools (show other bugs)
Version: 5.6.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-07 13:44 UTC by S. Janczewski
Modified: 2021-09-06 07:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.6.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description S. Janczewski 2021-06-07 13:44:41 UTC
SUMMARY
Impossible to make changes to build configuration. Changes made do not get written co CMakeCache.txt and ignored in builds. Reading CMakeCache.txt by KDevelop works fine. Changing it by hand wit text editor outside KDevelop allows to make necessary changes to build configuration. KDevelop will read changed file fine. Simply will not save changes to it. No error is reported. 

STEPS TO REPRODUCE
1. Open any project. Open configuration.
2. In Configure CMake Settings, Select Show Advanced. Show advanced values
3. Make any changes to any options - compilers, flags, etc.
4. Select Apply then OK, or simply OK.


OBSERVED RESULT
Changes are not saved. No error is reported. CMakeCache.txt is not changed. 

EXPECTED RESULT
CMakeCache.txt should be changed and build configuration updated. 

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSUSE Leap 15.3
(available in About System)
KDE Plasma Version: 5.18.6
KDE Frameworks Version: 5.76.0
Qt Version: 5.12.7

ADDITIONAL INFORMATION
OpenSuse installer did not originally include the indent package and KDevelop messages indicated that it was missing when configuration changes were attempted. I have installed the indent package. The messages disappeared but the problem with not saved configurations remained.

KDevelop logs following messages when started from console. None of them during changes of build configuration:

Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kdevplatform.shell: Can't load plugin "kdevghprovider" some of its required dependencies could not be fulfilled: "org.kdevelop.IBasicVersionControl@kdevgit"
kf.kio.core: We got some errors while running testparm "Weak crypto is allowed"
qrc:/qml/Develop.qml:139:21: QML Heading: Binding loop detected for property "font.pointSize"
qrc:/qml/area_code.qml:87:9: QML Heading: Binding loop detected for property "font.pointSize"
qrc:/qml/area_code.qml:63:9: QML Heading: Binding loop detected for property "font.pointSize"
kdevelop.plugins.welcomepage: "Last fetch of news feed was on Mon Jun 7 07:44:11 2021 GMT+0200"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevastyle" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevcustomscript" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevcustomscript" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevcustomscript" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevcustomscript" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevcustomscript" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevcustomscript" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevcustomscript" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevcustomscript" supports unknown mimetype entry "text/x-objchdr"
kdevplatform.shell: formatter plugin "kdevcustomscript" supports unknown mimetype entry "text/x-objc++src"
kdevplatform.shell: formatter plugin "kdevcustomscript" supports unknown mimetype entry "text/x-objchdr"
Comment 1 Igor Kushnir 2021-06-10 16:04:36 UTC
This bug is a more general version of Bug 431194.
Comment 2 S. Janczewski 2021-06-11 19:11:25 UTC
(In reply to Igor Kushnir from comment #1)
> This bug is a more general version of Bug 431194.

Thanks. Sure looks like it.
Comment 3 Bug Janitor Service 2021-09-02 10:33:55 UTC
A possibly relevant merge request was started @ https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/253
Comment 4 Bug Janitor Service 2021-09-02 10:33:57 UTC
A possibly relevant merge request was started @ https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/253
Comment 5 Igor Kushnir 2021-09-06 07:52:28 UTC
Git commit 52409f95531a2c52c19afcf5461022b5ff93bf43 by Igor Kushnir.
Committed on 06/09/2021 at 07:51.
Pushed by igorkushnir into branch '5.6'.

Revert "Run configure once to apply cmake preferences for CMake file api usage"

This reverts commit 4887d28ec73db039b63a2609b92600e90721654a.

This commit prevented KDevelop from storing CMake Settings changes.
Related: bug 431194
FIXED-IN: 5.6.3

M  +0    -8    plugins/cmake/settings/cmakepreferences.cpp

https://invent.kde.org/kdevelop/kdevelop/commit/52409f95531a2c52c19afcf5461022b5ff93bf43