Community
Participate
Working Groups
Build Identifier: Build id: I20100608-0911 Xtend should show an error when the developer forgets a semicolon. Reproducible: Always Steps to Reproduce: 1. Create new Xtext project. 2. In the generator project, in the Extensions.ext file, kill the last semicolon. 3. Save the file. No error is shown, only running the generator workflow results in an error message like org.eclipse.xpand2.Generator - mismatched input '<EOF>' expecting ';' on line 0 org.eclipse.internal.xtend.xtend.parser.ParseException: mismatched input '<EOF>' expecting ';' on line 0
I think this is a problem of Xtend. So you should post this bug in the component Xpand next time as Xtend is a part of it. Sebastian will change the component for this bug.
The missing semicolon issue is also discussed in bug#312571
ResourceContributorBase#getErrorHandler(): start position of the error is 0 when a semicolon is missing at the end of the file. This caused that no error marker was produced. In this special case the file length must be determined to get the right position for the marker.
Created attachment 186171 [details] mylyn/context/zip
Created attachment 186369 [details] patch for this bug this patch fixes this bug, but the patch for 312571 is needed to be applied before!
Patch looks fine. Thanks for it!
Part of Kepler M4 (Version 1.3.0)
Requested via bug 522520. -M.