running the first example of playframework in IntelliJ on a Mac OSX

后端 未结 2 1714
野性不改
野性不改 2021-02-03 12:06

In my new mac OSX 10.8.3, I install scala 2.10.0, play 2.1.0 and IntelliJ12, and create a play project as follows:

#install brew
> ruby -e \"$(curl -fsSL http         


        
相关标签:
2条回答
  • 2021-02-03 12:19

    This problems can be solved by generating the idea project with:

    $ play  # start play from command line
    [your-play-project] $ idea no-sbt-build-module
    

    This will enable IntelliJ's default building mechanism for Scala, which won't cause these problems.

    0 讨论(0)
  • 2021-02-03 12:20

    Here's what helped me in the past with the same errors:

    1. Remove any Scala 2.9.2 dependencies
    2. Go to Project Structure -> Global libraries. Create a new one, called, say, scala-bundle. Add scala-compiler.jar, scala-library.jar, scala-reflect.jar for 2.10.
    3. Finally, go to Project Structure -> Modules -> myapp -> Scala and select scala-bundle.

    For module sharing errors, go to Project Structure -> Modules -> <each module> -> Paths and change the paths so they're not the same.

    0 讨论(0)
提交回复
热议问题