Bug 399320 - Semantic highlighting works partially after switching branch
Summary: Semantic highlighting works partially after switching branch
Status: REOPENED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (show other bugs)
Version: 5.2.4
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-02 21:40 UTC by Piotr Mierzwinski
Modified: 2025-04-10 19:57 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Mierzwinski 2018-10-02 21:40:16 UTC
SUMMARY
I have opened couple files belong to one branch (master). I switch (from terminal) to another branch (new_feature) in this branch I have also the same files. When I activate next tabs (opened files) I observe that in one files has been applied correctly semantic highlighting, in next is nothing applied and another only semantic highlighting is applied partially (calling some functions and classes are not highlighted and members are highlighted). Refresh file (F5) doesn't help.

Is there any way to force semantic highlighting for one file or for all opened files (skipping restart of KDevelop)?

STEPS TO REPRODUCE
1. open couple files in project for branch A
2. switch to branch B (from terminal)
3. switch between files (tabs) and check if semantic highlighting has been applied

OBSERVED RESULT
semantic highlighting is applied only partially for opened files, so for some files is present for some doesn't, for some only partially

EXPECTED RESULT
semantic highlighting should be applied for all opened files

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.13.5
KDE Frameworks Version: 5.50.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
Comment 1 Sven Brauch 2018-10-02 21:45:59 UTC
I have seen this too sometimes. I always click "reload project", that helps. In general the updating of dependent files if a dependency changes seems a bit wonky ...
Comment 2 Piotr Mierzwinski 2018-10-03 16:45:02 UTC
Thanks for advice. 
Anyway this is only workaround and KDevelop should do it, so to say, without help from outside. The question is why doesn't do it correctly.
Comment 3 Justin Zobel 2022-12-01 04:34:26 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-12-16 05:14:00 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 2022-12-31 05:24:08 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!
Comment 6 Igor Kushnir 2025-04-10 19:57:53 UTC
I started noticing this bug only a few days ago. I am surprised it was reported 6.5 years ago. Does some configuration trigger it or does it always happen?

Reloading the project doesn't help. But closing a document and opening it again or adding a space and pressing Ctrl+Z highlights this one document correctly.