简体   繁体   English

Eclipse中缺少.project文件,但可以在Win Explorer中看到

[英].project file missing in Eclipse but can be seen in Win Explorer

I am using Eclipse Luna. 我正在使用Eclipse Luna。 I working on a couple of projects before the weekend. 周末之前,我从事一些项目。 Win 7 did a magical reboot/install and this morning none of my class files are being shown in the Package Explorer within Eclipse. Win 7进行了神奇的重新启动/安装,今天早上我的班级文件都没有显示在Eclipse的Package Explorer中。 I have checked the path to my files locally via GIT and they are all there including the POM and .project files. 我已经通过GIT在本地检查了文件的路径,它们都在其中,包括POM和.project文件。 but Explorere is complaining that the resources do not exist. 但是Explorere抱怨资源不存在。 I have tried opening the project and I get: 我尝试打开项目,然后得到:

The project description file (.project) for 'brightside' is missing. 缺少“ brightside”的项目描述文件(.project)。 This file contains important information about the project. 该文件包含有关项目的重要信息。 The project will not function properly until this file is restored. 还原此文件之前,该项目将无法正常运行。

But the .project file in my GIT path. 但是我的GIT路径中的.project文件。 To also add the folders color in the Package Explorer are now Blue. 要在“文件夹资源管理器”中添加文件夹的颜色现在为蓝色。

Any advice to get me back to a productive status would be appreciated. 任何使我恢复生产状态的建议将不胜感激。

Thanks, 谢谢,

Eclipse's view of the file system may be inconsistent after the forced exit. 强制退出后,Eclipse的文件系统视图可能不一致。

First thing to do when a workspace was not cleanly closed: select the project(s) in question and refresh ( F5 ). 未完全关闭工作空间时的第一件事:选择有问题的项目并刷新( F5 )。

If that doesn't help the next level would be: launch Eclipse with -clean command line option. 如果这样做没有帮助,则下一个级别是:使用-clean命令行选项启动Eclipse。

Additionally the Package Explorer may be hiding .* files, check Filters ... in the Package Explorer's view menu. 此外,Package Explorer可能隐藏了.*文件,请在Package Explorer的视图菜单中选择Filters ...

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

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