IntelliJ“Kotlin:执行增量编译分析”永远不会结束

Ath*_*dom 5 android intellij-idea kotlin

I am learning Kotlin using IntelliJ IDEA Community IDE (first time using both) and after restarting the IDE, a simple file no longer finishes building when attempting to run it.

\n

Under the Build panel, it will be stuck at the task

\n
\n

Kotlin: performing incremental compilation analysis

\n
\n

I let it run this task (16 core 5950X, 128 GB DDR4, Ubuntu 20.04) for 2 days already and there is still no progress. Restarting IntelliJ IDE does not help. Even reinstalling it does not fix it.

\n

IntelliJ IDEA Community was installed as a Snap using "Ubuntu Software" app.

\n

Any ideas how we can get it to work again?

\n

Thanks!

\n

Build Output:

\n
Executing pre-compile tasks\xe2\x80\xa6\nLoading Ant configuration...\nRunning Ant tasks...\nRunning 'before' tasks\nChecking sources\nKotlin: connecting to daemon\nKotlin: compiling [Test]\nKotlin: kotlinc-jvm 1.6.10-release-923 (JRE 17.0.1+12-Ubuntu-120.04)\nKotlin: performing incremental compilation analysis\n
Run Code Online (Sandbox Code Playgroud)\n

Pau*_*ner 4

[编辑] 我重新启用增量编译以获取线程转储,并且问题没有再次出现。

这是最没有帮助的答案,但由于我的项目只是为了研究,我已经禁用了增量编译。

首选项 > 构建、执行、部署 > 编译器 > Kotlin 编译器

Kotlin 到 JVM > 启用增量编译 Kotlin 到 JavaScript > 启用增量编译

我不推荐将其用于实际项目。