Eclipse not recognizing Scala code

前端 未结 11 2639
说谎
说谎 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:26

    My Java Classes refuse to recognize my Scala ones. However when I do a "Ctrl + Click" = Open Declaration, it goes to the right place. My Java Classes that depend on Scala look like Red all over. I checked Build Path settings etc, they all look ok.

    I had the same problem. When I moved my Scala classes to the correct package folder, it worked. Scala does not need this. But only that way Java editor reconized the Scala class.

提交回复
热议问题