gfsyy0 2013-01-05
ScalaonMAC(2)ScalaIDEVersionandEnvironmentPrepare
1.SomeToolstoprepare
SpringToolSuite-3.1.0
http://www.springsource.org/downloads/sts-ggts
TypesafeScalaIDE-2.1-M2-2.9
http://typesafe.com/stack/scala_ide_download
Eclipse-4.2.1
http://www.eclipse.org/downloads/
eclipse-jee-juno-SR1-macosx-cocoa-x86_64
Scala-2.10.0
http://www.scala-lang.org/downloads
2.PrepareScala
Justunzipthescalaandputitinmytooldirectory
/Users/carl/tool/scala-2.10.0
SinceIalreadyhavescala2.9.2onmypc,soIwilldolikethis.
>sudoln-s/Users/carl/tool/scala-2.9.2scala2.9.2
>sudoln-s/Users/carl/tool/scala-2.10.0scala2.10.0
Deletemyolddirectorylink
>sudormscala
Updateittothelatestone
>sudoln-sscala2.10.0scala
Checktheversion
>scala-version
scalacoderunnerversion2.10.0
3.PrepareEclipse
TypeSafeeclipse
Rightnow,IplantouseTypeSafeeclipse,onlybecauseitissmall
Iplantoinstallthepluginfromhere:
http://download.scala-ide.org/sdk/e37/scala210/dev/site/
IpickuptheURLfromthiswebsite:
http://scala-ide.org/download/milestone.html
Maybe,ifweuseotherversionofeclipse,weneedtochangethepluginURL.
ItisworkingontypesafeeclipseScalaIDE
SpringToolSuite
InstallthedefaultScalapluginondashboardfirst.
Thescalaversionis2.9.3.Itisnotrightforme.Iwillchangeit.
Firstly,uninstalltheold2.9.3plugin.ThenusethisURLforSTS3.10.0
http://download.scala-ide.org/sdk/e38/scala210/dev/site/
Itworks.
InSTS,thereisalreadygitplugin.Soitisgoodforme.SoIwillgoto'GitRepositoryExploring'viewandchoose'AddanexistinglocalGitrepository'
4.SomeprojectTips
BuildtoeclipsebasedonSBT
Createafile~/.sbt/plugins/build.sbt
addSbtPlugin("com.typesafe.sbteclipse"%"sbteclipse-plugin"%"2.1.0")
>sbteclipse
or
>sbt
sbt>update
sbt>eclipse
References:
http://www.springsource.org/downloads/sts-ggts