简体   繁体   English

突然重启计算机后,Eclipse 4.7.2不显示项目

[英]Eclipse 4.7.2 not showing projects after sudden computer restart

I was working in eclipse, on a 100% working workspace, when suddenly my computer froze. 突然,我的计算机死机了,我在Eclipse中100%正常工作的工作区中工作。 I couldn't kill the broken processes so I had to shutdown the system using my computer power button (eclipse was open the whole time). 我无法杀死中断的进程,因此必须使用计算机的电源按钮关闭系统(Eclipse一直处于打开状态)。 After the system startup I opened eclipse and... the workspace loads, the theme, code formatting, etc. is there, but all the projects are gone. 系统启动后,我打开eclipse,并且...工作区已加载,主题,代码格式等已存在,但所有项目均已消失。 They are still present on the disk, at the same spot, the workspace just stopped showing them... 它们仍然存在于磁盘上的同一位置,工作空间刚刚停止显示它们...

I know, I can import the existing projects into workspace and that would fix it, but it would also break the working sets and some other stuff, so... Is there any way in which I could repair the workspace? 我知道,我可以将现有项目导入到工作空间中并对其进行修复,但是这也会破坏工作集和其他一些东西,所以...有什么方法可以修复工作空间?

Logs from my workspace .metadata folder: .log 我的工作区.metadata文件夹中的日志: .log

My eclipse version: About Eclipse 我的eclipse版本: 关于Eclipse

After some testing using an old (almost 3 months old) backup I found out that the file in which eclipse stores workspace file tree is almost empty. 使用旧的(近3个月)备份进行测试后,我发现eclipse存储工作区文件树的文件几乎为空。 But in my backup - it is almost 300 KB. 但是在我的备份中-它几乎是300 KB。 So I came up with three solutions: 因此,我提出了三种解决方案:

  1. Just re-import everything to the workspace 只需将所有内容重新导入到工作区
  2. Take the .history, .root and .safetable folders from a backup and paste the into .metadata.plugins\\org.eclipse.core.resources folder (some projects might be missing and working sets might still be empty) 从备份中获取.history,.root和.safetable文件夹,然后将其粘贴到.metadata.plugins \\ org.eclipse.core.resources文件夹中(某些项目可能丢失,工作集可能仍然为空)
  3. Just backup your workspace daily, like I should have done and your loss will be minimal 每天备份工作区,就像我应该做的那样 ,您的损失将很小

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM