Bug 132788 - Reformat code is disabled after creating new project
Summary: Reformat code is disabled after creating new project
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.3.4
Platform: Debian testing Linux
: NOR minor
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-22 10:16 UTC by Jeremy Lainé
Modified: 2006-08-22 15:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.