mwunsch / handlebars.scala

A Scala implementation of the Handlebars templating language (a superset of Mustache).
Apache License 2.0
112 stars 40 forks source link

SBT dependency change to play-json 2.5.4 to avoid NoSuchMethodError JsLookup #62

Closed ntbrock closed 8 years ago

ntbrock commented 8 years ago

Awesome library, thank you! Making use of it successfully in my Play 2.5 application Using the -SNAPSHOT extension until pull request is merged.

This is the fix for the mysterious runtime exception: java.lang.NoSuchMethodError: play.api.libs.json.JsLookup

Caused by: java.lang.NoSuchMethodError: play.api.libs.json.JsLookup$.$bslash$extension(Lplay/api/libs/json/JsLookupResult;Ljava/lang/String;)Lplay/api/libs/json/JsLookupResult; at com.gilt.handlebars.scala.binding.playjson.PlayJsonBinding.traverse(PlayJsonBinding.scala:44) at com.gilt.handlebars.scala.context.Context$class.lookup(Context.scala:73) at com.gilt.handlebars.scala.context.RootContext.lookup(Context.scala:14) at com.gilt.handlebars.scala.context.Context$class.lookup(Context.scala:34) at com.gilt.handlebars.scala.context.RootContext.lookup(Context.scala:14) at com.gilt.handlebars.scala.visitor.DefaultVisitor$$anonfun$2.apply(DefaultVisitor.scala:78) at com.gilt.handlebars.scala.visitor.DefaultVisitor$$anonfun$2.apply(DefaultVisitor.scala:78) at scala.Option.orElse(Option.scala:289) at com.gilt.handlebars.scala.visitor.DefaultVisitor.visit(DefaultVisitor.scala:76) at com.gilt.handlebars.scala.visitor.DefaultVisitor.visit(DefaultVisitor.scala:45)

vbocquel commented 5 years ago

Hi! Sorry for the unexpected dig up, but will this be published someday ?

ntbrock commented 5 years ago

@vbocquel I've been using this in my fork for years, works great!

vbocquel commented 5 years ago

Great, that's exactly what I need. Is it published somewhere ? :blush:

ntbrock commented 5 years ago

@mwunsch https://github.com/brainps/handlebars.scala

I just fetched master so my fork is completely up to date with mwunsch's great implementation!