Bug 316074 - Python indentation script not loaded
Summary: Python indentation script not loaded
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: indentation (show other bugs)
Version: Git
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-03 16:01 UTC by Gerald Senarclens de Grancy
Modified: 2013-03-17 19:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Senarclens de Grancy 2013-03-03 16:01:35 UTC
When starting kate (compiled from git, pulled in the last two weeks) and opening a python file, the indentation script is not loaded. The error message is

kate(11163)/Kate (Indentation) KateAutoIndent::setMode: mode "python" requires a different highlight style: document style ' "Python" ', but script requires ' "python" '

Reproducible: Always

Steps to Reproduce:
1. open kate
2. load a .py file
3. type "if True:" followed by enter
Actual Results:  
no indentation applied

Expected Results:  
cursor is indented 4 spaces

I had provided a suggested fix in https://git.reviewboard.kde.org/r/109128/ but Christoph Cullmann
 pointed me to the syntax file instead. A fix there is even easier.
Comment 1 Christoph Cullmann 2013-03-03 16:33:26 UTC
Git commit ef9dd817db2a072609cd0391ea962111c45abf52 by Christoph Cullmann.
Committed on 03/03/2013 at 17:32.
Pushed by cullmann into branch 'master'.

add style=python to python.xml to fix indentation problems if indenters want that style
REVIEW: 109128
thanks to Gerald Senarclens de Grancy

M  +1    -1    part/syntax/data/python.xml

http://commits.kde.org/kate/ef9dd817db2a072609cd0391ea962111c45abf52
Comment 2 Gerald Senarclens de Grancy 2013-03-17 19:04:40 UTC
Git commit 9085818474fe3f9c344600796706353f8f450138 by Gerald Senarclens de Grancy, on behalf of Christoph Cullmann.
Committed on 03/03/2013 at 17:32.
Pushed by geralds into branch 'KDE/4.10'.

add style=python to python.xml to fix indentation problems if indenters want that style
REVIEW: 109128
thanks to Gerald Senarclens de Grancy

Conflicts:
	part/syntax/data/python.xml

M  +1    -1    part/syntax/data/python.xml

http://commits.kde.org/kate/9085818474fe3f9c344600796706353f8f450138