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

Cannot compile any template #98

Open
ProfileSeeker opened this issue Jan 21, 2017 · 7 comments
Open

Cannot compile any template #98

ProfileSeeker opened this issue Jan 21, 2017 · 7 comments

Comments

@ProfileSeeker
Copy link

I am getting errors:
Exception in thread "main" org.fusesource.scalate.TemplateException: scala.tools.nsc.symtab.classfile.ClassfileParser$unpickler$.unpickle([BILscala/reflect/internal/Symbols$Symbol;Lscala/reflect/internal/Symbols$Symbol;Ljava/lang/String;)V

And code:

val engine = new TemplateEngine
engine.layout("temp.jade")
@afayes
Copy link

afayes commented May 31, 2017

I have the same issue. Is it the issue being looked into? was posted in January!!!

@ProfileSeeker
Copy link
Author

Maybe the project is dead?

@seratch
Copy link
Member

seratch commented Jun 6, 2017

We need more information to reproduce the situation.

@afayes
Copy link

afayes commented Jun 7, 2017

It's now working for me. My installed Scala version did not match the version I was specifying in the Maven POM, updated my Scala installation and now its working fine.
scala version is 2.12.2
scalate version is 1.8.0

@Fruzenshtein
Copy link

@seratch
Copy link
Member

seratch commented Jul 31, 2017

I'm afraid that you encountered a bin compatibility issues among several scala compiler versions. Explicitly overriding the scala lang version like this is preferred to avoid such problems.

dependencyOverrides := Set(
  "org.scala-lang"         % "scala-library"             % scalaVersion.value,
  "org.scala-lang"         % "scala-reflect"             % scalaVersion.value,
  "org.scala-lang"         % "scala-compiler"            % scalaVersion.value
),

@Fruzenshtein
Copy link

Fruzenshtein commented Jul 31, 2017

@seratch as I answered on stackowerflow:
In my particular case there was a problem in a conflict of log4j version of scalate and one other scala lib. So the solution which works for me is:

"org.scalatra.scalate" %% "scalate-core" % "1.8.0" excludeAll(ExclusionRule(organization = "org.slf4j"))

But any way thanks. I hope your post would be helpful for other people who encounter this issue.

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

4 participants