Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

improving scala code compilation time in Intellij IDEA

Iam in the process of learning Scala using IntelliJ IDEA 10.0.x with scala plugin and I have found that compiling scala takes more than 10 secs. I know there is a an option to turn on the fast code compilation (FSC) in scala however Iam unaware of how to configure that in IDEA is there any option available.

like image 207
prassee Avatar asked Feb 24 '23 19:02

prassee


2 Answers

After reading "Why does IntelliJ IDEA compile Scala so slowly?", I would rather use IntelliJ IDEA with sbt:

  • idea-sbt plugin: for using the SBT Console tool window to enter SBT commands directly.

Note that sbt cannot use fsc either (in interactive mode).

like image 136
VonC Avatar answered Feb 27 '23 23:02

VonC


After create a scala project in IDEA go Run/Edit Configurations:

  1. Click in +
  2. Select Scala Compilation Server, and give a name to this configuration.
  3. Now press run.
like image 33
Tofouzand2000 Avatar answered Feb 27 '23 23:02

Tofouzand2000