Building the IntelliJ Application Source Code fails
Answered
I executed all steps documented in https://github.com/JetBrains/intellij-community#readme
Executing the step "To build IntelliJ IDEA Community Edition from source, choose Build | Build Project from the main menu." fails with
Kotlin: [Internal Error] org.jetbrains.kotlin.util.KotlinFrontEndException: Exception while analyzing expression at (154,30) in /home/paul/@/ide-workspaces/IdeaProjects/intellij-community/plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/refactoring/rename/RenameKotlinPropertyProcessor.kt
Caused by: java.lang.OutOfMemoryError: Java heap space
The system is equipped with 16 GB RAM; monitoring memory on OS level shows that several GBs of memory are available at any time. Running Ubuntu 18.04.5 LTS, with following info copy-pasted from "Help/About..."
IntelliJ IDEA 2021.1.1 (Ultimate Edition)
Build #IU-211.7142.45, built on April 30, 2021
Licensed to Paul Dest
Subscription is active until August 7, 2021.
Runtime version: 11.0.10+9-b1341.41 amd64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
Linux 4.15.0-143-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 953M
Cores: 8
Non-Bundled Plugins: Key Promoter X (2021.1.1), org.jetbrains.kotlin (211-1.5.0-release-759-IJ6693.72)
Kotlin: 211-1.5.0-release-759-IJ6693.72
Current Desktop: i3
Please sign in to leave a comment.
Doubling the value "Shared build process heap size (Mbytes)" (from 1100 to 2200) solved the problem: