I had a problem with the first version of SJSON (What is a good library for JSON serialization for Scala 2.8.1 for use in Eclipse) that I tried to use, but with the new version I tried the same problem is still there, so it is something I am not certain how to handle.
This is one example of what I am having problems with, it starts on line 50 at https://github.com/ginkel/sjson/blob/master/src/main/scala/sjson/json/Generic.scala:
<#list 2..9 as i>
<#assign typeParams><#list 1..i as j>T${j}<#if i !=j>,</#if></#list></#assign>
def asProduct${i}[S, ${typeParams}](<#list 1..i as j>f${j}: String<#if i != j>,</#if></#list>)(apply : (${typeParams}) => S)(unapply : S => Product${i}[${typeParams}])(implicit <#list 1..i as j>bin${j}: Format[T${j}]<#if i != j>,</#if></#list>) = new Format[S]{
I used EGit (http://www.eclipse.org/egit/) to get the code, but when I tried to compile it I get several errors, two of which are:
Description Resource Path Location Type
';' expected but double literal found. Generic.scala /sjson/src/main/scala/sjson/json line 50 Scala Problem
';' expected but '[' found. Generic.scala /sjson/src/main/scala/sjson/json line 53 Scala Problem
So, how should I be compiling these so it will work, without going through and fixing the code, as it would seem that that is the wrong approach.