Bug 320181 - Syntax coloring broken with custom colors
Summary: Syntax coloring broken with custom colors
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P2 major with 5 votes (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2010-07-17 17:06 EDT by Philip Taffner CLA
Modified: 2020-05-14 11:08 EDT (History)
12 users (show)

See Also:


Attachments
screenshot (44.17 KB, image/png)
2010-07-17 17:07 EDT, Philip Taffner CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Taffner CLA 2010-07-17 17:06:46 EDT
Build Identifier: 20100617-1415

The syntax coloring is horrible broken.
Look at the attached screenshot.

Reproducible: Always
Comment 1 Philip Taffner CLA 2010-07-17 17:07:25 EDT
Created attachment 174566 [details]
screenshot
Comment 2 Zhongwei Zhao CLA 2010-07-17 22:38:46 EDT
hi,how to reproduce it?
Comment 3 Attila Wind CLA 2010-12-05 04:42:38 EST
I have the same error.

I don't need to do any special movement to reproduce it. It always happen as soon as I start typing.

I will try to attach a screenshot video about the behaviour to let you see what and how happens in motion.
I will also attach my version numbers as a screenshot.

It is maybe important that I have customized the syntax coloring settings.
Now I have restored the default settings to see what happens but it didn't solve the problem.

Once the problem appears if I switch to another file int the editor then switch back Eclipse corrects the malformed highlighting within a second. You will see it in the video.
Comment 5 Vitaliy CLA 2011-01-06 06:15:34 EST
Hello, 
I have same problem and it reproduce very simple!
After you made changes in Syntax coloring just  open any php file and start edit it and you will see this bug.
Seems for me eclipse save colors like an image with and when you start edit file colors stays on their places (just try to add one sybol before any patr of php code and you will see what i mean)

other bug i found when you make changes in Syntax coloring theme and then apply changes eclipse can hangs for a while and take 100% of CPU

Hope we will have fix for this soon :)
Comment 6 Sepehr Lajevardi CLA 2011-02-05 11:21:15 EST
I can also confirm this under Ubuntu 10.10, using Eclipse Version: Helios Service Release 1, Build id: 20100917-0705 with custom syntax highlighting enabled. And I would like to mark this issue as CRITICAL!
Comment 7 Sepehr Lajevardi CLA 2011-02-05 11:27:41 EST
Here is a screeshot: http://i.imgur.com/WSEVr.png
Comment 8 Aleksei CLA 2011-10-10 04:37:24 EDT
I am having the same problem. I am using PDT 3.7.1. on Windows 7. When I open a PHP file, the syntax is colored correctly. The moment I start making changes, the colors are screwed up. Also it stops highlighting syntax errors.
Comment 9 Zhongwei Zhao CLA 2011-10-10 23:10:49 EDT
hi,

Attila's issue has been fixed already,but because our build issue,we can not build a new version:(

But Philip's screenshot is different from Attila's,and I have the same issue long time ago,but I could not reproduce it for a long time!
Comment 10 stuart.brockman CLA 2011-11-14 06:26:56 EST
I'm also having this problem on Eclipse 3.7.1 on Mac OS X. Oddly, it seems to only affect certain files, I have identical files (one in ~/Sites and one in a subdirectory of my workspace in ~/Documents) and only the one in ~/Sites is affected.

The ~/Sites folder is used by Apache, so maybe it has something do with it being a "live" php script?
Comment 11 Marian Pestka CLA 2012-02-18 08:44:42 EST
I confirm this horrible bug. It reveals itself after few minutes editing php code on fresh installed eclipse indigo on windows xp, windows 7, ubuntu 11.10 and mac. When it starts going crazy you can set your carret at beginning of the file and type something. As you type, whole syntax coloring for rest of the file moves right as it would be in insert mode. So coloring moves, text stays still.
Editing files were simple Controller files from Yii framework.
Comment 12 Kir CLA 2012-04-17 05:42:36 EDT
Steps to reproduce:
1. install http://www.eclipsecolorthemes.org/?view=plugin
2. select any theme
3. try to edit php code in any place but not in bottom in the file.
Comment 13 Kir CLA 2012-05-18 02:06:17 EDT
I fixed this issue.
Try to click "Restore Default" in "Syntax Coloring" in each "Syntax element"
Then click "Restore Defaults" in "Syntax Coloring".
Click Apply.
Try to set any custom color theme.

Now after end typing, editor will be refreshed and coloring will be normal :)
Comment 14 Dawid Pakula CLA 2015-06-30 19:01:34 EDT
I remember this problem and it was related to model synchronization while writing. 

No longer appear on current stable (3.5) and nightly (3.6).

Marking as fixed.
Comment 15 Sylvia Tancheva CLA 2016-06-08 10:25:29 EDT
Closing, if someone still encounters the problem more recent information should be given.