简体   繁体   English

eclipse中的* .snap文件是什么?

[英]What are *.snap files in eclipse?

I have so many projects in workspace. 我在工作区有很多项目。 for every one or two weeks i have to search for *.snap file delete them. 每隔一两周,我必须搜索* .snap文件删除它们。 otherwise my eclipse will take lot of time to come up? 否则我的日食需要很多时间才能出现? So curious to know what are they? 好奇地知道他们是什么? are they specific to java? 它们是否特定于java? as i have lots of java projects in my workspace? 因为我的工作区里有很多java项目?

*.snap files represent the changes in workspace state of the IDE during the runtime. * .snap文件表示运行时期间IDE的工作空间状态的更改。 This is mostly for eclipse crash recovery plan. 这主要是针对eclipse崩溃恢复计划。 When a crash happens these files are used to recover the state fo eclipse workspace. 发生崩溃时,这些文件用于恢复日食工作区的状态。

It looks like your eclipse platform is crashing quite often. 看起来您的eclipse平台经常崩溃。 Because otherwise, the snapshot files should not be there while the platform is not running. 否则,在平台未运行时,快照文件不应存在。 As the referenced page in roe's comment explains, they are just needed for crash recovery and are deleted during normal shutdown of the platform. 正如roe评论中引用的页面所解释的那样,它们仅用于崩溃恢复,并且在平台正常关闭期间被删除。 Deleting them will make eclipse think, that no crash occurred but then it can't recover and you may have to refresh/rebuild your workspace (which may take the same time). 删除它们会让eclipse思考,没有发生崩溃但是它无法恢复,你可能不得不刷新/重建你的工作区(这可能需要相同的时间)。

I'd not delete those files except eclipse won't recover from a crash. 我不会删除那些文件,除了eclipse无法从崩溃中恢复。 Have a look at the eclipse workspace and platform log files if you have troubles with some plugins and fight the problem from this side (updating plugins or sending error reports) instead of deleting those files. 看看eclipse工作区和平台日志文件,如果你遇到一些插件的问题,并从这一方面解决问题(更新插件或发送错误报告)而不是删除这些文件。

A very good solution for me was to: 对我来说一个非常好的解决方案是:

  1. Cut and Paste the .snap file in a separate folder 将.snap文件剪切并粘贴到单独的文件夹中
  2. Start and then Close Eclipse (after restarting I've noticed that some of my classes where not there) 启动然后关闭Eclipse(重新启动后我注意到我的一些类不存在)
  3. Put back the .snap file in the original place 将.snap文件放回原始位置
  4. Start again Eclipse 再次启动Eclipse

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

相关问题 Eclipse-什么是派生文件警告 - Eclipse - What is the derived files warning 哪些Eclipse JavaFX项目文件要上传到GitHub - What Eclipse JavaFX project files to upload to GitHub Program Files \\ Eclipse \\ plugins,〜/ .eclipse / org.eclipse。* / plugins和〜/ workspace / .metadata / .plugins之间有什么区别? - What is the difference between Program Files\Eclipse\plugins, ~/.eclipse/org.eclipse.*/plugins, and ~/workspace/.metadata/.plugins? 你如何分析Domino snap文件? - How do you analyze Domino snap files? 发布eclipse创建的Web服务需要哪些文件? - What files are needed to publish a web service created by eclipse? 将Eclipse Workspace导出到版本控制存储库时不需要哪些文件? - What files are unnecessary when exporting an Eclipse Workspace to a version control repository? 使用jsp文件时eclipse中的常见技巧是什么? - What are the common tricks in eclipse when working with jsp files? 在eclipse Java项目中应该将哪些文件添加到SVN? - What files should be added to SVN in an eclipse Java project? eclipse在生成war文件时会压缩哪些文件 - what files does eclipse compress when generating a war file 如何分析Websphere核心* .dmp文件和Snap * .trc文件? - How to analyse Websphere core*.dmp file and Snap*.trc files?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM