eclipsescalaeclipse-pluginscala-ide

Eclipse not recognizing Scala code


I have Eclipse Indigo with the Scala IDE plugin. I downloaded a lift project from Maven. It builds correctly. Eclipse says it is viewing it with the Scala editor.

However, it is still giving my an error on each line because it is treat the code as Java (it gives errors for no semicolon, for the word "def" etc.) I tried cleaning the project and it still gives the errors.


Solution

  • A couple of things I would try:

    1) Right-click on project, Configure > Add Scala Nature.

    2) In the Scala menu, Run Setup Diagnositics... > Use recommended default settings