title: Opening shapeless in Intellij IDEA with Scala plugin
body: <p>I've never really managed to get Intellij IDEA to load scala projects well.</p>
  
  <p>For example, I'd like to load the shapeless library: <a href="https://github.com/milessabin/shapeless" rel="nofollow">https://github.com/milessabin/shapeless</a></p>
  
  <p>After cloning the repo, I use "Import Project" in Intellij to open it. I tell it to use the SBT external model. It opens, but fails to build due to missing dependencies ("Error: object scala.runtime in compiler mirror not found.").</p>
  
  <p>If I check the Project Structure, I have 6 modules: "shapeless", "shapeless-build", "shapeless-core", "shapeless-core-build", "shapeless-examples" and (you guessed it) "shapeless-examples-build". The source folders for all of these are wrong, including a mix of "target/scala-2.10.3/src_managed/main" and others.</p>
  
  <p>I can't believe that Intellij would get this so wrong unless I'm doing something wrong. The question is: what is it that I'm doing incorrectly?</p>