Bug 17647 - Project was not built since it is inconsistent
Summary: Project was not built since it is inconsistent
Status: RESOLVED DUPLICATE of bug 16280
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 24291 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-24 10:00 EDT by Neil Swingler CLA
Modified: 2002-10-10 10:11 EDT (History)
3 users (show)

See Also:


Attachments
log files (3.37 KB, text/plain)
2002-06-25 05:02 EDT, Neil Swingler CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Swingler CLA 2002-05-24 10:00:41 EDT
I can't build my project. I always get this error message:
The project was not built since it is inconsistent. Ensure no other tool is 
browsing the output directory, then try refreshing this project and rebuilding 
it.

I am using 2 environments both with F1. Both give the same problems:

Nt 4.0: entire Eclipse project is in Clearcase (using a dynamic view). Clearcase
symbolic links are used to map the source and dependent jars into the project
directory. Since the whole project is in the Clearcase view, the build output
directory is of course managed by Clearcase.

Solaris/motif: Eclipse project is outside of clearcase. Symbolic links are used
to map the source from the clearcase view into my eclipse project. The build
output does not go to a Clearcase managed directory.

A similar report was mentioned in Bug 13721 which was then resolved as a
duplicate of Bug 13682. The latter has been resolved as fixed but this
problem does not seem to have been addressed.

I have tried installing the Clearcase plugin that comes with Rationals XDE
but that made no difference.

I found similar reports specifically related to using Clearcase at:
http://www.rational.com/HyperMail/cciug/hypermail/0205/0694.html
http://sourceforge.net/tracker/index.php?
func=detail&aid=550991&group_id=50595&atid=460297
http://dev.eclipse.org/newslists/news.eclipse.tools/msg20319.html
http://dev.eclipse.org/mhonarc/lists/eclipse-dev/msg00427.html
Comment 1 Neil Swingler CLA 2002-05-24 10:58:28 EDT
I have everything building again now be excluding some clearcase
related files from the build resource copy.

Comment 2 Kevin McGuire CLA 2002-05-24 11:41:33 EDT
Neil, I haven't been following this bug closely, but I suspect the problem is 
clearcase dynamic views, which you mention you are using.

There is a known problem with integration of CC dynamic views and eclipse: your 
view directory gets updated "under the covers" by CC and eclipse isn't informed 
that its out of date.  Also, the CC plugin isn't informed by the CC view 
manager thingy.  The plugin that DJ mentioned in the other bug report that 
looks for out of sync files was created for this particular problem.  I am not 
sure what else has been done on the CC front for that case.

I think symbolic links are problematic as well, but I am out of my area here.

I am moving this back to platform/core because I don't believe its a JDT bug.
Comment 3 Kevin McGuire CLA 2002-05-24 11:53:54 EDT
Also Neil, note there are a variety of ways that a resource can become out of 
sync with the file system.  I think this is part of the confusion with this bug 
report's history: the outward behaviour is the same but the cause is likely 
completely different.  This has caused some unfortunate swirl on our part, and 
I'm sure frustation on your part.
Comment 4 John Wiegand CLA 2002-05-24 17:07:28 EDT
I believe the jdt.core logs a more detailed internal error message (stack 
trace) to the .log file when the inconsistent project error is reported to the 
user.  Can you check to see if you have an associated log message, and post it 
here?  Thanks.
Comment 5 Philipe Mulet CLA 2002-05-25 08:52:14 EDT
The complaint coming from JDT/Core builder is coming from the fact some 
files/folders could not be deleted from the output folder. Usually it means 
that some resources were inconsistent or someone was holding onto them...
In all these situations, a stack trace should be present in the log entry...

If necessary, we can instrument some more the JDT/Core plug-in for easing 
debugging this issue. Please let us know...
Comment 6 Neil Swingler CLA 2002-05-28 05:35:44 EDT
I can workaround with the following build exclusions:
*.launch, .cmake*, *.contrib, *.keep, findmerge*

Stacktrace follows:

java.version=1.4.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_CH
Command-line arguments: -os win32 -ws win32 -arch x86 -data 
c:\things\eclipseData -feature org.eclipse.platform -install file:C:/Program 
Files/eclipse/
!ENTRY org.eclipse.jdt.core 4 4 Mai 28, 2002 10:05:31.206
!MESSAGE JavaBuilder handling ImageBuilderInternalException
!STACK 1
org.eclipse.core.internal.resources.ResourceException: Problems encountered 
while copying resources.
	at org.eclipse.core.internal.localstore.FileSystemResourceManager.copy
(FileSystemResourceManager.java:67)
	at org.eclipse.core.internal.resources.Resource.copy(Resource.java:355)
	at org.eclipse.core.internal.resources.Resource.copy(Resource.java:372)
	at org.eclipse.jdt.internal.core.builder.BatchImageBuilder$3.visit
(BatchImageBuilder.java:131)
	at org.eclipse.core.internal.resources.Resource.accept(Resource.java:58)
	at org.eclipse.core.internal.resources.Resource.accept(Resource.java:74)
	at org.eclipse.core.internal.resources.Resource.accept(Resource.java:74)
	at org.eclipse.core.internal.resources.Resource.accept(Resource.java:74)
	at org.eclipse.core.internal.resources.Resource.accept(Resource.java:74)
	at org.eclipse.core.internal.resources.Resource.accept(Resource.java:74)
	at org.eclipse.core.internal.resources.Resource.accept(Resource.java:74)
	at org.eclipse.core.internal.resources.Resource.accept(Resource.java:40)
	at 
org.eclipse.jdt.internal.core.builder.BatchImageBuilder.copyExtraResourcesBack
(BatchImageBuilder.java:116)
	at 
org.eclipse.jdt.internal.core.builder.BatchImageBuilder.scrubOutputFolder
(BatchImageBuilder.java:88)
	at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build
(BatchImageBuilder.java:33)
	at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll
(JavaBuilder.java:174)
	at org.eclipse.jdt.internal.core.builder.JavaBuilder.build
(JavaBuilder.java:99)
	at org.eclipse.core.internal.events.BuildManager$2.run
(BuildManager.java:383)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:802)
	at org.eclipse.core.runtime.Platform.run(Platform.java:416)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:119)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:173)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:183)
	at org.eclipse.core.internal.events.BuildManager$1.run
(BuildManager.java:143)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:802)
	at org.eclipse.core.runtime.Platform.run(Platform.java:416)
	at org.eclipse.core.internal.events.BuildManager.basicBuild
(BuildManager.java:157)
	at org.eclipse.core.internal.events.BuildManager.build
(BuildManager.java:208)
	at org.eclipse.core.internal.resources.Workspace.endOperation
(Workspace.java:733)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1366)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:78)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:98)
!ENTRY org.eclipse.core.resources 4 1 Mai 28, 2002 10:05:31.222
!MESSAGE Problems encountered while copying resources.
!SUBENTRY 1 org.eclipse.core.resources 4 274 Mai 28, 2002 10:05:31.222
Comment 7 John Arthorne CLA 2002-06-07 11:25:55 EDT
Neil, can you please try this again in F2?  Make sure you attach the complete 
log, because it appears that the log above is cut off at the bottom.
Comment 8 Neil Swingler CLA 2002-06-10 09:55:32 EDT
Initial impression of F2 is that the problem has been fixed. Will give it
a bit more time.
Comment 9 Neil Swingler CLA 2002-06-25 05:02:58 EDT
Created attachment 1583 [details]
log files
Comment 10 Neil Swingler CLA 2002-06-25 05:07:50 EDT
The attached log file shows the problem still happening in GM1.
I hadn't had any problems for a while since I didn't have any
of the offending files in my source. Again I can stop the error
by excluding those source types.
i.e.
*.launch,.cmake*,*.contrib,*.keep,findmerge*

The clearcase/samba configuration is as described in bug 16280.
Comment 11 Neil Swingler CLA 2002-07-03 06:03:58 EDT
Just tried Rational's Clearcase plugin (2.0.18) with release 2.0.
Problem still exists.
Comment 12 Neil Swingler CLA 2002-08-07 03:52:04 EDT
This is basically the same problem as bug 16280.

I investigated further and found that the timestamps differed by 1 second.
My "nearly the same" hack for bug 16280 didn't affect this because the
"out of sync" comparison is done in several different places.

Comment 13 Neil Swingler CLA 2002-09-27 10:00:49 EDT
It seems the fault here lies with clearcase, providing inconsistent
timestamps (see bug 16280). However, the eclipse user would be spared
a lot of pain if the compiler would just overwrite the class file
rather than aborting.
Comment 14 Michael Valenta CLA 2002-10-10 09:10:40 EDT
*** Bug 24291 has been marked as a duplicate of this bug. ***
Comment 15 John Arthorne CLA 2002-10-10 10:11:05 EDT

*** This bug has been marked as a duplicate of 16280 ***