在 IntelliJ IDEA 中找不到 SBT-shell
Can't find SBT-shell in IntelliJ IDEA
面对构建的一些问题,我删除了我的 SBT 项目的 project
和 .idea
目录(包含 submodules
),然后是 Invalidate Caches / Restart...
(使缓存无效也是)
自从 IntelliJ
重新启动后,我找不到 sbt shell
有趣的是,当我打开 [=15] 中的其他项目(其中我没有删除 project
和 .idea
目录)时,我仍然得到 sbt shell
=]
我可以确认我安装了 MacOS
的 IntelliJ IDEA
的最新版本并安装了 Scala 插件
你可以select
Window → Restore Default layout
或按Shift + F12
这将恢复您的默认 window 布局并且该选项卡将再次可见(您可以通过右键单击隐藏 sbt 选项卡并 selecting 'Remove From Sidebar').
一些windows比如Maven或者Ant需要被
带回来
View → ToolWindows → [Window Name]
在 Intellij 2018 中,在 Preferences - Build, Execution, Deployment - Build Tools - sbt
下,勾选“Use sbt shell for build and import (requires sbt 0.13.5+)
”。然后重启 Intellij。 sbt shell 工具 window 选项卡将出现在底部窗格中(如果没有,select 它来自 View - Tool Windows - sbt shell
)。
在我的例子中,scala 插件需要更新,因此这导致 sbt 从构建工具中消失。
转到 Settings --> Plugins --> Updates
并确保更新了 scala 插件。如果不是并且你更新了它,你应该在之后重新启动 IDE。
之后删除 .idea 文件夹并重新导入项目是项目构建所必需的。
在我的例子中,我启用了 sbt shell 去 "File - Settings - Build, Execution, Deployment - Build Tools - sbt " 并且在这里启用之后,你需要重新启动你的 intellij 然后你可以在这里找到 sbt-shell "view- Tool window - sbt shell"
解决我的问题的是:
- 安装 scala 插件
- 重启
- 文件 -> 关闭项目
- 点击新建项目,而不是打开,select scala with sbt 选项,
然后下一个
- select 与位置相同的项目。
希望它能为您节省时间和精力
面对构建的一些问题,我删除了我的 SBT 项目的 project
和 .idea
目录(包含 submodules
),然后是 Invalidate Caches / Restart...
(使缓存无效也是)
自从 IntelliJ
重新启动后,我找不到 sbt shell
有趣的是,当我打开 [=15] 中的其他项目(其中我没有删除 project
和 .idea
目录)时,我仍然得到 sbt shell
=]
我可以确认我安装了 MacOS
的 IntelliJ IDEA
的最新版本并安装了 Scala 插件
你可以select
Window → Restore Default layout
或按Shift + F12
这将恢复您的默认 window 布局并且该选项卡将再次可见(您可以通过右键单击隐藏 sbt 选项卡并 selecting 'Remove From Sidebar').
一些windows比如Maven或者Ant需要被
带回来View → ToolWindows → [Window Name]
在 Intellij 2018 中,在 Preferences - Build, Execution, Deployment - Build Tools - sbt
下,勾选“Use sbt shell for build and import (requires sbt 0.13.5+)
”。然后重启 Intellij。 sbt shell 工具 window 选项卡将出现在底部窗格中(如果没有,select 它来自 View - Tool Windows - sbt shell
)。
在我的例子中,scala 插件需要更新,因此这导致 sbt 从构建工具中消失。
转到 Settings --> Plugins --> Updates
并确保更新了 scala 插件。如果不是并且你更新了它,你应该在之后重新启动 IDE。
之后删除 .idea 文件夹并重新导入项目是项目构建所必需的。
在我的例子中,我启用了 sbt shell 去 "File - Settings - Build, Execution, Deployment - Build Tools - sbt " 并且在这里启用之后,你需要重新启动你的 intellij 然后你可以在这里找到 sbt-shell "view- Tool window - sbt shell"
解决我的问题的是:
- 安装 scala 插件
- 重启
- 文件 -> 关闭项目
- 点击新建项目,而不是打开,select scala with sbt 选项, 然后下一个
- select 与位置相同的项目。
希望它能为您节省时间和精力