Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does IDEA not resolve scala.reflect, but scala-reflect is included in project settings?

I am working with the latest IntelliJ 14 edition with all the latest plugins. Also, I am on Mac Yosemite.

I am trying to simply import scala reflect so I can work with TypeTag

When I try to do this...

import scala.reflect.runtime.universe._

IntelliJ is complaining that it doesn't know what that is. When I try to go through code assist, it also cannot see a runtime package inside of scala.reflect

I see the scala-reflect library in the project settings. I also tried adding by hand the scala-reflect as a libraryDependency of the project. Nothing seems to be working.

Anyone else hit this issue?

like image 929
noplay Avatar asked Apr 17 '15 15:04

noplay


1 Answers

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

like image 137
GC001 Avatar answered Oct 29 '22 11:10

GC001