‘Parse java…’ 在 IntelliJ 中的“构建项目”过程中卡住。

huangapple go评论67阅读模式
英文:

'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?

huangapple
  • 本文由 发表于 2020年10月16日 16:08:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/64385278.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定