Bug 230334

Summary: source (re-)format does't work for custom Makefile projects
Product: [Applications] kdevelop Reporter: Robert Bredereck <RBredereck>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED WORKSFORME    
Severity: major CC: david.nolden.kde
Priority: NOR    
Version: unspecified   
Target Milestone: 4.0.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Robert Bredereck 2010-03-11 17:11:51 UTC
Version:           3.9.99 (using KDE 4.4.1)
OS:                Linux
Installed from:    Ubuntu Packages

I use kdevelop to manage a automake/autoconf c++ application. Since there is no other ("stable") possibility I use the "custom Makefile" option.

So, nearly everything worked fine, until I updated from beta 8 (3.9.98) to beta 9 (3.9.99). Now, I am not able to format/reformat my source codes. The reformat button in the menu and popup-menu are deaktivated (grey) and the format files option in the project overview does nothing.

Hint: (re-)format works fine with a new cmake project from template, but not with existing (and under beta 5-8 working) or recently imported custom Makefile projects.
Comment 1 Robert Bredereck 2010-03-17 14:37:46 UTC
I analyzed the behavior a little bit more:

I started a new session and created a new project (from template cmake qt application). Formatting in this project works as well as formatting my automake (custom Makefile) files if I open them seperately in the new cmake project. Then, I opened my automake project in the same session. Et voila: Formatting works even if I close the cmake project. Thus, I have a workaround that allows me formatting my files again even if I close the session and start it again.

But the problem still exists. If I start a new session without creating (or opening an existing) cmake project - just opening my custom Makefile project, then formatting does not work!

However, I think the knowledge about the workaround above should help to identify the problem (it seems to be a "session problem").
Comment 2 Milian Wolff 2010-08-18 15:32:25 UTC
works for me, reopen if you can reproduce with current version of kdevelop.