我项目的项目描述文件(.project)丢失 [英] The project description file (.project) for my project is missing

查看:901
本文介绍了我项目的项目描述文件(.project)丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Vista(32位)上使用Eclipse PDT 3.5。尽管eclipse需要管理员权限才能执行,但它仍然有效。

I am using Eclipse PDT 3.5 on Vista (32 bit). It works, though eclipse needs admin rights to execute. This annoys me, but I accept it.

但是:时不时地(我不确定,甚至可能每次我想打开一个项目时),我得到错误消息缺少我的项目的项目描述文件(.project)。。

But: every now and then (I am not sure, it may even be everytime I want to open a project), I get the error message "The project description file (.project) for my project is missing.".

它不丢失,它位于项目的主文件夹中。它没有设置特殊标志(它不是隐藏的,也不是系统文件,也不是写保护的。)

It is NOT missing, it is in the main folder of the project. It has no special flags set (it is not hidden, nor system file, nor write-protected).

这是我列表中所有项目的。到目前为止,我发现的唯一解决方案是从Eclipse中删除该项目,然后重新添加它。

This is for ALL projects I have in my list. The only solution I have found so far is to delete the project from eclipse an re-add it. This is somewhat annoying.

我该怎么办?

编辑:工作区在服务器卷上。这可能是问题吗?我以前使用Eclipse 3.3,并且服务器路径没有问题。并且服务器卷已映射到驱动器号。

The workspaces are on a server volume. Can this be the problem? I used Eclipse 3.3 before, and there it was no problem with the server paths. And the server volume is mapped to a drive letter.

推荐答案

我发现了这个解决方案。我刚刚遇到了这个问题,它就解决了。

I've found this solution by googling. I have just had this problem and it solved it.

我的错误是将一个项目移到工作空间之外的其他位置,并在多台计算机之间共享该工作空间。路径不同。我了解到,当项目不在工作空间中时,其位置将保存在工作空间/.metadata/.plugins/org.eclipse.core.resources/.projects/PROJECTNAME/.location

My mistake was to put a project in other location out of the workspace, and share this workspace between several computers, where the paths difer. I learned that, when a project is out of workspace, its location is saved in workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/PROJECTNAME/.location

删除.location并将项目重新导入到工作区中可以解决此问题。希望这会有所帮助。

Deleting .location and reimporting the project into workspace solved the issue. Hope this helps.

这篇关于我项目的项目描述文件(.project)丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆