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).
Confirmed for macOS Catalina and IntelliJ IDEA 2020.3 👍