scala - 在 IntelliJ IDEA 中找不到 SBT-shell

标签 scala intellij-idea sbt sbt-plugin

面对构建的一些问题,我删除了 project.idea我的 SBT 项目的目录(包含 submodules)后跟 Invalidate Caches / Restart... (也使缓存无效)

自从重新启动 IntelliJ ,我找不到 sbt shell enter image description here

有趣的是,我仍然收到 sbt shell当我在 project 中打开我的其他项目(其中我没有删除 .ideaIntelliJ 目录)时
enter image description here

我可以确认我有最新版本的 IntelliJ IDEAMacOS安装了 Scala 插件
enter image description here
enter image description here

最佳答案

什么解决了我的问题:

  • 安装 scala 插件
  • 重启
  • 文件 -> 关闭项目
  • 而不是打开,单击新项目,选择带有 sbt 选项的 scala,
    然后下一个
  • 选择与位置相同的项目。

  • 希望它能节省您的时间和精力

    关于scala - 在 IntelliJ IDEA 中找不到 SBT-shell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48199971/

    相关文章:

    intellij-idea - 在 webstorm 和 intellij 中打开同一个项目并防止询问 "project file changed"窗口

    scala - 如何通过sbt让scalatest生成html报告

    java - 覆盖 sbt 0.11.2 中的包名称

    scala - 在 SBT 中,您如何覆盖 compile 以运行任意代码?

    scala - 如何调试scalajs链接器错误: non-existent method java. lang.Class.getDeclaredFields

    scala - 为什么 IDEA 10 中的控制台会以 "tools is not a member of package scala"失败?

    scala - 我应该什么时候使用包,什么时候在 Scala 中使用对象?

    git - 无法在 github 上共享来自 intellij 的项目

    scala - org.apache.spark.ml.classification 和 org.apache.spark.mllib.classification 之间的区别

    scala spec2 我无法创建同时使用 must be_== 和 failure 的测试