Bug 376827 - Incorrect missing dependency error on java project
Summary: Incorrect missing dependency error on java project
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7.2   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Jay Arthanareeswaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-15 12:44 EDT by Daniel Winterstein CLA
Modified: 2012-04-18 07:25 EDT (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 Daniel Winterstein CLA 2012-04-15 12:44:54 EDT
Sometimes, a project will fail to build with an error such as:
Project 'myproject' is missing required Java project: 'parent_project'
But the required project is right there in Eclipse!

Refresh & clean doesn't fix this error.
Removing the parent_project, saving the modified build-path, then re-adding the parent_project does fix it.
However the fix is often only for the current session: once this starts happening, it seems to re-occur.

It may or may not be relevant that I use git to synchronise projects between computers.

-- Configuration Details --
Product: Eclipse 1.4.2.20120131-1457 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.jdt 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1
Comment 1 Ayushman Jain CLA 2012-04-16 01:22:24 EDT
(In reply to comment #0)
> Sometimes, a project will fail to build with an error such as:
> Project 'myproject' is missing required Java project: 'parent_project'
> But the required project is right there in Eclipse!
> 
> Refresh & clean doesn't fix this error.
> Removing the parent_project, saving the modified build-path, then re-adding the
> parent_project does fix it.
> However the fix is often only for the current session: once this starts
> happening, it seems to re-occur.

Hi Daniel, when this bug re-occurs, did you check the build path of the project? Is the 'parent_project' still listed there or is the entry removed?

Jay, can you please follow up? Thanks!
Comment 2 Daniel Winterstein CLA 2012-04-16 11:31:10 EDT
> Hi Daniel, when this bug re-occurs, did you check the build path of the
> project? Is the 'parent_project' still listed there or is the entry removed?

Yes - the re-occurrence follows the same pattern: 'parent_project' is listed on the build path (& present in the workspace), but I get an error that it's missing.
Comment 3 Satyam Kandula CLA 2012-04-18 07:25:42 EDT
Can you give your <workspace>/.metadata/.log file? Do you use the same git clone for different workspaces/computers?