SBT eclipse command issue on multi-project

290 Views Asked by At

I imported an eclipse project from an sbt multi project. The sbt eclipse command did complete normally But the resulting eclipse project is full of errors as dependency between sub projects are not seen. I think the sbt plugin is failing on multi projects, or am I missing something. The project run from sbt runs flawlessly. But I have no IDE support.

I tried Idea, the multiproject loads flawlessly, but the type indication on flyover is super slow and very often freeze Idea, it is unusable. Eclipse as tons of errors because of depencies, but for the type recognised, it gives them very quickly. I hope somebody has a solution.

1

There are 1 best solutions below

0
Luis On

I guess that you must run "sbt eclipse" from the root sbt project directoy, and then, when importing into eclipse, click the checkbox "search for nested proyects". That will create a separate proyect for any of the multiple sbt subprojects. And the references between them will be found.