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

Bug 422986

Summary: error/warning annotations make visible whitespace characters disappear
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: EditorAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: grant_gayed
Version: 5.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2013-12-02 12:37:06 EST
1. Enable the "show tabs" or "show spaces" option
2. Comment out a line using //
3. Expected to see whitespace characters shown within the commented-out string, but they are not shown.
Comment 1 Mark Macdonald CLA 2013-12-02 12:48:30 EST
Whitespace also vanishes when an error or warning annotation appears on the code, for example in this code:

> foo(function() {
>      var x;
>      var y;
> })

You'll get a "missing semicolon" warning on the entire foo(..) call. When the warning appears, the whitespace characters disappear.
Comment 2 Grant Gayed CLA 2013-12-02 16:40:07 EST
The comment 0 problem is fixed > 20131202, commit: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=9c4e1ae4e5e0a7ada547c008d0f0ea44124f9f59 .

The comment 2 problem is probably an editor issue, so changing report title and reassigning to SSQ.
Comment 3 Silenio Quarti CLA 2013-12-03 12:40:29 EST
(In reply to Grant Gayed from comment #2)
> The comment 2 problem is probably an editor issue, so changing report title
> and reassigning to SSQ.

The squiggles and the whitespace annotations are both background images. One overrides the other.  Squiggles are more important to me, so they win.    Maybe we could fix this by changing the contents of the whitespaces spans to some special unicode value (like MIDDLE DOT, RIGHTWARDS DOUBLE ARROW). But this would not work with tab characters as we would loose the browsers tab expansion.  I do not see any simple way of fixing this.
Comment 4 John Arthorne CLA 2015-05-05 14:51:44 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html