如何在eclipse中恢复损坏的工作空间? [英] how to recover a corrupt workspace in eclipse?

查看:390
本文介绍了如何在eclipse中恢复损坏的工作空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个腐败的工作区(由于svn碰撞)。
我从工作区中删除了.metadata目录,然后重新加载了eclipse,并将em项目的import导入工作区。
但是,项目以一种相当奇怪的方式导入 - 项目中的所有目录都出现,但src /目录没有自动编译(选择.java文件时) - 就像src /目录不被标识为特殊目录。



有没有办法解决这个问题?



我也是后跟 http://letsgetdugg.com/2009/04/19 / recovery-a-corrupt-eclipse-workspace / ,这也没有帮助。

解决方案

所有配置您的工作区的数据存储在 .metadata 中。尝试恢复已删除的文件夹,然后修复工作区。否则,您将需要重新配置所有内容。



您可以从 .metadata 中挽救某些文件夹以保持您的偏好(例如键绑定)至少。


I had a corrupt workspace (due to svn collision). I deleted the .metadata directory from the workspace, and then reloaded eclipse, and did an "import" of a project into the workspace. However, the project got imported in a rather strange way -- all directories in the project appear, but the src/ directory does not have automatic compilation (when choosing a .java file) -- it is as if the src/ directory is not identified as a special directory.

Is there a way to fix that?

I also followed http://letsgetdugg.com/2009/04/19/recovering-a-corrupt-eclipse-workspace/, and that did not help either.

解决方案

All configuration data for your workspace is stored in .metadata. Try to recover the deleted folder then fix the workspace. Otherwise you will need to reconfigure everything.

You can salvage certain folders from .metadata to keep your preferences (e.g. key bindings) at least.

这篇关于如何在eclipse中恢复损坏的工作空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆