eclipse - Spring Tool Suite 仅在十秒延迟后才标记事件发生

标签 eclipse sts-springsourcetoolsuite spring-tool-suite

我正在运行 STS (Kepler/3.5.1.RELEASE) 并遇到一个恼人的问题,其中 Java 编辑器将突出显示变量/方法/等的出现。仅仅在十秒的延迟之后。

无论以下情况如何,此行为似乎都会发生:

  • 在“标记出现次数”设置中选择的验证类型数量
  • 所选项目验证者的数量
  • 或我选择的出现类型的数量

在同一台机器上安装类似大小的 Eclipse Juno 几乎可以立即标记发生的情况。正如我所期望的那样,其他编辑器类型(例如 Python)似乎突出显示得更快。

还有其他人见过这种行为吗?

最佳答案

我刚刚遇到了这个问题,并且我拥有最新(截至目前)版本的 Spring Tool Suite(版本:3.6.3.SR1)。该解决方案的灵感来自 comment of Kris ,但您可以先进行“清理”,而不是使用全新的工作区。

<小时/>

解决方案

在命令行中使用 -clean 参数(相当于将 osgi.clean 设置为“true”)启动 STS(或任何其他基于 Eclipse 的 IDE)。结果是(引用):

any cached data used by the OSGi framework and Eclipse runtime will be wiped clean. This will clean the caches used to store bundle dependency resolution and Eclipse extension registry data. Using this option will force Eclipse to reinitialize these caches.

Windows 示例: C:\sts-3.6.0.RELEASE\sts.exe -clean

OSX 示例: /Applications/STS.app/Contents/MacOS/STS -clean

它完美地工作了!

<小时/>

替代解决方案

如果上述解决方案没有帮助,以下是主要替代方案:

  • 创建新工作区(按照 Kris 的建议)
  • 干净重新安装 Eclipse

更详细的说明可以在这里找到:Keeping Eclipse running clean

关于eclipse - Spring Tool Suite 仅在十秒延迟后才标记事件发生,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25159950/

相关文章:

eclipse - 在STS(Eclipse)IDE的All Gsp文件中包括.js文件?

java - 无法初始化类 org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean

java - POM文件配置是否会覆盖Spring Tool Suite配置的默认设置?

eclipse - 无法执行操作。计算替代解决方案,可能需要一段时间 STS?

Web 应用程序库中的 Eclipse Gradle 依赖项未更新

java - 将克隆的 Servlet 部署到 Tomcat

android - 如何调试此 NullPointer 异常?

commons-fileupload 和 commons-io 的 Maven 依赖项

java - 自动打字机错误

eclipse - 保存 pom.xml 后如何禁用自动 "Update Maven Dependencies"?