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

Compilation failed: scala.reflect.internal.MissingRequirementError #31

Closed
CH3CHO opened this issue Jul 22, 2014 · 2 comments
Closed

Compilation failed: scala.reflect.internal.MissingRequirementError #31

CH3CHO opened this issue Jul 22, 2014 · 2 comments
Assignees

Comments

@CH3CHO
Copy link

CH3CHO commented Jul 22, 2014

When I run "gradle clean build", this error occurs:

:restli-int-test-server:generateRestModel FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':restli-int-test-server:generateRestModel'.

scala.reflect.internal.MissingRequirementError: object scala.runtime in compiler mirror not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Does anyone know how to fix it? I tried both jdk1.6.0_45 and jdk1.7.0_45. I have Scala 2.11.1 installed, too.

Thanks.
Kent

@karanparikh karanparikh self-assigned this Jul 22, 2014
@karanparikh
Copy link
Contributor

Hi @CH3CHO

Your bug seems to be the same as LinkedInAttic/rest.li-api-hub#1. I will take a look at this. Thanks for bringing this to our attention.

@CH3CHO
Copy link
Author

CH3CHO commented Jul 22, 2014

Hi @karanparikh

Thanks. Commenting following lines fixes this problem.

//apply plugin: 'scala'
//compile externalDependency.scalaLibrary_2_10
//compile project(':restli-tools-scala_2.10')

And files below need to be removed so the following builds can be completed successfully.

restli-int-test-api\src\main\idl\com.linkedin.restli.examples.scala.client.scalaGreetings.restspec.json
restli-int-test-api\src\main\snapshot\com.linkedin.restli.examples.scala.client.scalaGreetings.snapshot.json

Kent

@CH3CHO CH3CHO closed this as completed Jul 25, 2014
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

2 participants