Bug 433974

Summary: Sematic highlighting stops work after insert one or more lines in the middle of code
Product: [Applications] kdevelop Reporter: Piotr Mierzwinski <piotr.mierzwinski>
Component: Language Support: CPP (Clang-based)Assignee: kdevelop-bugs-null
Status: RESOLVED DUPLICATE    
Severity: normal CC: mail, piotr.mierzwinski
Priority: NOR    
Version First Reported In: 5.6.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Piotr Mierzwinski 2021-03-04 23:40:44 UTC
SUMMARY
Sematic highlighting stops work after  insert one or more lines, but only in code present below inserted lines. Needs to refresh file to get proper sematic highlighting in opened file.
I think this didn't happen in previous version, so seems to be regression.

STEPS TO REPRODUCE
1.  Open project with several files
2.  Open couple files
3. After indexing finished try to modify one of them
4. In the middle of code insert one or more lines (with correct syntax)

OBSERVED RESULT
Sematic highlighting stops work in code below inserted lines and needs to refresh whole file

EXPECTED RESULT
Sematic highlighting should not stops work after inserting any lines

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  Antergos/KDE
(available in About System)
KDE Plasma Version:  5.21.2
KDE Frameworks Version:  5.79.0
Qt Version:  5.15.2

ADDITIONAL INFORMATION
I observed also this issue in today's version of KDevelop built from code coming from master branch: kdevelop-git-5.6.2.r288.g0ac533db1e

KDE Application part in version 20.12.3
(among other: Kate, KWrite)
Comment 1 Francis Herne 2021-03-04 23:51:13 UTC
This is a bug in KTextEditor 5.79, not in KDevelop directly. It will be fixed by the next KDE Frameworks release.


https://invent.kde.org/frameworks/ktexteditor/-/commit/686da7797105a93035cfbc7edbf2a8e8f8adf0ec

*** This bug has been marked as a duplicate of bug 433434 ***
Comment 2 Piotr Mierzwinski 2021-03-04 23:58:23 UTC
Thanks for very quick answer.