Bug 385962

Summary: kate indention jumps to next level on specific letters when it shouldn advance to next level
Product: [Frameworks and Libraries] frameworks-ktexteditor Reporter: Thomas Weissel <xapient>
Component: indentationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: a.samirh78
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Thomas Weissel 2017-10-19 18:52:45 UTC
i don't know how to put it in easier words..   i write a lot of python code in kate and in the recent version it's making me crazy!

def test:
    if this is that:
        print "same"
    else:           <<<  here lies the problem
        print "different"
    

if i manually decrease indention by using "backspace" kate will jump back to the same indention level as "print"  - i hit backspace again.. start writing "else" and it jumps again .. i hit enter in order to make a line break - decrease the indention level manually and write "else" and it advances again one level..

lets put it short:  if i manually decrease the indention level - kate has to follow my lead NO MATTER WHAT.. it must not indent automatically after i hit "backspace"   (and i'm sure this behaviour is new to kate)

probably i'm just "holding it wrong"   so please tell me what the preferred workflow with indention should be

it actually works if i hit backspace - then enter and then write a line.. but i don't think an extra blankline between the if block and the else block is python pep8 compliant

thx in advance
Comment 1 Dominik Haumann 2017-10-20 12:13:40 UTC
Which version of KDE Frameworks?
Comment 2 Thomas Weissel 2017-10-29 22:05:08 UTC
5.39.0

cheers
Comment 3 Dominik Haumann 2019-05-19 11:14:37 UTC
Hi Thomas,

sorry for the very late reply. With KDE Frameworks 5.58 I cannot reproduce this, or I am doing something wrong.

1. Can you still reproduce?
2. Are you sure the "Python" indentation mode is active in Tools > Indentation?
3. Can you please exactly describe what you type?
Comment 4 Ahmad Samir 2019-06-24 11:37:44 UTC
WAITINGFORINFO per comment#3.
Comment 5 Bug Janitor Service 2019-07-09 04:33:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Dominik Haumann 2019-07-10 06:36:47 UTC
Let's close for now. If you can still reproduce with a more recent version, please reopen - thanks!