Bug 24070 - Project doesn't get autobuild when missing project is added.
Summary: Project doesn't get autobuild when missing project is added.
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 24301 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-09-25 05:48 EDT by Andreas Krüger CLA
Modified: 2003-02-07 10:05 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-25 05:48:25 EDT
State:

Some projects in the workspace.  Autobuild switched of.


Sequence of events:

I say "Build all".

There is a task on some project "B":
It cannot be buildt because it depends on some project "A" which
does not exist in the workspace.

I switch autobuild on (Window/Preferences/Perform build autom. on res. mod.).

I add the missing project "A" from CVS.

Result: "A" gets build, but "B" still isn't build.

So I go to "B".  The task is still there.

Under "project", there is no option "build project", but there is an option
"rebuild project".  So I hit that.

Finally, "B" is build.

(I would have reopened bug 5109 if Bugzilla'd let me.)
Comment 1 Kent Johnson CLA 2002-09-25 12:57:05 EDT
Which build/drop are you running?

I tried in my current 2.0.x drop and it works fine.
Comment 2 Andreas Krüger CLA 2002-09-27 04:48:08 EDT
I'm running 2.0.1, build id 200208291828 .


I just tried, I can indeed reproduce the problem,
or something very much alike it.  Here is what I did:

Deleted project "A", including files in file space.

As I have autobuild on, eclipse tries to build "B" but cannot.
So it tells me "B" can no longer be built. Fine.

I change my preferences to "autobuild off".

I check out A from the CVS repository.  Nothing gets build.

I switch autobuild back on.

Now, some build activity starts.  When it's over,
project A has been built alright.

Project B, however, has a task
"The project was not built since it depends on A, which failed to build."


If that matters: "A" and "B" are short names I invented for this bug report.
The real name of "A" sorts alphabetically later than the real name of "B".
So maybe eclipse tries to built "B" first, can't do as "A" has not yet been
built, and then builds "A" fine, and leaves it at that?

From the messages that flash on the screen,
I have a notion this is the sequence of events as they happen.
Comment 3 Kent Johnson CLA 2002-09-30 12:08:00 EDT
John, can you reproduce this?

Is this related to http://dev.eclipse.org/bugs/show_bug.cgi?id=20689
Comment 4 Andreas Krüger CLA 2002-10-01 03:36:14 EDT
Would the stuff they asked me to do for bug 24015 help you here, to?
Comment 5 Andreas Krüger CLA 2002-10-02 03:51:07 EDT
This bug seems to be a specific instance of a more general problem, namely,
"switching autobuild on does not always cause a complete build".

That same problem has turned up in a different context, namely, in bug 24015.

(Kent - to get a link to another bug in Bugzilla,
just type the word "bug" followed by the bug number.)
I have typed in a description of the more general problem as bug 24301.

If you think that's a usefull approach, please mark this bug as a duplicate
of bug 24301.  If I have overlooked something or you disagree,
we can continue to work on this here in this bug.  (Which is why
I don't resolve this as a duplicate myself.)
Comment 6 Andreas Krüger CLA 2002-10-02 03:58:48 EDT
To answer Kent's question:

> Is this related to http://dev.eclipse.org/bugs/show_bug.cgi?id=20689

I don't think so.
Comment 7 John Arthorne CLA 2003-02-06 16:00:13 EST
This works for me.  I assume this was an issue with cyclic dependencies between
projects?  Can you confirm this works in build I20030206 (or wait until M5 is
released tomorrow if you prefer).
Comment 8 John Arthorne CLA 2003-02-06 16:01:22 EST
*** Bug 24301 has been marked as a duplicate of this bug. ***
Comment 9 Andreas Krüger CLA 2003-02-07 09:33:44 EST
John -

this was not an issue with cyclic dependencies.
I don't allow cyclic dependencies between projects to crop up.

I have 2.1 M4, and even with that, the problem seems to have been fixed.
I cannot reproduce the bug myself any more.
Comment 10 John Arthorne CLA 2003-02-07 10:05:44 EST
Ok, Closing.