There have been two plugins for editing Scala with Eclipse. The original plugin (listed at the main web page http://www.scala-lang.org/tools/eclipse/index.html is no longer actively developed, and whilst it’s been updated to use Scala 2.7, it has lagged behind.
The new plugin, described below,is the version of Eclipse that will be actively developed going forwards. It’s still a little rough round the edges (2008Q1) but is getting more stable as time goes on.
The new Scala Eclipse plugin is available for testing. It is available at http://www.scala-lang.org/downloads/distrib/files/nightly/scala.update/ as a remote update site. This update site is hooked directly into the nightly build, so bug fixes will be deployed rapidly. The design is very risky, so we expect many bugs at the beginning. Please field detailed bug reports through the Scala Trac, and use this page for release notes. For email discussion, use scala-tools@listes.epfl.ch. This page is owned by the community: feel free to edit this page with any useful information about the new plugin.
of stack memory (and probably heap memory also) that you give eclipse. Edit your eclipse.ini file with something like -showsplash org.eclipse.platform–launcher.XXMaxPermSize256m-vmargs-Xms40m-Xmx256m Different platforms may vary.
(<foo>..</foo>) is supposed to work but is not well tested.Please leave detailed bug reports on how a defect occurs. Code is often not good enough, explain how the crash can be reproduce. Include error log entries as appropriate. Also, rate your bugs according to how annoying they are; e.g., is it just an entry in the error log or is it something that freezes you out of doing useful work. I’m aiming to fix the really annoying bugs first, other bugs will be fixed later.
The Scala Trac can be used for bug reports. Set “component” to “eclipse plugin” and please mention that it is about the “new plugin” in the summary or the comment.
You may be using the old (”stable”) Eclipse plugin which will soon be deprecated. The new (”beta”) Eclipse plugin seems to work much better. Make sure you are using the new plugin, which is available here http://www.scala-lang.org/downloads/distrib/files/nightly/scala.update/
I believe that Sean McDirmid has indicated the new plugin should work with versions 3.3 and 3.4 of Eclipse.
There is currently no interpreter supported in the new plugin. As a work-around, you can download the main Scala package, and launch the Scala interpreter using this command
scala -classpath {your_eclipse_workspace}/{your_eclipse_project}/bin
* Error opening a Scala file ‘class scala.reflect.Manifest not found’
Remove scala-library.jar from your .classpath or replace it with the scala-library.jar from the plugin. Note, if you use maven-eclipse plugin to generate the .classpath file you need to add following configuration:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.5</version>
<configuration>
<excludes>
<exclude>org.scala-lang:scala-library</exclude>
</excludes>
<classpathContainers>
<classpathContainer>ch.epfl.lamp.sdt.launching.SCALA_CONTAINER</classpathContainer>
</classpathContainers>
<projectnatures>
<java.lang.String>ch.epfl.lamp.sdt.core.scalanature</java.lang.String>
<java.lang.String>org.eclipse.jdt.core.javanature</java.lang.String>
</projectnatures>
<buildcommands>
<java.lang.String>ch.epfl.lamp.sdt.core.scalabuilder</java.lang.String>
</buildcommands>
</configuration>
</plugin>
</plugins>