Bug 269205

Summary: Haskell Indentation plus let statement crashes kate
Product: [Applications] kate Reporter: Roger Pixley <skreech2>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: annma, ehamberg
Priority: NOR    
Version: 4.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Roger Pixley 2011-03-23 07:10:14 UTC
Version:           4.0 (using KDE 4.6.1) 
OS:                Linux

Setting the Indentation to haskell in kate then using certain let phrases will freeze the program.

Reproducible: Always

Steps to Reproduce:
1) Open Kate/Kwrite 
2) In the Settings For the Editor under the tab indentation Set the style to haskell
3) type on a line let {}
4) press enter
5) File or Vote for Bug

Actual Results:  
The whole  UI froze up on occasion the mouse pointer will vanish if you put it over the program

Expected Results:  
A new line with a wrking cursour and Keyboard
Comment 1 Anne-Marie Mahfouf 2011-03-23 07:50:36 UTC
I cannot reproduce using Kate 3.6.41. When I set Haskell as "Default indentation mode" then when I type let {} and Return, the next line starts under the first { and so on. No freeze.

What is happening when you open a file with Haskell indentation mode? (not typing, opening one)?
Can you run Kate under gdb and get a backtrace when Kate freezes?
Comment 2 Erlend Hamberg 2011-03-23 13:31:06 UTC
I can confirm this erroneous behaviour. I see the same on Kate from git.
Comment 3 Erlend Hamberg 2011-03-23 13:34:54 UTC
No, sorry I was wrong. This seems to be fixed in git.
Looks like this is the same bug as in #265145.

Closing it as a duplicate of this. If this is not the case, please reopen.

*** This bug has been marked as a duplicate of bug 265145 ***
Comment 4 Anne-Marie Mahfouf 2011-03-23 14:05:30 UTC
I run Kate from git master