IDEAWarning:scala: skipping Scala files without a Scala SDK in module(s) systemimport

Posted 九师兄

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IDEAWarning:scala: skipping Scala files without a Scala SDK in module(s) systemimport相关的知识,希望对你有一定的参考价值。

文章目录


1.概述

表现特征,project里面的build.scala的任何东西都不生效,提示一片红,如此操蛋.

打开src目录下的scala源代码提示 no Scala SDK in module

然后在设置sdk刷新依赖之后,相关的scala-lang的包又没了

直接编译scala文件,则提示

Warning:scala: skipping Scala files without a Scala SDK in module(s) systemimport

尝试解决防范

  1. 卸载IDEA scala 插件 并且重装 问题没有解决
  2. 卸载IDEA sbt插件 并且重装 问题没有解决
  3. 删除使用项目文件夹下的.idea文件夹. 使用IDEA重新导入项目 ,居然奇迹般的好了.

也有可能是1,2步累计才生效,但是一开始没有直接测试3) .

表现特征

http://stackoverflow.com/questions/4773784/module-sdk-for-scala-in-intellij-idea

转载于:https://my.oschina.net/u/1538135/blog/680716

scala 与java 混合的maven项目

模块右键–》Add Framework Support

https://intellij-support.jetbrains.com/hc/en-us/community/posts/206411529-Add-Scala-SDK-to-module

以上是关于IDEAWarning:scala: skipping Scala files without a Scala SDK in module(s) systemimport的主要内容,如果未能解决你的问题,请参考以下文章

Error Permission denied when running brew cleanup