Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312599 - Argument not valid (syntax coloring disappears)
Summary: Argument not valid (syntax coloring disappears)
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-12 08:19 EDT by Marijn CLA
Modified: 2020-05-14 11:32 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marijn CLA 2010-05-12 08:19:30 EDT
I am using the PDT 2.2M7 all-in-one package and get the error below in my 'Error Log'. It occurs after doing a find (CTRL+F) in a class file containing various properties and methods.
Also after the error occurs any syntax coloring disappears (all text becomes black) past the end of the function/method in which the search result was found.

Unfortunately I have not been able to reproduce the problem in a clean environment.

-- Error Details --
Date: Wed May 12 14:06:27 CEST 2010
Message: Problems occurred when invoking code from plug-in: "org.eclipse.text".
Severity: Error
Product: Eclipse 1.3.0.20100427-1120 (org.eclipse.epp.package.php.product)
Plugin: org.eclipse.text
Session Data:
eclipse.buildId=I20100429-1549
java.version=1.6.0_19
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.php.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.php.product


Exception Stack Trace:
java.lang.IllegalArgumentException: Argument not valid
	at org.eclipse.swt.SWT.error(SWT.java:4064)
	at org.eclipse.swt.SWT.error(SWT.java:3998)
	at org.eclipse.swt.SWT.error(SWT.java:3969)
	at org.eclipse.swt.custom.StyledText.setStyleRanges(StyledText.java:9647)
	at org.eclipse.swt.custom.StyledText.replaceStyleRanges(StyledText.java:7678)
	at org.eclipse.jface.text.TextViewer.addPresentation(TextViewer.java:4803)
	at org.eclipse.jface.text.TextViewer.changeTextPresentation(TextViewer.java:4882)
	at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler.applyTextRegionCollection(StructuredPresentationReconciler.java:893)
	at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler.processDamage(StructuredPresentationReconciler.java:868)
	at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler$InternalListener.textChanged(StructuredPresentationReconciler.java:420)
	at org.eclipse.jface.text.TextViewer.updateTextListeners(TextViewer.java:2820)
	at org.eclipse.jface.text.TextViewer$VisibleDocumentListener.documentChanged(TextViewer.java:401)
	at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged2(AbstractDocument.java:769)
	at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:736)
	at org.eclipse.jface.text.AbstractDocument.doFireDocumentChanged(AbstractDocument.java:721)
	at org.eclipse.jface.text.AbstractDocument.fireDocumentChanged(AbstractDocument.java:796)
	at org.eclipse.jface.text.projection.ProjectionDocument.internalAddMasterDocumentRange(ProjectionDocument.java:355)
	at org.eclipse.jface.text.projection.ProjectionDocument.addMasterDocumentRange(ProjectionDocument.java:574)
	at org.eclipse.jface.text.projection.ProjectionDocument.addMasterDocumentRange(ProjectionDocument.java:542)
	at org.eclipse.jface.text.source.projection.ProjectionViewer.addMasterDocumentRange(ProjectionViewer.java:640)
	at org.eclipse.jface.text.source.projection.ProjectionViewer.executeProjectionCommands(ProjectionViewer.java:1025)
	at org.eclipse.jface.text.source.projection.ProjectionViewer.catchupWithProjectionAnnotationModel(ProjectionViewer.java:1007)
	at org.eclipse.jface.text.source.projection.ProjectionViewer.processCatchupRequest(ProjectionViewer.java:879)
	at org.eclipse.jface.text.source.projection.ProjectionViewer$AnnotationModelListener.processModelChanged(ProjectionViewer.java:124)
	at org.eclipse.jface.text.source.projection.ProjectionViewer$AnnotationModelListener.modelChanged(ProjectionViewer.java:116)
	at org.eclipse.jface.text.source.AnnotationModel.fireModelChanged(AnnotationModel.java:612)
	at org.eclipse.jface.text.source.AnnotationModel$InternalModelListener.modelChanged(AnnotationModel.java:261)
	at org.eclipse.jface.text.source.AnnotationModel.fireModelChanged(AnnotationModel.java:612)
	at org.eclipse.jface.text.source.AnnotationModel.fireModelChanged(AnnotationModel.java:578)
	at org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.expandAll(ProjectionAnnotationModel.java:163)
	at org.eclipse.jface.text.source.projection.ProjectionAnnotationModel.expandAll(ProjectionAnnotationModel.java:100)
	at org.eclipse.jface.text.source.projection.ProjectionViewer.exposeModelRange(ProjectionViewer.java:1311)
	at org.eclipse.jface.text.source.projection.ProjectionViewer.findAndSelect(ProjectionViewer.java:1762)
	at org.eclipse.jface.text.TextViewer$FindReplaceTarget.findAndSelect(TextViewer.java:879)
	at org.eclipse.ui.texteditor.FindReplaceTarget.findAndSelect(FindReplaceTarget.java:88)
	at org.eclipse.ui.texteditor.FindReplaceDialog.findAndSelect(FindReplaceDialog.java:818)
	at org.eclipse.ui.texteditor.FindReplaceDialog.findIndex(FindReplaceDialog.java:773)
	at org.eclipse.ui.texteditor.FindReplaceDialog.findNext(FindReplaceDialog.java:877)
	at org.eclipse.ui.texteditor.FindReplaceDialog.performSearch(FindReplaceDialog.java:1372)
	at org.eclipse.ui.texteditor.FindReplaceDialog.performSearch(FindReplaceDialog.java:1351)
	at org.eclipse.ui.texteditor.FindReplaceDialog.access$25(FindReplaceDialog.java:1350)
	at org.eclipse.ui.texteditor.FindReplaceDialog$1.widgetSelected(FindReplaceDialog.java:313)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2601)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2565)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2399)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:669)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:662)
	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 Zhongwei Zhao CLA 2010-07-26 20:38:35 EDT
maybe this has been fixed,if you can reproduce it ,reopen it ,thanks!
Comment 2 Petyo Tanchev CLA 2010-09-01 07:32:50 EDT
Closing the bug
Please reopen if still relevant.