Bug 23402 - Cancel on compile has no effect
Summary: Cancel on compile has no effect
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.1 M1   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-11 08:55 EDT by Andreas Krüger CLA
Modified: 2003-03-23 12:19 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Krüger CLA 2002-09-11 08:55:44 EDT
I have a big recompile runing, but pressing "Cancel" on the "Progress Information"
does not stop the compile, neither does it seem to impress Eclipse in any other
way.  I do have "autocompilation on change" switched on.

I started the compile by adding some resource directory in some other project
as a "class file" directory to the build CLASSPATH, which I'm (now) sure was
a dumb thing to do.
Comment 1 Philipe Mulet CLA 2002-09-13 05:02:58 EDT
The compiler checks for cancellation each time it writes out a classfile. So if 
it is thinking for a long time, writing no file out, then cancel will seem not 
to occur.

Kent- can you double check we don't miss an obvious case ? Maybe we should 
check in other places in the builder as well ?
Comment 2 Kent Johnson CLA 2002-09-18 12:55:07 EDT
Adding a binary folder to a project invokes a full build so I suspect it took a 
while for the compiler to finish compiling the 'first' source file.

A full build will scrub the output folder and recompile all the source files. 
The builder can only check the cancel button when the compiler provides it 
with 'new' .class files.

How long did it take before it cancelled?
Comment 3 Andreas Krüger CLA 2002-09-19 02:57:16 EDT
Don't know how long it took.  Actually, I faintly remembered I might
have simply killed eclipse.  This has been a (rather eventful) week,
I don't remember those details any more.  Sorry.
Comment 4 Kent Johnson CLA 2002-09-19 10:10:05 EDT
Double checked the calls to cancel... looks fine.

Closing.