Getting Eclipse/Scala-IDE set up for the Coursera Scala class was a pain. This is because the course materials were created for Scala 2.10, but the editor and IDE are set up with 2.11. Plus lots of other versions, dependencies, etc. have changed.
So here's what I needed to do for the example
assignment:
- Do this:
- However, I did not comment out the Eclipse plugin line in
project/buildSettings.sbt
. Instead, I changed it to version2.2.0
, which worked. (I think2.1.0
is deprecated and no longer hosted.)
- However, I did not comment out the Eclipse plugin line in
- After this, sbt built (command
sbt eclipse
) and the package imported in Eclipse, but I had errors, and my Scala tests wouldn't run. - Finally, I needed to right click the project and do Properties -> Scala Compiler -> Scala Installation and choose
2.10
. I got this tip from here