I am working on a playframework project that I have eclipsified from the console and opened from Eclipse.
However my scala source files are treated as java source files by Eclipse with the resulting compilation errors.
Can anyone please help?
EDIT: My .project file:
<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>
I have had similar issues in the past. I think the problem was the Java Builder for the project. This is the content of a
.projectfile that can buildJavaas well asScalaclasses. You can compare it to your own configuration: