Skip to content

Instantly share code, notes, and snippets.

@krrrr38
Forked from pesblog/intellij_play.md
Created September 11, 2013 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krrrr38/6522856 to your computer and use it in GitHub Desktop.
Save krrrr38/6522856 to your computer and use it in GitHub Desktop.
$ cd $$PROJECT_DIR$$
$ rm -rf .idea .idea_modules
$ play
[PROJECT_NAME] $ compile
[PROJECT_NAME] $ idea no-fsc no-sbt-build-module
  • Intellij IDEAでプロジェクトを開く
  • Play 2 のコメント欄の Ignore をクリック
  • ProjectSettinsを開く
    • SDKs に Java1.7 を追加する(追加されてることもある)

    • Global Libraries に scala 2.10.2 を追加
      // 追加するpath
      /usr/local/Cellar/scala/2.10.2/libexec/lib/scala-compiler.jar
      /usr/local/Cellar/scala/2.10.2/libexec/lib/scala-library.jar
      /usr/local/Cellar/scala/2.10.2/libexec/lib/scala-reflect.jar

    • Facets > Scala ($$PROJECT_NAME$$) を開いて compiler にさっき作ったscala 2.10.2を選択する

    • errorが2つ位なので、両方ともFixをクリックしてRemove ~~を実行する

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment