Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in generated eclipse project using scala-ide #15

Open
trepidacious opened this issue Jan 28, 2015 · 4 comments
Open

Errors in generated eclipse project using scala-ide #15

trepidacious opened this issue Jan 28, 2015 · 4 comments

Comments

@trepidacious
Copy link

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
Copy link
Author

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

@tompiercen
Copy link

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

@pocorall
Copy link
Owner

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.

@tompiercen
Copy link

I have tried IntelliJ. Everything works fine for IntelliJ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants