https://bugs.kde.org/show_bug.cgi?id=510587
Bug ID: 510587
Summary: Identation broken in terminal
Classification: Applications
Product: kate
Version First 23.08.5
Reported In:
Platform: Flatpak
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: indentation
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
When sending indented text block to interactive console (via key shortcut in
Python), each line is indented one level further, breaking the code in python
STEPS TO REPRODUCE
1. Create an indented block in py-file
(e.g.
def test(a):
print('1')
print('2')
print('3')
)
2. Send to python terminal via key shortcut
OBSERVED RESULT
in the terminal, following is seen :
>>> def test(a):
... print('1')
... print('2')
... print('3')
...
File "<python-input-1>", line 3
print('2')
IndentationError: unexpected indent
>>>
EXPECTED RESULT
normal execution with indentation kept as in the editor
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 24.04.3 LTS
KDE Frameworks Version: none installed i guess (kio: 5.115.0-0ubuntu6)
Qt Version: 5.15.13
ADDITIONAL INFORMATION
There was a similar discussion in vscode github, where the issue seems to be
fixed: https://github.com/microsoft/vscode-python/issues/24256
--
You are receiving this mail because:
You are watching all bug changes.