Version 3, last updated by Richard Dallaway at Dec 15 22:15 2011 UTC
Configuring the Source
Working with scala and scala-trunk locally checked out
After your initial checkout you should expect to see errors reported against the scala-library project at least. This is because it depends on Scala library jar files which haven't been built yet."
The script to build these jars is in the 'scala-plugin' project, just run the devel.prep target in the Ant file (build.xml). In Eclipse: Alternatively, from the command line: When the build has completed refresh your workspace and all errors reported against the three Scala projects should be gone. If this errors, try separately running the devel.clean then devel.dist targets. If instead you see an error like this... ...adding "-Xmx1024m" to the "VM Options" on the JRE tab in step 4 above (or to ANT_OPTS on the command line) and trying again might help. If you find it takes more than just a run of the devel.prep target (ie. if you find you have to build other projects first or run other targets) then you've found a bug. Please report it ... patches welcome! Note: If desired, you can at any time close the scala and scala-library projects and follow the directions below to work on just the scala-plugin and scala-plugin-aspects projects. Working without scala and scala-library locally checked out When working without scala or scala-library, you need to make sure you are running the latest possible nightly build. As the Scala IDE is compiled against the scala compiler, there are some times where it uses features only available in the current nightly. It is recommended to upgrade to the latest nightly before beginning development on a bugfix/feature set. This should help prevent spurious errors. Temporary Workaround The Scala IDE sometimes requires the scala-library to be at the bottom of the dependency lists for a project for successful parsing/compilation. Simply remove and re-add the Scala nature if you have trouble working on the scala-plugin project
cd scala-plugin
set ANT_OPTS=-Xmx1024m -Xss1M
ant devel.prep
BUILD FAILED
scala-plugin/build.xml:99: The following error occurred while executing this line:
scala/build.xml:233: java.lang.OutOfMemoryError: Java heap space