Why doesn't IDEA allow scala.reflect, but is scala -reflect included in the project settings?

I am working with the latest version of IntelliJ 14 with all the latest plugins. Also, I'm on Mac Yosemite.

I'm trying to just import scala so that I can work with TypeTag

When I try to do this ...

 import scala.reflect.runtime.universe._ 

IntelliJ complains that it does not know what it is. When I try to execute the help of the code, it also cannot see the runtime package inside scala.reflect

I see the scala -reflect library in the project settings. I also tried manually adding scala -reflect as a libraryDependency project. Nothing seems to work.

Has anyone else got into this problem?

+5
source share
1 answer

Go to your project structure and check your module dependency. Make sure that org.scala-lang: scala -reflect: VERSION: jar has the area you want to compile.

+3
source

All Articles