Eclipse:“'定期工作区保存。' 遇到了问题。”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11729085/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse: "'Periodic workspace save.' has encountered a pro?blem."
提问by Dave
I'm using Eclipse Indigo on Mac 10.7.4. While working, I get these periodic, annoying dialogs
我在 Mac 10.7.4 上使用 Eclipse Indigo。在工作时,我会收到这些周期性的、烦人的对话
'Periodic workspace save.' has encountered a problem.
Could not write metadata for '/.org.eclipse.jdt.core.external.folders'.
/Users/davea/Dropbox/workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/.org.eclipse.jdt.core.external.folders/.markers.snap (No such file or directory)
I seem to be able to continue as normal, but I was wondering how I can eliminate these errors.
我似乎能够继续正常工作,但我想知道如何消除这些错误。
回答by JEM
I had the same problem.
我有同样的问题。
'Periodic workspace save.' has encountered a problem. Could not write metadata for '/External Files'. D:\java\fuentes\.metadata\.plugins\org.eclipse.core.resources\.projects\External Files\.markers.snap (El sistema no puede hallar la ruta especificada)
'定期工作区保存。遇到了问题。无法为“/外部文件”写入元数据。D:\java\fuentes\.metadata\.plugins\org.eclipse.core.resources\.projects\External Files\.markers.snap(El sistema no puede hallar la ruta especificada)
I created the folder "External Files" and it worked fine. In a few minutes the files ".markers.snap" and ".syncinfo.snap" appeared in this folder and the message didn′t appear any more.
我创建了文件夹“外部文件”,它工作正常。几分钟后,文件“.markers.snap”和“.syncinfo.snap”出现在该文件夹中,该消息不再出现。
回答by Sam
Today I faced the same issue consistently, whenever I exit the eclipse. While trying the above solution provided by TS.xy, the below steps got rid of this issue for now.
今天,每当我退出日食时,我始终面临着同样的问题。在尝试 TS.xy 提供的上述解决方案时,以下步骤暂时解决了此问题。
- Switch to new workspace and close the Eclipse.
- Open the Eclipse with new workspace and after that switch to the actual workspace(in which exception occurs).
- Actual workspace loaded with all my previous projects.
- Now exiting the Eclipse, does not result in that exception.
- 切换到新工作区并关闭 Eclipse。
- 使用新工作区打开 Eclipse,然后切换到实际工作区(发生异常的地方)。
- 加载了我以前所有项目的实际工作区。
- 现在退出 Eclipse,不会导致该异常。
Hope that this step may work for someone.
希望这一步对某人有用。
回答by Nima G
I fixed mine by closing eclipse and deleting the whole .metadata folder inside my workspace folder.
我通过关闭 eclipse 并删除我的工作区文件夹中的整个 .metadata 文件夹来修复我的问题。
回答by Mark
Just for another data point, none of the above helped my situation. The way I finally got past this issue is that each time Eclipse complained about some folder not being there, I went on my hard drive and created the folder. E.g. after I see
只是为了另一个数据点,以上都没有帮助我的情况。我最终解决了这个问题的方法是,每次 Eclipse 抱怨某个文件夹不存在时,我都会在硬盘上创建该文件夹。例如在我看到之后
Could not write metadata for '/servers'.
C:\...\.metadata\.plugins\org.eclipse.core.resources\.projects\servers\.markers.snap (The system cannot find the path specified.)
I create the "servers" folder (not the file inside it). This gets me to the next error. I went through 3-4 of these iterations (exiting Eclipse each time to force the save) before the issues went away.
我创建了“servers”文件夹(不是里面的文件)。这让我进入下一个错误。在问题消失之前,我经历了 3-4 次迭代(每次都退出 Eclipse 以强制保存)。
HTH, Mark
HTH,马克
回答by andrewdb
Using Ubuntu, got the same issue I noticed that the owner of some of the directories in ~/workspace/.metadata/.plugins/ ...etc... was root changed owner to me and the error stopped happening.
使用 Ubuntu,遇到了同样的问题,我注意到 ~/workspace/.metadata/.plugins/ ...etc... 中某些目录的所有者被 root 更改为我的所有者,并且错误停止发生。
Looks like the same sort of issue may be caused by multiple causes.
看起来同一类问题可能由多种原因引起。
回答by Anil Chahal
Close the Eclipse , Clear the .metadata folder completely.. Start Eclipse & Import the necessary project once again if your project references are deleted..
关闭 Eclipse ,完全清除 .metadata 文件夹。如果您的项目引用被删除,请再次启动 Eclipse 并导入必要的项目。
回答by J-Dizzle
This was simple for me -
这对我来说很简单-
Solution
解决方案
- (pre) the listed directory is not present, see pic
- Run Eclipse, see the error shown in pic below. Close Eclipse
Create the directory (RemoteSystemsTempFiles) where it is looking
- note: ignore the items in this folder (e.g. .markers), they are auto-generated
Restart Eclipse, problem solved!
- (预)列出的目录不存在,见图片
- 运行 Eclipse,看到如下图所示的错误。关闭日食
创建它正在查找的目录 ( RemoteSystemsTempFiles)
- 注意:忽略此文件夹中的项目(例如 .markers),它们是自动生成的
重启Eclipse,问题解决!
Example Problem Message
示例问题消息
Not sure why this took me so long to resolve, but quite easy now, and quite obvious in retrospect! ;)...
不知道为什么这花了我这么长时间才解决,但现在很容易,回想起来很明显!;)...
回答by Navarra Hill
I encountered the same problem , my resolution was to rename the the folder name under the workspace folder. i.e. com.ibm.collaboration.realtime.alertmanager.embedded
was renamed to com.ibm.collaboration.realtime.alertmanager.2embeddedxx
and rebuilt my project.
我遇到了同样的问题,我的解决方案是重命名工作区文件夹下的文件夹名称。ie com.ibm.collaboration.realtime.alertmanager.embedded
被重命名为com.ibm.collaboration.realtime.alertmanager.2embeddedxx
并重建了我的项目。
回答by David Kibblewhite
In my case, the drive I was storing my workspace on had become full downloading SDK updates full and I just needed to clear some space on it.
就我而言,我存储工作区的驱动器已完全下载 SDK 更新,我只需要清除其上的一些空间。
回答by Rufatet
Close Eclipse. Open RemoteSystemsTempFiles folder in Workspace, and clear inside this folder. Again open eclipse and close, warn about .project. Press Ok, then open Eclipse. Solved my problem that.
关闭日食。在 Workspace 中打开 RemoteSystemsTempFiles 文件夹,并清除此文件夹中的内容。再次打开 eclipse 并关闭,警告 .project。按确定,然后打开 Eclipse。解决了我的问题。