Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321180 - Syntax Coloring, Semantic Highlighting Exception
Summary: Syntax Coloring, Semantic Highlighting Exception
Status: CLOSED DUPLICATE of bug 321228
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-28 16:49 EDT by Silver Zachara CLA
Modified: 2020-05-14 11:18 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Silver Zachara CLA 2010-07-28 16:49:40 EDT
Hi,

in some situations this exceptions occurs and some Syntax Coloring isn't applied:

!ENTRY org.eclipse.wst.sse.ui 4 4 2010-07-28 22:48:05.375
!MESSAGE null
!STACK 0
org.eclipse.jface.text.BadLocationException
        at org.eclipse.wst.sse.core.internal.text.GenericPositionManager.addPosition(GenericPositionManager.java:84)
        at org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.addPosition(BasicStructuredDocument.java:870)
        at org.eclipse.wst.sse.ui.internal.style.SemanticHighlightingPresenter.updatePresentation(SemanticHighlightingPresenter.java:471)
        at org.eclipse.wst.sse.ui.internal.style.SemanticHighlightingPresenter$1.run(SemanticHighlightingPresenter.java:404)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Comment 1 Roy Ganor CLA 2010-07-29 03:25:19 EDT
Hi Snop,

Can you provide more details on how to reproduce this issue?

This log isn't that helpful as it mentions a general problem caused in the semantic highlighting not a specific one.

Thanks!
Comment 2 Silver Zachara CLA 2010-07-29 06:39:23 EDT
Hi Roy,

I don't know how to reproduce this, but I have set e.g. brown color and underline for variable parameters in function and when I switch to some file this Syntax Coloring ins't applied ( not for all opened PHP files ). But just close and open the file again repair the Syntax Coloring and everything is ok.
This issue come up after few hours of work in PDT 2.2, but I have created this issue, because I want to try catch situation when this issue arise.
And I want to tell that there are 3-5 very hard reproducible problems with syntax coloring with any exceptions, but with this problems we can live.
Comment 3 michel kollenhoven CLA 2010-08-05 09:17:00 EDT
https://bugs.eclipse.org/bugs/show_bug.cgi?id=321228
duplicate ?
Comment 4 Silver Zachara CLA 2010-08-05 10:33:28 EDT
Yes it's duplicate, the exception is the same.

*** This bug has been marked as a duplicate of bug 321228 ***
Comment 5 Gadi Goldbarg CLA 2010-08-20 10:32:28 EDT
I close it as Duplicate of Bug 321228
Kalin Yanev
kalin.a@zend.com