Bug 132788

Summary: Reformat code is disabled after creating new project
Product: [Applications] kdevelop Reporter: Jeremy LainĂ© <jeremy.laine>
Component: generalAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: 3.3.4   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jeremy Lainé 2006-08-22 10:16:48 UTC
Version:           3.3.4 (using KDE KDE 3.5.4)
Installed from:    Debian testing/unstable Packages
OS:                Linux

After creating new project, reformat source feature is disabled.
How to reproduce:
1) Launch kdevelop
2) Project->New Project. Choose C++ as language and select "simple hello
   world program". Enter application name and press next button until project
   will not be opened.
3) After opening this project Edit->Reformat Source is disabled. To enable it
   I must reopen project or source file.

The correspond Debian bug entry:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=330028
Comment 1 Jens Dagerbo 2006-08-22 14:54:30 UTC
Right, this happens.

The reason is that the file is opened by the wizard, before the project is opened and the reformatting (astyle) plugin loaded. The reformatting plugin recognizes files by extension and takes the decision to enable the reformatting action when a file is opened. Since the first file is already open, the decision is never made.

Workaround: Switch to a different file and back again, once, after opening a project.
Comment 2 Jens Dagerbo 2006-08-22 15:03:03 UTC
Fixed in 3.4 branch, revision 575895.