IntelliJ Cannot Import sbt Project

前端 未结 14 1904
Happy的楠姐
Happy的楠姐 2021-01-29 23:14

I have upgraded IntelliJ to version CE 2017.3 from a CE 2017.2.5, and now I cannot build my sbt project. The build gets stuck on the first step:

\"Build: sync
           


        
14条回答
  •  -上瘾入骨i
    2021-01-30 00:08

    • Open a terminal inside IDEA by pressing Alt F12 or use sbt shell
    • Run sbt - if it is first time it will take some time.
    • Run clean
    • Run compile - it will download dependencies you have in your project.
    • Close IDEA project (File -> Close Project) and open it again.

    Note: if it asks to import in the right-bottom of the screen activate Enable auto-import, if you don't like to keep it enabled (like me) press Import, cancel the syncronyzation and then Refresh sbt project again. When you try to use import in the middle of a sync it gets stuck with dump project structure from sbt message.

    The Refresh sbt project is located at this corner of the Build Sync window - highlighted below:

提交回复
热议问题