| Summary: | Plug-in import failed: could not delete files (JAR) / target out of sync | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Dani Megert <daniel_megert> | ||||
| Component: | UI | Assignee: | Dani Megert <daniel_megert> | ||||
| Status: | VERIFIED FIXED | QA Contact: | |||||
| Severity: | critical | ||||||
| Priority: | P3 | CC: | ankur_sharma, Curtis_Windatt, darin.eclipse, markus.kell.r | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | 3.7 M6 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Dani Megert
Looks like some very recent code changes cause this. Works fine when using N20100517-2000. So far I cannot constantly reproduce the import errors but what's very strange and reproducible is that it thinks the target platform is out of sync and I suspect that's also causing my bug: 1. start new workspace 2. check out 'org.eclipse.text' from CVS (HEAD) or import it from repository 3. exit 4. start 5. reload active target platform ==> it says it's out of sync!!! see attached picture This works fine when using N20100517-2000. Marking as blocker since there's definitely something fishy here. Created attachment 169093 [details]
Picture with out of sync dialog
The changes in bug 312495 seem to have caused this problem. I have reverted those changes. The "in-synch" problems are addressed by reverting bug 312495. Removing blocking status. Dani, please try plug-in import with the next nightly or RC2 candidate to see if file deletion is still an issue. Import seems to work again. Thx! But for 3.7 we really have to look at the code and make more stable: 1. First things to delete should be JARs because those are the ones that are often locked (at least that was my experience). If that fails we remember that project and don't delete anything else of that project and continue with the next project. This will leave the project in an old state but most likely in a state that allows the workspace to still compile. 2. As just said: we don't abort when the first deletion fails. This makes sure that we get to the import step and correctly replace the projects that got deleted before the first exception happened. 3. During import we ignore the projects remembered in 1. 4. At the end we report the errors along with the project(s) that could not be replaced. Got this again and caused me more than an hour to repair my workspace: !ENTRY org.eclipse.core.resources 4 273 2011-02-09 08:53:12.135 !MESSAGE Problems encountered while deleting resources. !SUBENTRY 1 org.eclipse.core.resources 4 273 2011-02-09 08:53:12.135 !MESSAGE Could not delete 'C:\eclipse\workspaces\Development_HEAD\plugins\com.ibm.icu\com.ibm.icu_4.4.2.v20110115.jar'. !STACK 1 org.eclipse.core.runtime.CoreException: Problems encountered while deleting files. at org.eclipse.core.internal.filesystem.local.LocalFile.delete(LocalFile.java:125) at org.eclipse.core.internal.resources.ResourceTree.internalDeleteFile(ResourceTree.java:304) at org.eclipse.core.internal.resources.ResourceTree.internalDeleteProject(ResourceTree.java:384) at org.eclipse.core.internal.resources.ResourceTree.standardDeleteProject(ResourceTree.java:837) at org.eclipse.core.internal.resources.Resource.unprotectedDelete(Resource.java:1946) at org.eclipse.core.internal.resources.Resource.delete(Resource.java:787) at org.eclipse.core.internal.resources.Project.delete(Project.java:344) at org.eclipse.pde.internal.ui.wizards.imports.PluginImportOperation.deleteConflictingProjects(PluginImportOperation.java:275) at org.eclipse.pde.internal.ui.wizards.imports.PluginImportOperation.runInWorkspace(PluginImportOperation.java:129) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) >To me it looks like the importer does this (just a guess): > >1. delete projects >2. import projects Yep, that's what happens :-( Fixed in HEAD (PluginImportOperation.java, rev. 1.144). Available in builds >= N20110210-2000. Verified in I20110310-1119. *** Bug 273809 has been marked as a duplicate of this bug. *** |