You need to specify /usr/local/Cellar/scala/2.9.2/libexec
directory on your first screenshot. This is Mac brew
specific, the same case is valid for grails
installed via brew
.
Standard Scala distribution download has different layout which IDEA understands correctly, brew
is creating libexec
directory where it writes /lib
and /src
directories expected by IDEA.