IntelliJ 14 - Create / Import a Scala / SBT project

后端 未结 4 2001
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-09 02:52

IntelliJ 14 supports (in theory) SBT / Scala projects through the Scala plugin, which is still available in the official repo. According to this post \"Scala plugin project

相关标签:
4条回答
  • 2020-12-09 03:24
    1. Install scala plugin. Settings -> Plugins -> Scala -> Install
    2. Open directory with sbt build: File -> Open Project -> select directory with build.sbt -> configure settings

    That worked for me just a couple of minutes ago. It may be necessary to reset cache and restart: File -> Invalidate Caches / Restart.

    0 讨论(0)
  • 2020-12-09 03:31

    I've finally figured out the exact problem. IntelliJ loaded the default settings of the previous version, including the old version of the Scala plugin. The problem was fixed uninstalling the old Scala plugin and following the steps posted by Eugene Zhulenev

    0 讨论(0)
  • 2020-12-09 03:41

    I tried the following steps but they didn't help:

    • Invalidate cache and restart IntelliJ
    • Close the project and re-import the project
    • Uninstall the Scala plugin and reinstall it

    Eventually, I removed the target folders in the project, and re-imported it. Then it worked.

    0 讨论(0)
  • 2020-12-09 03:43

    Make sure you have the scala plugin for intellij. Go file>new>'project from existing source', select your project to import. Go to build.sbt and there should be a prompt to import the packages. Sometimes, you can try to file>synchronise or file>'invalidate cache and restart'.

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