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

Bug 335785

Summary: cancel does not cancel long running build
Product: [Modeling] TMF Reporter: Henrik Lindberg <henrik.lindberg>
Component: Xtext BacklogAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: lieven.lemiengre, mark.g.j.christiaens
Version: 2.0.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Henrik Lindberg CLA 2011-01-30 06:58:45 EST
When there are issues in a grammar/lexer that makes it take a very long time to complete it is impossible to cancel the build in the ui when doing a "build clean". The only option is to kill the entire IDE process. This is is bad as it sometimes corrupts the test workspace.

The normal "exit" reports that it is waiting on the build to complete...

I understand that the performance monitor is not passed all the way to the lower levels of the antlr code. But it may be possible to do something in the lexer's nextToken, or have a separate tread that checks cancel status and simply kills the parser...
Comment 1 Mark Christiaens CLA 2011-06-27 07:28:01 EDT
Just wanted to mention that this is an issue for us too.  We sometimes have pretty big files (couple of MiBs) that take half a minute or so to process.
Comment 2 Sven Efftinge CLA 2012-11-20 12:20:36 EST
The monitor is passed down to the typical time consumers and checked for the cancel state. We could of course
pass it down to the metal but I suggest people should unit-test their languages before deploying them into the IDE.