-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AbstractImageBuilder and ICompilerFactory not passing a CompilationProgress #3370
Comments
relates to #3317 |
Actually, even that last call as part of |
Compilation of a single source takes usually only milliseconds. Why would you like to check for cancel more often? |
Because not all cases are Compilation of a single source. Import jdt.core in a fresh workspace and you get more than a thousand files built together. And this takes about a dozen of seconds with ECJ. |
Sure, i have projects that take minutes to build, but i have no problem in canceling them (despite APT) - feels like NameEnvironment.findClass() is called often enough, especially since canceling wait at least 1second any way (see BuildNotifier.millisecondsBeforeCancelAutoBuild) |
From an implementation of compiler (either with ECJ or Javac as backend), it's not possible to check the cancellation status directly because no CompilationProgress is passed to the compiler. It seems possible to easily-ish implementation such a CompilationProgress in AbstractImageBuilder delegating to BuildNotifier, and to improve the ICompilerFactory interface so it forwards such CompilationProgress object.
The text was updated successfully, but these errors were encountered: