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

后端 未结 4 2079
走了就别回头了
走了就别回头了 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:13

    Normally it should create these folders automatically. It may take a while though - it takes couple of seconds in my case.

    When creating project make sure you have selected Scala -> SBT, then proceed with the wizard.

    Once the Finish is clicked, the project will be loaded. This part takes couple of seconds, and I can see no src/main/scala nor src/test/scala generated until it's done. Observe the bottom of the screen to see when it's done.

    Loading Process

    Once the process is finished, you'll see the folders.

    Loaded Done

    If that's not the case, check the settings. You should have the Create directories for empty content roots automatically checked. You may want to check Use auto-import to automatically propagate changes in the build.sbt.

    Settings

    After changing the settings (if the change is required) you may need to refresh the project, as seen in picture below.

    Refresh Settings

提交回复
热议问题