No 'scala-library*.jar' in every new IntelliJ Scala Project

后端 未结 5 1547
抹茶落季
抹茶落季 2020-12-29 03:08

I have installed intelliJ-IDEA 2017.2.5 with scala plugin on Ubuntu 16.04LTS. When I create new scala project and try to run it I get:

Error:scalac:

5条回答
  •  佛祖请我去吃肉
    2020-12-29 03:47

    Just upgraded 2017.3.3 to 2017.3.4 on sbt 1.0.3 and Scala 2.12.4. Basically, same s*#t again. In my case it was the warning "Skipping scala files without a scala sdk" for each module after project rebuild.

    However, it was only an issue for the sbt project open during the update, whereas the other projects worked fine afterwards. For the broken project, I finally got its checked-out version from git to work (after "invalidate caches" and other hassle.)

    So these steps may hopefully save future trouble:

    1. Add the relevant project config files to VC
    2. Commit project
    3. Close project
    4. Upgrade

提交回复
热议问题