问题描述
主要问题:
我在Eclipse Luna上遇到以下错误:
I've encountered the following error on Eclipse Luna :
您有一天要上班,尝试启动Eclipse并提高工作效率,但是一旦打开工作台,您会发现所有文件选项卡都出现错误,如:
You come one day at work and try to launch eclipse and be productive but as soon as your workbench opens you see that all your file tabs are in error like :
如果我在导航器/浏览器视图中签到,则看不到我的任何项目.
And if I check in my navigator/explorer views I see none of my projects.
我的前几次推荐给其他遇到相同问题的人:
The first couple times I did as recomended to other people who faced the same problem :
我在eclipse下重新创建了项目.
I re-created my projects under eclipse.
但是:
- 该项目越来越大(每次都有越来越多的子项目需要重新创建)
- 这个问题越来越频繁
- 我对需要的体力劳动感到厌烦
所以我对手头的解决方案不满意.
因此,我正在寻找一种自动解决此问题的方法(带有某种脚本或一组命令行),或者至少希望有某种方法来防止这种情况的发生.
Therefore I am looking for a some sort of way to fix this issue automatically (with come sort of script or set of command lines) or at least some way to prevent this from happening.
到目前为止,我的进度:
我已经进入了工作区文件夹:
I have delved into the workspace folder :
workspace
└── .metadata
└── .plugins
└── org.eclipse.core.resources
└── .projects
├── project1-newName
├── project1-oldName
├── project2-newName
└── project2-oldName
所以我项目的metada还在!!
如果我再深入一点,我会发现每个文件夹的组织方式如下
If I dig a bit further I see that each and every folder is organized as follows
.
├── .indexes
│ └── [...]
├── .location
├── .markers
├── org.eclipse.jdt.apt.core
└── org.eclipse.jdt.core
└── state.dat
哪里
-
.indexes
包含一个 fat-mambo-jambo-of-split-index-tree-organization ,每个上都包含一个history.index
树叶- (似乎与我的问题无关)
.indexes
contains a fat-mambo-jambo-of-split-index-tree-organization containing ahistory.index
on each leaves- (does not seem that relevant to my issue)
我非常确定解决方案位于此
.location
文件中.I'm pretty sure that the solution lies within this
.location
file.结论:
关于eclipse为什么无法突然读取其自身文件以及如何使其再次看到并识别它们的任何线索吗?
Has anyone any clue as to why eclipse can't suddenly read it's own files and How to make it see and recognise them again ?
推荐答案
您可以尝试以下方法解决问题:
You can solve the problem by trying this:
- 右键单击程序包资源管理器"
- 选择导入
- 常规> 现有项目到工作区> 导航到项目
文件夹(选择根目录)> 选择项目. - 完成.这肯定会解决您的问题.
如果这不起作用,请转到文件系统(常规>文件系统),然后选择项目文件.
If this doesn't work proceed to File System (General>FileSystem) and select the project files.
第一种方法非常简单,并且在大多数情况下都可以完美地工作.
First method is quite easy and works perfectly in most cases.
这篇关于Eclipse类似于:“无法为[项目名称]/[文件路径]/[文件名称]确定URI".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!