简体   繁体   English

如何清除 Eclipse Indigo 的缓存

[英]How to clear cache of Eclipse Indigo

我想知道清除 Eclipse Indigo 缓存的标准方法是什么?

you can use -clean parameter while starting eclipse like您可以在启动 eclipse 时使用 -clean 参数,例如

C:\\eclipse\\eclipse.exe -vm "C:\\Program Files\\Java\\jdk1.6.0_24\\bin" -clean C:\\eclipse\\eclipse.exe -vm "C:\\Program Files\\Java\\jdk1.6.0_24\\bin" -clean

If you are asking about cache where eclipse stores your project and workspace information right click on your project(s) and choose refresh.如果您正在询问 eclipse 存储您的项目和工作区信息的缓存,请右键单击您的项目并选择刷新。 Then go to project in the menu on top of the window and click "clean".然后转到窗口顶部菜单中的项目并单击“清理”。

This typically does what you need.这通常会满足您的需求。

If it does not try to remove project from the workspace (just press "delete" on the project and then say that you DO NOT want to remove the sources).如果它不尝试从工作区中删除项目(只需在项目上按“删除”,然后说您不想删除源)。 Then open project again.然后再次打开项目。

If this does not work too, do the same with the workspace.如果这也不起作用,请对工作区执行相同操作。 If this still does not work, perform fresh checkout of your project from source control and create new workspace.如果这仍然不起作用,请从源代码管理中重新检出您的项目并创建新的工作区。

Well, this should work.嗯,这应该有效。

Instructions指示

  1. Open Eclipse and navigate to the Window > Preferences .打开 Eclipse 并导航到Window > Preferences
  2. Scroll down the left-hand panel in the Preferences window and click the Remote Systems drop-down root menu.向下滚动首选项窗口中的左侧面板,然后单击Remote Systems下拉根菜单。 Select File Cache .选择File Cache
  3. Click the Clear Cached Files button in the File Cache window.单击“文件缓存”窗口中的“ Clear Cached Files按钮。 Note that this will automatically close any open remote files on your computer.请注意,这将自动关闭计算机上所有打开的远程文件。
  4. Press Apply and OK to save your changes and exit out of the Preferences window.ApplyOK保存更改并退出首选项窗口。

You can always create a new Eclipse workspace.您始终可以创建新的 Eclipse 工作区。 The Eclipse.exe -clean option is not sufficient in some cases , for example, if the local history becomes a problem. Eclipse.exe -clean选项在某些情况下不够的,例如,如果本地历史记录成为问题。

Edit:编辑:

Eclipse is mostly a collection of third party plugins. Eclipse 主要是第三方插件的集合。 And each of those plugins can add some extra useful, useless or problematic information to the central Eclipse workspace meta-data folder.这些插件中的每一个都可以向中央 Eclipse 工作区元数据文件夹添加一些额外的有用、无用或有问题的信息。

The problem is that not every plugin participates during the user-issued cleanup routine.问题是并非每个插件都参与用户发出的清理例程。 Therefore, I'd say that it is a problem in the system design of Eclipse, that it allows plugins to misbehave like this.因此,我会说这是Eclipse的系统设计中的一个问题,它允许插件像这样行为不端。

And therefore, I'd recommend to make yourself comfortable with the idea of using multiple workspaces and linking-in external project entities into each workspace.因此,我建议您对使用多个工作区并将外部项目实体链接到每个工作区的想法感到满意。 Because, this is the only workaround for the given system design, to handle faulty plugins that spam your workspace.因为,这是给定系统设计的唯一解决方法,用于处理向您的工作区发送垃圾邮件的错误插件。

Clear improperly cached compile errors.清除不正确缓存的编译错误。 All Projects Locations in Eclipse Eclipse 中的所有项目位置
workspace\\.metadata\\.plugins\\org.eclipse.core.resources\\.projects\\<project>\\

I think you can find the answer you want in these two posts.我想你可以在这两篇文章中找到你想要的答案。 They are mentioning Flash Builder, but essentially, the talk is about its Eclipse base.他们提到了 Flash Builder,但本质上,谈论的是它的 Eclipse 基础。

Clear improperly cached compile errors in FlexBuilder: http://blog.aherrman.com/2010/05/clear-improperly-cached-compile-errors.html清除 FlexBuilder 中不正确缓存的编译错误: http : //blog.aherrman.com/2010/05/clear-improperly-cached-compile-errors.html

How to fix Flash Builder broken workspace: http://va.lent.in/how-to-fix-flash-builder-broken-workspace/如何修复 Flash Builder 损坏的工作区: http : //va.lent.in/how-to-fix-flash-builder-broken-workspace/

Goto this directory进入这个目录

/workspace/.metadata/.plugins/org.eclipse.debug.core/.launches/ /workspace/.metadata/.plugins/org.eclipse.debug.core/.launches/

Remove the debug file ".launch" you don't need.删除不需要的调试文件“.launch”。

It's very simple.这很简单。 Right click inside the internal browser and click "refresh".在内部浏览器中右键单击,然后单击“刷新”。

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

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