Summary: | PHP (?) : Highlighter confuses code parts to highlight. | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | jay <jay> |
Component: | Language Support: PHP | Assignee: | kdevelop-bugs-null |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | HI | ||
Version: | git master | ||
Target Milestone: | 4.2.3 | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Highlighting 1
Highlighting 2 Function with highlight error |
Description
jay
2011-09-09 08:37:35 UTC
Created attachment 63523 [details]
Highlighting 1
Created attachment 63524 [details]
Highlighting 2
sigh yeah we've had similar errors before and they are a royal pita to debug and fix. without a way to reproduce it, I won't be able to help much I'm afraid :( if you spot it the next time, try to remember what you just wrote and repeat it. the error most likely stems from inserting/removing lines and our code not updating stuff properly Created attachment 68113 [details]
Function with highlight error
I found a small enough part of code, which has a repeatable bug appearance.
Steps to repeat this bug:
1. cursor on beginning of line 9 ( $aBt = null;)
2. Shift+Down (selects line 9)
3. delete (removes selected line 9)
After that "fore" in "foreach" gets the same color as was the color of $aBt.
Right now I'm using ~2 months old kdevelop, and a can not upgrade now, so I hope this will be helpful.
indeed nice test - I'll investigate. Git commit a6024bbc52b40c3d481959d390dba5ccf0ed671d by Milian Wolff. Committed on 11/02/2012 at 17:59. Pushed by mwolff into branch '1.3'. properly update ranges of declarations we reuse (i.e. encounter) M +1 -1 duchain/builders/contextbuilder.cpp M +1 -1 duchain/builders/contextbuilder.h M +8 -2 duchain/builders/declarationbuilder.cpp M +43 -0 duchain/tests/duchain_multiplefiles.cpp M +1 -1 duchain/tests/duchain_multiplefiles.h http://commits.kde.org/kdev-php/a6024bbc52b40c3d481959d390dba5ccf0ed671d |