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

Bug 427397

Summary: JSON editor appears completely blank if content contains any problems
Product: [ECD] Orion Reporter: Grant Gayed <grant_gayed>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Silenio_Quarti
Version: 5.0   
Target Milestone: 5.0 RC1   
Hardware: PC   
OS: All   
Whiteboard:

Description Grant Gayed CLA 2014-02-04 13:09:53 EST
- create a .json file with content:

{a: "b"}

- view some other file in the editor
- view this .json file in the editor
- it appears completely blank because the 'a' should be in quotes, so it's invalid
- in cases like this the plug-in should at least display a message indicating that it tried to open the file, because the current behaviour gives the impression of something like an uncaught exception causing the editor to not be shown
Comment 1 Silenio Quarti CLA 2014-02-04 16:57:41 EST
The editor now displays the error that happened while parsing the JSON text.

Fixed

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=73ab56d1d6334449bb7eb96a0ce6a96f0a5d352b