Bug 265721 - Bad folding on python file with 103 lines, attached example
Summary: Bad folding on python file with 103 lines, attached example
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: folding (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-07 21:16 UTC by Tomasz Narloch
Modified: 2011-08-04 11:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example python code with folding corruption (1.82 KB, application/x-python)
2011-02-07 21:16 UTC, Tomasz Narloch
Details
Proof (170.22 KB, image/png)
2011-04-01 01:30 UTC, Tomasz Narloch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Narloch 2011-02-07 21:16:34 UTC
Created attachment 56953 [details]
Example python code with folding corruption

Version:           unspecified (using KDE 4.6.0) 
OS:                Linux



Reproducible: Didn't try

Steps to Reproduce:
I create a python class with lots of nested 'if True:', 'elif True:', 'else:'.
For Now is OK.
Next copy paste the class lots of time.
At the third and the next class folding is bad.




The same result exists on kdevelop and kate.
My os: Ubuntu 10.10 with fresh kde 4.6.
Comment 1 Andrey Batyiev 2011-04-01 00:22:12 UTC
Hello

Folding your python example works fine at least for me. It would be nice if you add a screenshot.
Comment 2 Tomasz Narloch 2011-04-01 01:30:59 UTC
Created attachment 58486 [details]
Proof

Try to collapse on line 53
Comment 3 Dominik Haumann 2011-08-01 09:25:18 UTC
Can to some degree reproduce wrong folds after folding the first two classes. But this works as expected in the development version (KDE 4.8).

Can you please build Kate from sources (no worries, very easy!) according to
http://kate-editor.org/get-it/ and report back?

Meanwhile, I close the report.
Comment 4 Tomasz Narloch 2011-08-04 09:28:10 UTC
I got kate from git as described http://kate-editor.org/get-it/

Folding works good.
Comment 5 Dominik Haumann 2011-08-04 11:36:48 UTC
Thanks for the feedback!