Eclipse: fully remove an old project?

前端 未结 9 1965
难免孤独
难免孤独 2021-01-07 19:07

I run eclipse on Ubuntu 11.10. I originally created a project in folder foo. I subsequently deleted that project to re-organise folders and I now want to cr

相关标签:
9条回答
  • 2021-01-07 19:36

    Go to your workspace folder using some file manager (you can find your workspace location, be clicking File -> Swich Workspace...) and delete your foo folder, or simple remove its contents (.project file being most important). Then you should be able to create your new project.

    0 讨论(0)
  • 2021-01-07 19:36

    I finally managed to fix it by deleting the workspace/.metadata directory. This resolves the problem but has the side effect of making eclipse forget everything about the workspace so I'm not sure it's a recommended way of fixing the problem.

    0 讨论(0)
  • 2021-01-07 19:39

    I have also encountered this problem, except it's been in Windows. I didn't want to completely remove the .metadata folder and none of the other solutions fixed it.

    I managed to fix it by removing the file workspace\.metadata\.plugins\org.eclipse.core.resources\.safetable\org.eclipse.core.resources while Eclipse was closed. The file gets saved when closing Eclipse so I guess it is cached while Eclipse is open.

    0 讨论(0)
  • 2021-01-07 19:41

    In general, the deleting the project from the "/.metadata/.plugins/org.eclipse.core.resources/.projects" should work, but if you're using 'working sets', you might have the problem I had once, which is basically have a 'ghost' project in your workspace that you can't delete because it says "this project doesn't exist anymore".

    If this is your problem, try to delete an entry for your 'ghost project' in the file:

    "/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml" (on MacOS).

    0 讨论(0)
  • 2021-01-07 19:48

    I had the same problem, with Egit and repositories that I deleted and imported back again, instead of importing as general project choose import as existing project.

    0 讨论(0)
  • 2021-01-07 19:50

    If the Project was in a working set before you deleted it, you might have to manually remove it from the set.

    0 讨论(0)
提交回复
热议问题