使用Play 2.0项目在Intellij IDEA 11中找不到Scala编译器 [英] Scala Compiler not found in Intellij IDEA 11 with Play 2.0 project

查看:512
本文介绍了使用Play 2.0项目在Intellij IDEA 11中找不到Scala编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用典型的播放新的创建了一个项目,然后我使用播放想法来生成.iml文件。当我将.iml文件导入Intellij IDEA时,我无法弄清楚如何让编译器库识别。以下是一些截图:

I created a project using the typical play new, and then I used play idea to generate the .iml file. When I imported the .iml file into Intellij IDEA, I could not figure out how to get the compiler library to recognize. Below are some screenshots:

请帮助!

推荐答案

这与IntelliJ中的Scala设置略有不同。目前注册scala发行版的唯一方法是创建一个新项目。

This is a slight weirdness with the Scala settings in IntelliJ. Currently the only way to register a scala distribution is to create a new project.

步骤:


  1. 文件>新建项目>从头开始创建项目

  1. File > New Project > Create project from scratch

将所有设置保留为默认值。项目名称可以是任何内容。

Leave all settings as default. Project name can be anything.

在请选择所需技术页面上,选择Scala。将出现一些GUI元素,允许您告诉IntelliJ如何查找scala编译器和库。确保将级别选项设置为全局。

On the "Please select the desired technologies" page, choose Scala. Some GUI elements will appear that allow you to tell IntelliJ how to find your scala compiler and library. Make sure to set the "Level" options to "global".

单击完成。关闭您创建的虚拟项目,然后返回到您的真实项目。您注册的Scala编译器现在应该位于项目设置页面的列表中。

Click Finish. Close the dummy project that you created, and go back to your real project. The Scala compiler that you registered should now be in the list on your project settings page.

这篇关于使用Play 2.0项目在Intellij IDEA 11中找不到Scala编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆