Grails和IntelliJ缓存问题 [英] Grails and IntelliJ Cache Issues

查看:350
本文介绍了Grails和IntelliJ缓存问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们将Grails与Maven和Intellij一起使用。在项目的开始,它很好地工作了一切。现在我们得到越来越多的奇怪效果,比如当有人检查错误的代码时,有些人会收到错误,有些则没有。

we are using Grails together with Maven and Intellij. For the beginning of the project it worked everything nicely. Now we are getting more and more strange effects like when somebody is checking in wrong code, some are getting error some are not.

是否有任何最佳实践来配置IntelliJ所以那它在每台机器上运行良好且可预测吗?

Are there any best practices to config IntelliJ so thats it working on each machine good and predictable?

我们发现有些人在启动项目之前有make但是没有解决这个问题。

We found out that some having the "make" before starting the project disabled but this didnt solved the issue.

感谢您的帮助!

推荐答案

2年内遇到的问题很少。 Idea在一年前遇到了几个缓存问题,我手动擦除了缓存。从那以后,对缓存/索引没有任何问题。

Got very little problems in 2 years. Idea had couple of cache issues a year ago, I wiped caches by hand. Ever since then, had no problems with caches/indexes.

我能想到的一些事情:


  • grails clean 通常修复最奇怪的事情;

  • 是的,删除发布前 - make flag停止做出错误的猜测和不必要的编译(id与Groovy编译器不同);

  • 对于每个新的运行配置,我们添加 ValueFormatter 到VM参数,或将其添加到Grails默认值;

  • test-app <创建运行配置/ code>并定期运行;

  • idea.vmoptions 中尽可能多地提供内存。

  • grails clean usually fixes most weirdness;
  • Yes, removing "Before launch - make" flag stops Idea from doing wrong guesses and unnecessary compilation (which id does differently from Groovy compiler);
  • For every new run configuration, we add ValueFormatter to VM parameters, or add it to Grails defaults;
  • Create a run configuration for test-app and run it on regular basis;
  • Give it as much memory as you can in idea.vmoptions.

这篇关于Grails和IntelliJ缓存问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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