IntelliJ IDEA 13: new Scala SBT project hasn't src directory structure generated

后端 未结 4 2078
走了就别回头了
走了就别回头了 2021-02-03 23:06

I followed the getting start video on Jetbrains website to setup IntelliJ IDEA 13.1 Community Edition to work with Scala. Scala plugin v0.36.431 had been installed. While I crea

4条回答
  •  感情败类
    2021-02-03 23:32

    Thanks to lpiepiora, with his hint I find out the reason.

    Because my sbt is newly installed, there is nothing in ~/.ivy2/cache/ and ~/.sbt/boot/. sbt needed to download required dependencies from repositories on network. It happened that my proxy to internet had something wrong, download stuck.

    And also need to notice that, if quit IntelliJ IDEA when sbt is running in background, the next time you'll get error of waiting for some lock file. Have to remove the lock file on filesystem and restart IntelliJ IDEA again.

    After fixed the network problem, everything work as promised. It requires several minutes, depends on network speed, to download required jar files. After finished, the src/ directory structure is created.

提交回复
热议问题