更改后如何强制 IntelliJ IDEA 从 build.sbt 重新加载依赖项? [英] How to force IntelliJ IDEA to reload dependencies from build.sbt after they changed?
问题描述
我使用 IntelliJ IDEA 13(社区版)和 Scala 插件.
I'm using IntelliJ IDEA 13 (Community Edition) with the Scala plugin.
我使用 build.sbt
对现有 Scala 项目的初始导入工作正常.库依赖项由 IDEA 选取.尽管我已经检查了 auto-import
选项,但没有选择在初始导入后添加的其他依赖项.
My initial import of an existing Scala project with a build.sbt
worked fine. The library dependencies were picked up by IDEA. Additional dependencies added after the initial import were not picked up, although I had checked the auto-import
option.
如何强制 IDEA 从 build.sbt
重新加载依赖项?
How can I force IDEA to reload the dependencies from build.sbt
?
推荐答案
您可以强制 SBT 重新加载更改:打开 SBT 工具窗口(在 IDE 的右侧)并按刷新按钮.
You can force SBT to reload changes: Open SBT toolwindow (on the right side of IDE) and press refresh button.
如果您使用自动导入功能,您需要保存文件以强制自动刷新.
If you use auto-import feature you need to save your file to force auto-refresh.
这篇关于更改后如何强制 IntelliJ IDEA 从 build.sbt 重新加载依赖项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!