Bug 443229 - python highlights on f-string not work.
Summary: python highlights on f-string not work.
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-syntax-highlighting
Classification: Frameworks and Libraries
Component: syntax (other bugs)
Version First Reported In: 5.86.0
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-02 18:49 UTC by osnieltux
Modified: 2021-11-08 04:39 UTC (History)
2 users (show)

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


Attachments
Kate showing proper f-string highlighting and example of error highlight (44.03 KB, image/png)
2021-10-03 15:03 UTC, Jan Paul Batrina
Details

Note You need to log in before you can comment on or make changes to this bug.
Description osnieltux 2021-10-02 18:49:27 UTC
python f-string syntax not working correctly, highlights "f" as an error.


STEPS TO REPRODUCE
todo = "text"

print(f"show {todo}")


Operating System: Manjaro Linux
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.13.19-2-MANJARO (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i3-7130U CPU @ 2.70GHz
Memory: 11.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 620
Comment 1 Jan Paul Batrina 2021-10-03 15:01:35 UTC
Hello, thanks for the bug report!

I can't reproduce with kate/syntax-highlighting built from git master.

by "highlights "f" as an error", do you mean that it is colored red and has an underline (at least for the default breeze themes) just like the "incorrect" string in the screenshot below? If you can, please attach a screenshot of the highlighting in your system.

Also do you use the Language Server Protocol (LSP) plugin? The error highlighting might be coming from there, not from kate
Comment 2 Jan Paul Batrina 2021-10-03 15:03:04 UTC
Created attachment 142121 [details]
Kate showing proper f-string highlighting and example of error highlight
Comment 3 osnieltux 2021-10-09 05:21:15 UTC
I'm from latest manjaro, and still get the same error.

unfortunately I can't test the git version
Comment 4 Bug Janitor Service 2021-10-24 04:35:24 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 5 Bug Janitor Service 2021-11-08 04:39:15 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!