简体   繁体   English

Eclipse项目在工作空间文件夹中不可见

[英]Eclipse projects are not visible in workspace folder

The weird part is I can see my projects through package explorer. 奇怪的是,我可以通过Package Explorer查看我的项目。
I can also export them. 我也可以导出它们。
But when I want to access them elsewhere eg windows explorer, they are not there. 但是,当我想在其他地方(例如Windows资源管理器)访问它们时,它们不存在。
All I see is .metadata folder. 我只看到.metadata文件夹。

An unexpected shutdown of the system occurred not too long ago. 不久之前,系统意外关闭。

Edit: When I switched the workspace, created and opened a project, they're still not visible/accessible outside of the eclipse project explorer. 编辑:当我切换工作区,创建并打开一个项目时,在Eclipse项目资源管理器之外它们仍然不可见/不可访问。

Any ideas? 有任何想法吗?

You most likely haven't ticked "Copy projects into workspace" checkbox option. 您很可能没有勾选“将项目复制到工作区”复选框。

File -> Import -> Existing projects into workspace: 文件->导入->现有项目到工作区:

将项目复制到工作区

It is possible that the projects were not put into the default, workspace folder. 可能没有将项目放入默认的工作区文件夹中。

To check this, right click on such a project, select Properties (it is usually available at the bottom of the list), go to the Resources tab, where you have the location of the project files displayed. 要对此进行检查,请在这样的项目上单击鼠标右键,选择“ Properties (通常在列表底部),然后转到“ Resources选项卡,在其中显示了项目文件的位置。

屏幕截图中的项目位置

Obviously, there is a problem with Windows explorer and OneDrive in particular. 显然,Windows资源管理器尤其是OneDrive存在问题。

When I navigate to C:/Users/username/OneDrive/Documents/workspace or through command line I do see my eclipse projects. 当我导航到C:/Users/username/OneDrive/Documents/workspace或通过命令行浏览时,我确实看到了eclipse项目。
But when I try to use 'Open file..' option from any application or navigate through Windows explorer, projects are not recognized nor displayed. 但是,当我尝试在任何应用程序中使用“打开文件..”选项或在Windows资源管理器中导航时,都无法识别或显示项目。

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

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