How to fully clean, re-resolve and rebuild a Scala sbt-managed project in IDEA?

前端 未结 10 681
一向
一向 2021-02-02 06:18

TL;DR: How can I fully reconcile all dependencies in IntelliJ when SBT file changes

I have a SBT project setup in IntelliJ. For the most part if works l

10条回答
  •  梦如初夏
    2021-02-02 06:39

    When you save the SBT file, IntelliJ IDEA normally refreshes the project. But if it doesn't, you can do it manually.

    There is a Refresh All SBT Projects button in the SBT Panel:

    On the occasion that IDEA is still confused, not finding packages you just added:

    From the File menu:

    It's a pretty big hammer, requiring a restart of the app, and multi-minute rebuild of the IntelliSense index. But it's occasionally the only thing that will get IDEA to recognize your new SBT packages.

提交回复
热议问题