如何在eclipse中恢复损坏的工作空间?

编程入门 行业动态 更新时间:2024-10-18 19:29:39
本文介绍了如何在eclipse中恢复损坏的工作空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我有一个腐败的工作区(由于svn碰撞)。 我从工作区中删除了.metadata目录,然后重新加载了eclipse,并将em项目的import导入工作区。 但是,项目以一种相当奇怪的方式导入 - 项目中的所有目录都出现,但src /目录没有自动编译(选择.java文件时) - 就像src /目录不被标识为特殊目录。

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

我也是后跟 letsgetdugg/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 letsgetdugg/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中恢复损坏的工作空间?

本文发布于:2023-06-06 01:40:18,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/531182.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何在   工作   空间   eclipse

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!