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

前端 未结 10 693
一向
一向 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:34

    Agree, that's a PITA. Nothing helped me (I tried "Invalidate/Restart", removing files from ".idea/libraries" and restarting).

    The only way to overcome the problem for me was to manually remove project-related folders from the IntelliJIdea cache. I removed these folders from the following places (I use OSX and IntelliJ-Idea 14):

    • /Users/{UserName}/Library/Caches/IntelliJIdea14/compiler/{ProjectName}
    • /Users/{UserName}/Library/Caches/IntelliJIdea14/compile-server/{ProjectName}

    This helped me, hope it will save time for someone.

提交回复
热议问题