Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322169 - New Makefile Project with Existing Code wizard silently fails
Summary: New Makefile Project with Existing Code wizard silently fails
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 7.0.2   Edit
Assignee: Andrew Gvozdev CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-09 14:03 EDT by Baltasar Belyavsky CLA
Modified: 2010-09-23 17:23 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Baltasar Belyavsky CLA 2010-08-09 14:03:57 EDT
Build Identifier: 3.6.0 [I20100608-0911]

The New "Makefile Project with Existing Code" wizard silently fails when the existing code location is physically inside the workspace directory.

Reproducible: Always

Steps to Reproduce:
1. Use Windows Explorer to add a new directory "MyProj" into the workspace directory.  Add a couple of source files into MyProj/.
2. In Eclipse, open the New > Makefile Project with Existing Code wizard.
3. For "Existing Code Location", browse to the MyProj/ directory.
4. Click "Finish".
-> Nothing happens - the wizard flickers, but remains open, no errors are displayed to the user, nothing is logged to the Eclipse log.
Comment 1 Charley Wang CLA 2010-08-19 11:52:07 EDT
(In reply to comment #0)
> Build Identifier: 3.6.0 [I20100608-0911]
> 
> The New "Makefile Project with Existing Code" wizard silently fails when the
> existing code location is physically inside the workspace directory.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. Use Windows Explorer to add a new directory "MyProj" into the workspace
> directory.  Add a couple of source files into MyProj/.
> 2. In Eclipse, open the New > Makefile Project with Existing Code wizard.
> 3. For "Existing Code Location", browse to the MyProj/ directory.
> 4. Click "Finish".
> -> Nothing happens - the wizard flickers, but remains open, no errors are
> displayed to the user, nothing is logged to the Eclipse log.

I have this same error. 

Launched in a child Eclipse, got the following:

java.lang.reflect.InvocationTargetException
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:121)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.core.internal.resources.ResourceException: Invalid project description.
	at org.eclipse.core.internal.resources.Project.checkDescription(Project.java:162)
	at org.eclipse.core.internal.resources.Project.assertCreateRequirements(Project.java:52)
	at org.eclipse.core.internal.resources.Project.create(Project.java:274)
	at org.eclipse.core.internal.resources.Project.create(Project.java:256)
	at org.eclipse.cdt.core.CCorePlugin$3.run(CCorePlugin.java:766)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
	at org.eclipse.cdt.core.CCorePlugin.createCDTProject(CCorePlugin.java:758)
	at org.eclipse.cdt.core.CCorePlugin.createCDTProject(CCorePlugin.java:748)
	at org.eclipse.cdt.managedbuilder.ui.wizards.NewMakeProjFromExisting$1.execute(NewMakeProjFromExisting.java:83)
	at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
	... 1 more
Comment 2 Andrew Gvozdev CLA 2010-09-23 16:53:29 EDT
Fixed on HEAD (8.0) and in 7.0.2