Skip to content

Development Environment Setup

orfjackal edited this page Aug 19, 2010 · 1 revision

Development Environment Setup

IDE

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)

fsc

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:

  1. Make sure that no fsc instances are running (i.e. kill all Java processes which smell like fsc)
  2. 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)
  3. Start fsc with IDEA using the "fsc" run configuration
  4. Wait until fsc has stopped loading classes
  5. 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.

Clone this wiki locally