Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 335785 - cancel does not cancel long running build
Summary: cancel does not cancel long running build
Status: CLOSED WONTFIX
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext Backlog (show other bugs)
Version: 2.0.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-30 06:58 EST by Henrik Lindberg CLA
Modified: 2012-11-20 12:20 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.