Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335562

Summary: Hundreds of "Zero or negative length StyleRange" errors from plug-in: org.eclipse.wst.sse.ui
Product: z_Archived Reporter: jimmy2frets <catchall>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact: Ilina Stefanova <ilina.s>
Severity: normal    
Priority: P3 CC: kalin.a, thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:

Description jimmy2frets CLA 2011-01-27 07:26:35 EST
What steps will reproduce the problem?
1. Open a PHP file from a PHP project with javascript support
2. Results in hundreds of Zero or negative length StyleRange errors


-- Error Details --
Date: Thu Jan 27 12:14:35 GMT 2011
Message: Zero or negative length StyleRange 89785:0
Severity: Error
Product: Eclipse 1.3.1.20100913-1228 (org.eclipse.epp.package.php.product)
Plugin: org.eclipse.wst.sse.ui
Session Data:
eclipse.buildId=M20100909-0800
java.version=1.6.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.php.product -keyring /Users/jimmyo/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.php.product -keyring /Users/jimmyo/.eclipse_keyring -showlocation


Exception Stack Trace:
java.lang.IllegalArgumentException: Zero or negative length StyleRange 89785:0
	at org.eclipse.php.internal.ui.editor.configuration.PresentationCollector.add(PresentationCollector.java:41)
	at org.eclipse.wst.sse.ui.internal.provisional.style.AbstractLineStyleProvider.prepareTextRegion(AbstractLineStyleProvider.java:298)
	at org.eclipse.wst.sse.ui.internal.provisional.style.AbstractLineStyleProvider.prepareTextRegions(AbstractLineStyleProvider.java:331)
	at org.eclipse.wst.sse.ui.internal.provisional.style.AbstractLineStyleProvider.prepareRegions(AbstractLineStyleProvider.java:249)
	at org.eclipse.php.internal.ui.editor.configuration.StructuredDocumentDamagerRepairer.createPresentation(StructuredDocumentDamagerRepairer.java:27)
	at org.eclipse.php.internal.ui.editor.configuration.PHPStructuredPresentationReconciler.createPresentation(PHPStructuredPresentationReconciler.java:268)
	at org.eclipse.wst.sse.ui.internal.provisional.style.StructuredPresentationReconciler.createRepairDescription(StructuredPresentationReconciler.java:931)
	at org.eclipse.wst.sse.ui.internal.style.SemanticHighlightingPresenter.createPresentation(SemanticHighlightingPresenter.java:371)
	at org.eclipse.wst.sse.ui.internal.style.SemanticHighlightingReconciler.reconcile(SemanticHighlightingReconciler.java:150)
	at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.endProcessing(DocumentRegionProcessor.java:119)
	at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor.run(DirtyRegionProcessor.java:682)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Zhongwei Zhao CLA 2011-04-13 23:41:51 EDT
hi,this has been fixed  in head already,thanks
Comment 2 Kalin CLA 2011-07-29 09:29:23 EDT
Verified.
Closing...