Eclipse not recognizing Scala code

前端 未结 11 2642
说谎
说谎 2021-02-18 19:20

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.

How

11条回答
  •  孤独总比滥情好
    2021-02-18 19:41

    Sometimes, or in some versions, you don't see the "Add Scala Nature" option.

    Adding it to your .project file manually should do. E.g. this project supports scala and java natures, so it will treat .java as Java, and .scala as Scala.

    
      myprojectname
      
        
          org.scala-ide.sdt.core.scalabuilder
        
      
      
        org.scala-ide.sdt.core.scalanature
        org.eclipse.jdt.core.javanature
      
       
    
    

提交回复
热议问题