Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does the Scala IntelliJ plugin take so long to start my application?

I go back and forth between Eclipse and IntelliJ for Scala development. IntelliJ's code-complete, refactoring and error-highlighting are all better (in my experience) but I end up going back to Eclipse because whenever I run a Scala application in IntelliJ, it goes through this very long compilation process that Eclipse somehow avoids.

I can see the status bar whiz by as it loads each individual class and then runs them through several phases. I know that scalac is slow in general, but it's much quicker to use the command line or Eclipse than it is to use IntelliJ.

Is anyone else seeing this behavior? Will turning on fsc support make a big difference?

like image 674
Bill Avatar asked Feb 03 '26 13:02

Bill


1 Answers

Either use the IDEA SBT plugin to delegate compilation to SBT, or enable use of Fast Scala Compiler (FSC) under SettingsCompilerScala.

Otherwise IntelliJ starts and stops a scalac process to compile each batch of files, and this has some overhead.

like image 108
retronym Avatar answered Feb 06 '26 04:02

retronym