如何为Scala 2.10设置Intellij [英] How to setup Intellij for Scala 2.10
问题描述
-
首先我安装了macports
First I installed macports
然后我安装了Scala并通过macports播放:为了确保安装有效我在日食上运行一个你好世界。它有效!
Then I installed Scala and Play through macports: To make sure installation works I run a "hello world" on eclipse. It works!
但由于我的目标是使用Intellij,我尝试按照 http://confluence.jetbrains.com/display/SCA/Getting+Started+with+IntelliJ+IDEA + Scala +插件
But since my objective is to use Intellij, I try to follow the instructions at http://confluence.jetbrains.com/display/SCA/Getting+Started+with+IntelliJ+IDEA+Scala+Plugin
在说明的第3步(创建项目
部分),在下使用scala分发
,我不知道要输入什么。有人请告诉我要输入什么?我正在使用mac os x mountain lion。我不知道scala安装的路径。
On step 3 of the instructions (section Creating a Project
), under use scala distribution
, I am not sure what to type. Will someone please tell me what to type? I am using mac os x mountain lion. I don't know the path to my scala installation.
我很感激帮助。我已经查看了 Scala的Intellij Idea设置,需要澄清。没有帮助。我的Intellij版本是 12.0.3
,我的scala安装是 2.10
。
I appreciate the help. I have already looked at Intellij Idea setup for Scala, clarification needed. No help there. My Intellij version is 12.0.3
and my scala install is 2.10
.
推荐答案
我不知道OSX,但可能你可以打开一个终端,输入 ls -l`scala`
进入它,并获取scala可执行文件的路径。
I don't know OSX but presumably you can open a terminal, type ls -l `which scala`
into it, and get the path to the scala executable.
然后您可以输入该路径,而不包含 / bin / scala
最后,进入intellij对话。
You can then enter that path, without the /bin/scala
on the end, into the intellij dialogue.
这篇关于如何为Scala 2.10设置Intellij的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!