hello-scaloid-sbt icon indicating copy to clipboard operation
hello-scaloid-sbt copied to clipboard

Errors in generated eclipse project using scala-ide

Open trepidacious opened this issue 10 years ago • 4 comments

When I generate an eclipse project from SBT with "eclipse", I get several errors in Scala IDE 4.0 when I import it:

  • Cannot nest output folder 'hello-scaloid-sbt/bin/classes' inside output folder 'hello-scaloid-sbt/bin'
  • Error in Scala compiler: object scala.runtime in compiler mirror not found.
  • error while loading Object, Missing dependency 'class scala.throws in compiler mirror', required by /Users/trepidacious/android/adt-bundle-mac-x86_64-20140702/sdk/platforms/android-10/android.jar(java/lang/Object.class)
  • SBT builder crashed while compiling. The error message is 'object scala.runtime in compiler mirror not found.'. Check Error Log for details.
  • The project cannot be built until build path errors are resolved

I've tried installing the ADT plugin in the Scala IDE, and it makes no difference. As far as I can see the Scala library is referenced correctly, and "plain" Scala projects created using the Eclipse wizard have no problems. When I put a simple "Hello World" class in the hallo-scaolid-sbt project it also won't run from Eclipse.

The Scala version seems to be 2.11.5 in both hello-scaloid-sbt and Scala IDE 4.0

The code compiles and runs fine in SBT itself.

I've had a quick look through the generated eclipse files and it all looks very similar to a "plain" Scala project.

trepidacious avatar Jan 28 '15 18:01 trepidacious

I've also tried using IDEA, this gives a similar error about "missing dependency 'object scala in compiler mirror'"

trepidacious avatar Jan 29 '15 15:01 trepidacious

I am struggling with the same issue. The generated eclipse project is of java/scala nature. It is not an android project.

tompiercen avatar Mar 13 '15 13:03 tompiercen

I've tested this project with Scala IDE 4.0.0, with ADT plugin is installed. But it is not working nicely as well.

The writer of android-sdk-plugin also recommended to use IntelliJ, not eclipse and its derivatives.

If someone knows a best practice running scala-android project in eclipse, please contribute.

pocorall avatar Mar 15 '15 06:03 pocorall

I have tried IntelliJ. Everything works fine for IntelliJ.

tompiercen avatar Mar 15 '15 08:03 tompiercen