英文:
'Parse java...' stuck in IntelliJ while Build Project
问题
我正在使用IntelliJ Idea 2020.2版本,尝试运行一个大型项目,但当点击“Build Project”时,卡在了“Parsing java...”(对于较小的项目,它可以正常工作)。我可以补充说明,在IntelliJ Idea 2019.1.3版本中,我可以在不到一分钟的时间内构建此项目。是否有解决此问题的方法?
英文:
I am using IntelliJ Idea 2020.2 and I am trying to run big project but when click Build Project
then it's getting stuck with Parsing java...
(for smaller project it works perfectly). I can add that in IntelliJ Idea 2019.1.3 I can build this project in less than minute. Is there any solution for this problem?
答案1
得分: 21
你需要增加构建堆大小在 "设置/首选项 | 构建、执行、部署 | 编译器" 中。
英文:
You need to increase build heap size in "Settings/Preferences | Build, Execution, Deployment | Compiler".
答案2
得分: 0
我遇到了类似的问题。我有一个根项目(r1),里面包含了m1、m2......m30这些模块。
r1
- m1
- m2
.... - m30
当我打开r1项目并且运行m2模块中的某个集成测试时,需要大约30分钟,但是当我将m2模块以根项目的形式打开,并且运行集成测试,只需要不到2分钟。
有什么指导可以解决这个问题吗?
英文:
I have similar kind of issue. I have root project(r1) and it has m1, m2...m30 modules in it.
r1
- m1
- m2
....
-m30
When i open r1 project and run one of the integration test in m2 it takes around 30 mins but when i open module m2 as root and run integration test executing in <2 mins
any pointers to fix this issue?
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论