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

Bug 422867

Summary: [eslint] "Unexpected end of input" error not shown
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: JS ToolsAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 5.0 M1   
Hardware: PC   
OS: Windows 7   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=423459
Whiteboard:
Attachments:
Description Flags
screenshot of repeated error popup none

Description Mark Macdonald CLA 2013-11-29 11:47:38 EST
Created attachment 237870 [details]
screenshot of repeated error popup

1. Create a js file containing this code
> function f() {}
> f(1, 2, 3

2. Using the js console, I can see a "Parse error: Unexpected end of input" is produced at the end of the file, but that error is not shown in the annotation (left-hand) ruler, nor is there a squiggly in the buffer.

If I hover over the very bottom of the overview (right-hand) ruler, I can see a popup that shows the error message, but it's flakey and shows the several times for some reason (??).
Comment 1 Mark Macdonald CLA 2013-11-29 16:13:02 EST
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=ddee07a

The logic that clamped problem start & end indices into the buffer's extents was not quite right, and produced a marker that was out of range. This is fixed, the parse error marker is now visible in the rulers.

It's not perfect though, as the error squiggle is hidden by the less important "Missing semicolon" squiggle that overlaps it.