Applicable for:
- IntelliJ IDEA CE 2019.1 (2018.* – ?)
- macOS Mojave
- may also work for other IDEA/macOS versions
Steps to fix:
- Go to directory
~/Library/Preferences/IdeaIC${IDEA_VERSION}/
- for IntelliJ IDEA CE 2019.1:
~/Library/Preferences/IdeaIC2019.1/
.
- for IntelliJ IDEA CE 2019.1:
- There're two files in this directory:
./settingsRepository/repository/scala.xml
;./options/scala.xml
.
- Ensure both files have the same value for the
COMPILE_SERVER_PORT
option (if some file lacks this option, add it):- for example:
<option name="COMPILE_SERVER_PORT" value="3200" />
; COMPILE_SERVER_PORT
can take any valid free port number;- perhaps other options in these two files should have same values as well.
- for example:
- Restart your IntelliJ IDEA (not sure if it's necessary, but I'd suggest to).
On my current macOS Big Sur and IntelliJ IDEA 2021.2 Community Edition there's only
~/Library/Application Support/JetBrains/IdeaIC2021.2/options/scala.xml
and no
settingsRepository
directory at all.But the compile server seems to be working correctly nevertheless.
Hopefully, they fixed it up eventually.