使用IntelliJ设置scala [英] Setting up scala with IntelliJ
问题描述
我有安装了scala插件的Intellij ultimate 11.1。
I have Intellij ultimate 11.1, with the scala plugin installed.
我使用自制软件安装了scala 2.9.2,它将scala放入:
I installed scala 2.9.2 using homebrew, which put scala in:
/usr/local/Cellar/scala/2.9.2>
>which scala
/usr/local/bin/scala
>scala -version
Scala code runner version 2.9.2 -- Copyright 2002-2011, LAMP/EPFL
创建一个新的java模块项目,我得到这个:
Creating a new java module project, I get this:
有人可以提供帮助我解决了这些问题,为什么scala插件没有开箱即用? :)
Can someone help me fix these issues, why didn't the scala plugin make this work out of the box? :)
推荐答案
您需要指定 /usr/local/Cellar/scala/2.9.2/您的第一个屏幕截图上的libexec
目录。这是Mac brew
具体,同样的情况适用于 grails
通过 brew安装
。
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
.
标准 Scala分发下载具有IDEA正确理解的不同布局, brew
正在创建 libexec
目录在哪里写下 / lib
和 / src
IDEA预期的目录。
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.
这篇关于使用IntelliJ设置scala的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!