Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 359492 - Delete a sync project and sync info persists; prevented from creating a new one
Summary: Delete a sync project and sync info persists; prevented from creating a new one
Status: CLOSED WORKSFORME
Alias: None
Product: PTP
Classification: Tools
Component: RDT.sync (show other bugs)
Version: 5.0.2   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-29 17:43 EDT by Beth Tibbitts CLA
Modified: 2012-02-13 14:32 EST (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 Beth Tibbitts CLA 2011-09-29 17:43:12 EDT
I created a synchronized project

I deleted the project in my local workspace.   I deleted the directory on the remote system too.
I checked out the code again into a new project with the same name as the first
When I try to Convert to Synchronized Project
it does not include this new project in the list of potential projects to convert

It is as if the information about the previously sync'd project still exists

How to workaround for now, and can this be fixed?
Comment 1 Greg Watson CLA 2011-09-30 05:10:22 EDT
I don't see this behavior:

1. Create a new C project
2. Convert the project to a sync project
3. Delete the project
4. Create a new C project with the same name
5. Convert the project to a sync project

It's possible this is something to do with CVS, which I assume is what you mean by "checked out the code again".
Comment 2 Beth Tibbitts CLA 2011-09-30 07:05:34 EDT
Yes I checked the project out from CVS both times
Comment 3 Greg Watson CLA 2011-09-30 09:28:57 EDT
Please try the above scenario to see if it is CVS causing the problem.
Comment 4 John Eblen CLA 2011-09-30 10:25:39 EDT
The second time, did you create a new C project or only checkout from CVS (without using the new project wizard)?

Only local C, C++, and Fortran projects can be converted to synchronized projects. Thus, you have to convert to a C project first and then convert to a sync project.
Comment 5 Greg Watson CLA 2011-09-30 11:24:43 EDT
I just tried the following scenario:

1. Check out a new C project from CVS (using wizard)
2. Convert the project to a sync project
3. Delete the project
4. Check out a new C project from CVS (using wizard), same name as #1
5. Convert the project to a sync project

The wizard in step #5 shows the project, so the behavior you saw may be related to John's comment. I haven't tried that.

However, on step #4, as soon I clicked on the project *in the CVS Repository Exploring Perspective*, I got 6 errors logged:

Unable to get project

from the org.eclipse.ptp.rdt.sync.ui plugin (at least that's what the error log says). There was no stack trace.
Comment 6 John Eblen CLA 2011-09-30 16:09:59 EDT
I wasn't able to reproduce Greg's error. The "Unable to get project" message, though, is only printed by SyncMenuOperation, which controls the sync context menu. The message is printed if it cannot get the project corresponding to the currently selected resource...
Comment 7 John Eblen CLA 2011-10-04 16:13:38 EDT
I think the behavior Greg experienced may be related to bug 359907, which I just filed. If a new non-sync project is created with the same name as a deleted sync project, that project will have the sync nature. This causes numerous problems...
Comment 8 John Eblen CLA 2011-10-06 17:23:49 EDT
Bug 360170 may also be related. Note, though, that 359907 and 360170 are distinct, because one happens when not deleting contents on disk, while the other requires that this option be selected.