Bug 217801 - Formatting currently open source file freezes IDE for a couple of minutes.
Summary: Formatting currently open source file freezes IDE for a couple of minutes.
Status: RESOLVED DUPLICATE of bug 215200
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: sourceformatter (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-08 00:44 UTC by Maciej Mrozowski
Modified: 2009-12-08 09:06 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 Maciej Mrozowski 2009-12-08 00:44:15 UTC
Version:           trunk as of 8/12/2009 (using Devel)
Compiler:          gcc (Gentoo 4.3.4 p1.0, pie-10.1.5) 4.3.4 
OS:                Linux
Installed from:    Compiled sources

Steps to reproduce

1. Open kdevelop and open sope C or C++ project.
2. Select astyle source formatter.
3. Open some relatively big (over 60KiB) source file in editor.
4. (optionally wait for background parser to finish all jobs).
5. Active 'Reformat source' - either from keyboard shortcut or from editor context menu.
6. Have a cup of coffee... (it will take a lot)

Now compare it with time needed to reformat source that's not opened in any editor window (at least in not active one) - it will take a few seconds at most.

Clearly there's some conflict of interest between source formatter and either duchain parser or syntax coloring or anything that may analyze open document in the process.
Comment 1 Andreas Pakulat 2009-12-08 09:06:48 UTC

*** This bug has been marked as a duplicate of bug 215200 ***