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

Bug 525383

Summary: [10.13] StyleRange doesn't reset GlyphMetrics on macOS High Sierra
Product: [Eclipse Project] Platform Reporter: Martin Lippert <mlippert>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: brad.giaccio, gavrielkay, lshanmug, rory.carr
Version: 4.7.1   
Target Milestone: 4.7.2   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Bug Depends on:    
Bug Blocks: 527287    
Attachments:
Description Flags
Screenshot none

Description Martin Lippert CLA 2017-09-29 09:41:00 EDT
We use the ANSI Color plugin in STS that applies some styling to the console output (quite nice, actually). Unfortunately it doesn't work in macOS High Sierra anymore.

I debugged this a bit and here are my early results:

- the listener creates an array of StyleRange objects
- as soon as one of the StyleRange objects contains a GlpyhMetrics object, it applies those settings
- if the next StyleRange might have no or a different GlyphMetrics object, those settings are NOT reset, the first set GlyphMetrics object applies until the end of the line. The style is reset for the next line.
Comment 1 Martin Lippert CLA 2017-09-29 09:41:53 EDT
I also haven't found a workaround for this. If there is any workaround, I would be happy to incorporate that into the ANSI Color plugin... :-)
Comment 2 Till Brychcy CLA 2017-10-05 02:11:31 EDT
*** Bug 519343 has been marked as a duplicate of this bug. ***
Comment 3 Jessica Pamdeth CLA 2017-10-05 15:36:08 EDT
Workaround:  In Run Configurations > Spring Boot App > Spring Boot tab, uncheck ANSI console output
Comment 4 Lakshmi P Shanmugam CLA 2017-11-16 01:59:30 EST
This could be related to Bug 525465. Can you please verify if the problem is fixed in I20171115-0115 or later I-builds which include the fix (http://download.eclipse.org/eclipse/downloads/drops4/I20171115-0115/)?

If it still happens can you provide a snippet/sample application to reproduce the problem?
Comment 5 Rory Carr CLA 2018-01-18 16:54:48 EST
Created attachment 272334 [details]
Screenshot
Comment 6 Rory Carr CLA 2018-01-18 16:55:55 EST
Issue appears to be resolved in build I20180117-2000
Comment 7 Martin Lippert CLA 2018-01-22 12:35:13 EST
Yeah, same here, seems to work again. Will close this issue here.
Comment 8 Lakshmi P Shanmugam CLA 2018-01-23 04:25:52 EST
Thanks for the confirmation!