我正在开发一个从控制台中删除并从 Eclipse 中打开的 playframework 项目。
但是,Eclipse 将我的 scala 源文件视为 java 源文件,从而导致编译错误。
有人可以帮忙吗?
编辑:我的 .project 文件:
<projectDescription>
<name>web</name>
<buildSpec>
<buildCommand>
<name>org.scala-ide.sdt.core.scalabuilder</name>
</buildCommand>
</buildSpec>
<natures>
<nature>org.scala-ide.sdt.core.scalanature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>