-
Notifications
You must be signed in to change notification settings - Fork 12
Development Environment Setup
IntelliJ IDEA is the default IDE for this project. IDEA Ultimate Edition is preferred, but also Community Edition should work fine - it's just missing the Ruby plugin. The IDE and plugin versions in use on 2010-08-19 are:
- IntelliJ IDEA 9.0.3
- Scala plugin 0.3.2039
- Ruby plugin 2.5.12197 (for some utility scripts)
Compiling Scala with IDEA's Scala plugin is problematic. The default compiler is slow and the fsc compiler integration is buggy. I've managed to make it work by following these steps:
- Make sure that no fsc instances are running (i.e. kill all Java processes which smell like fsc)
- Delete the $TEMP/scala-devel directory by running the "cleanup_killed_fsc" run configuration (that directory contains a file telling in which port fsc is running)
- Start fsc with IDEA using the "fsc" run configuration
- Wait until fsc has stopped loading classes
- Press "Make" and check that fsc loads more classes - the Scala plugin is now using that instance of fsc
Even with fsc, the current Scala plugin is still slow it compiling, but now it's because it recompiles files which have not been modified. Maybe they will fix it some day.
BTW, the reason why we are not using sbt is that sbt's Maven integration uses Ivy and Ivy does not support the <relativePath> element in POMs. So sbt cannot compile multi-module Maven projects.