Bug 505170 - KDevelop loses syntax highlighting and code completion when a file is changed and reloaded
Summary: KDevelop loses syntax highlighting and code completion when a file is changed...
Status: RESOLVED DUPLICATE of bug 399320
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (other bugs)
Version First Reported In: git master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-03 14:37 UTC by zvova7890
Modified: 2025-06-04 08:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zvova7890 2025-06-03 14:37:49 UTC
SUMMARY
For example, when switching branches, the editor loses syntax highlighting and code completion. It doesn't recover until the file is closed and reopened.

STEPS TO REPRODUCE
1. Open a bunch of C++ files
2. Switch git branch

OBSERVED RESULT
Editor turns into Kate without LSP

EXPECTED RESULT
Reparse and reapply highlight/code-completion on the fly

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.4-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 32 × AMD Ryzen 9 9950X 16-Core Processor
Memory: 93.9 GiB of RAM
Graphics Processor: AMD Radeon RX 7900 XT
Manufacturer: ASUS
Comment 1 zvova7890 2025-06-03 14:38:47 UTC
By highlight, I mean semantic rainbow
Comment 2 Igor Kushnir 2025-06-04 08:07:48 UTC

*** This bug has been marked as a duplicate of bug 399320 ***