Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 318908

Summary: "New PHP Project" wizard deletes original sources when going back / cancelling
Product: z_Archived Reporter: Daniel Hahler <eclipse-bugs>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED INVALID QA Contact:
Severity: critical    
Priority: P3 CC: gadi, remy.suen, zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Daniel Hahler CLA 2010-07-05 11:16:29 EDT
1. Create a new PHP project using "Create project at existing location (from existing sources)"
2. Select an existing source tree (SVN repo, quite huge)
3. "Next"
4. Either click "Cancel" (the red stop button) while in the state "Initializing project...", or just wait after it has been initialized and go "Back"
5. Eclipse removes the sources ("Removing project... Deleting $SRC_FILES.")!

I could not find another, similar wizard, so it seems like this is related to the "New PHP Project" wizard only - at least with my setup (installed the php bundle).

-- Configuration Details --
Product: Eclipse 1.3.0.20100617-0520 (org.eclipse.epp.package.php.product)
Installed Features:
 org.eclipse.platform 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY
Comment 1 Remy Suen CLA 2010-07-05 11:19:16 EDT
Are you using PDT or PHPEclipse?
Comment 2 Daniel Hahler CLA 2010-07-05 18:56:57 EDT
PDT 2.2.0
Comment 3 Remy Suen CLA 2010-07-05 18:58:36 EDT
Off this goes to PDT then.
Comment 4 Zhongwei Zhao CLA 2010-07-07 01:37:34 EDT
Sorry,I could not reproduce this bug following your steps.
Can you supply more details?
Comment 5 Daniel Hahler CLA 2010-07-08 10:21:00 EDT
I cannot reproduce it now either (although I could when reporting this bug).

I've been using the original source from c:\foo\www.svn\trunk\ and named the project WWW.

I've now noticed that there's a "trunk" directory at the root of C: (apparently from the import, containing a .settings directory), although I've been using a workspace directory in the default location.
The project in the workspace is referring to C:\foo\www.svn\trunk though.

I could imagine this being related to either SVN and ".svn" in the path, or something alike.

I might have messed things up (unintentionally) myself, but when noticing the "Deleting ..." message, I had to abort in panic and luckily the affected folders had no local changes and could get restored from SVN.

You might want to look, when and if it's possible to delete files physically, when going backwards in the "New PHP Project" wizard. I'm quite sure to have used the defaults for e.g. "Project Layout", but used "from existing source" for "Contents".
Comment 6 Zhongwei Zhao CLA 2010-07-08 11:39:31 EDT
Hi

I believe you,but can I mark this bug as invalid?
Comment 7 Daniel Hahler CLA 2010-07-09 11:50:32 EDT
(In reply to comment #6)

> I believe you,but can I mark this bug as invalid?

Sure, just do as you see fits.
I was about to suggest this myself.

Although, it's a _grave_ error that happened here, but it may have been done in front of the computer after all.
Comment 8 Gadi Goldbarg CLA 2010-08-19 10:09:55 EDT
Closing as 'Invalid'
Kalin Yanev
kalin.a@zend.com