Bug 160762 - kate code folding and hilighting is glitchy for python
Summary: kate code folding and hilighting is glitchy for python
Status: RESOLVED DUPLICATE of bug 119185
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: 2008-04-12 22:20 UTC by Yuriy Kozlov
Modified: 2008-08-28 20:16 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot of a collapsible block that makes no sense (139.03 KB, image/png)
2008-04-12 22:24 UTC, Yuriy Kozlov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuriy Kozlov 2008-04-12 22:20:07 UTC
Version:            (using KDE 4.0.3)
Installed from:    Ubuntu Packages

I am using kate 4.0.3 to edit this file:
http://websvn.kde.org/*checkout*/branches/extragear/kde3/utils/guidance/wineconfig/wineconfig.py

There are several glitches in the code folding.  Some blocks seem to begin and end in arbitrary places.  Collapsing any one of most of the classes results in folding in the entire document.  I will attach a screenshot with some examples.
Comment 1 Yuriy Kozlov 2008-04-12 22:24:18 UTC
Created attachment 24311 [details]
screenshot of a collapsible block that makes no sense

In screenshot:
- A few collapse arrows appear on blank lines.
- The hilighted block is an arbitrary bunch of code spanning a couple functions
and ending later in the middle of an if statement.
- Some of the other collapse arrows don't make any sense in other ways.
Comment 2 Dario Andres 2008-08-01 01:08:37 UTC
Version 3.1.0 Using KDE 4.1.00 (KDE 4.1.0) (KDEmod) in ArchLinux i686:

I can partially reproduce this bug:

Collapsing "def InstallWine(self):" (line 304) will hide the all file below instead of hiding only that function (there are a lot of unrelated functions below). The same fot collapsing "class DrivesPage(QWidget):" (line 509)

It didn't observe collapse arrows in blank lines or misplaced ones
Comment 3 Christoph Cullmann 2008-08-28 20:16:44 UTC
Codefolding needs really a revamp...

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