Bug 387148

Summary: Problems with Indentation
Product: [Applications] kdevelop Reporter: Kieran McCusker <kieran.mccusker>
Component: All editorsAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: mail
Priority: NOR    
Version First Reported In: 5.2.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: attachment-28735-0.html

Description Kieran McCusker 2017-11-20 11:46:38 UTC
In the latest release kdevelop (and kate) seems to be misbehaving for me. When I edit .coffee (but applies to other file types too) files. If I have a construct e.g.
        $(".uploads > li").on 'click', ->

and I position myself at the end of line and press return the cursor moves underneath the $ and I then press tab to indent. All well and good so far. I then type 3 characters and the line shifts one tab to the left. If I don't notice it and retab I get an error when trying to test the code. It doesn't appear to matter what settings I have Configure -> Editing -> Indentation

Any help much appreciated.

Kieran
Comment 1 Sven Brauch 2017-11-20 12:07:39 UTC
This is a bug in KTextEditor, I think affected versions are .36 and .37 or something like that. Sorry. Either update to a newer version of KTextEditor, downgrade to an earlier one, or use the AppImage from kdevelop.org/download.
Comment 2 Sven Brauch 2017-11-20 12:11:12 UTC
IIRC what you can also do as a stupid workaround is to set the indenter to cstyle for all cases you care about, that should not have this issue.
Comment 3 Kieran McCusker 2017-11-20 13:06:47 UTC
Created attachment 108978 [details]
attachment-28735-0.html

I am on 38 from fedora 26 updates testing. That has the bug.

Kieran

On Mon, 20 Nov 2017, 12:11 Sven Brauch, <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=387148
>
> --- Comment #2 from Sven Brauch <mail@svenbrauch.de> ---
> IIRC what you can also do as a stupid workaround is to set the indenter to
> cstyle for all cases you care about, that should not have this issue.
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 4 Sven Brauch 2017-11-20 13:08:31 UTC
Yeah, I just checked -- actually, it's only fixed in .40+ :/