Bug 452158 - Commenting Python code with ctrl+d is missing a space after the sharp #
Summary: Commenting Python code with ctrl+d is missing a space after the sharp #
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: indentation (other bugs)
Version First Reported In: 21.12.3
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-01 23:48 UTC by Andreas
Modified: 2022-10-02 20:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Block comment should start with '# ' (E265) (54.17 KB, image/jpeg)
2022-04-01 23:48 UTC, Andreas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas 2022-04-01 23:48:14 UTC
Created attachment 147886 [details]
Block comment should start with '# ' (E265)

SUMMARY
When commenting code in Python with ctrl + d, there is no space between the # and the code.
LSP shows the following error:
Block comment should start with '# ' (E265)
Python Recommendations
https://peps.python.org/pep-0008/#block-comments

Also, if the code is indented, then # is not placed at the beginning of the line and LSP also show an error.
Unexpected indentation (comment) (E116)
Python Recommendations
https://peps.python.org/pep-0008/#indentation

Is it possible to fix this? It is very inconvenient to fix it by hand every time.


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20220330
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.2
Kernel Version: 5.16.15-1-default (64-bit)
Graphics Platform: X11
Comment 1 Bug Janitor Service 2022-07-16 13:25:37 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/321
Comment 2 Christoph Cullmann 2022-10-02 20:39:08 UTC
That should be fixed with current git master.