Skip to content

Instantly share code, notes, and snippets.

@jmxpearson
Last active August 29, 2015 14:24
Show Gist options
  • Save jmxpearson/b5535198e09ab528bd47 to your computer and use it in GitHub Desktop.
Save jmxpearson/b5535198e09ab528bd47 to your computer and use it in GitHub Desktop.
Coursera scala setup

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 version 2.2.0, which worked. (I think 2.1.0 is deprecated and no longer hosted.)
  • 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment