我安装了 hybris 插件。
用它导入项目。
做过ant clean all
.
然后,如果我尝试 build->recompile class
它不工作。似乎想法没有看到 Ant 生成的类。
如果我这样做 build->rebuild project
然后 build->recompile
上课它工作正常,但一点也不方便。我相信有解决这个问题,但我找不到它。
这是我遇到的常见错误(不同情况下的包不同):
最佳答案
this is essentially the expected behaviour. You can't mix "ant" build and "native IDEA" build. Those are two separate build systems.
这是对 hybris 插件开发者的解释 (hybris-integration.atlassian.net/browse/IIPS-120)
他为此提出了一个解决方案:
然后,您可以根据需要创建或修改您的测试运行配置。
直接在 Idea 中重新编译你的类等等。
此外,他在这里提到了与 JRebel 的交易 (hybris-integration.atlassian.net/browse/IIPS-47)
we support both compilation modes. Ant targets and idea internal. They shouldn't be mixed as idea has it's own compilation model/cache. If you use idea compilation then you can use JRebel or hotswap.
关于intellij-idea - intellij hybris 类重新编译不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50377088/