novus/salat — Issue #19: Weird case of ScalaSigParserError: Unexpected failure
Author: manuelbernhardt
Created: 2011-11-08 14:17:00+00:00
State: open

I managed to consistenly get the following stacktrace, even after a complete cleaning of the project:

Caused by: scala.tools.scalap.scalax.rules.ScalaSigParserError: Unexpected failure
at com.novus.salat.ConcreteGrater.typeRefType(Grater.scala:223)
at com.novus.salat.ConcreteGrater$$anonfun$indexedFields$3.apply(Grater.scala:149)
at com.novus.salat.ConcreteGrater$$anonfun$indexedFields$3.apply(Grater.scala:146)
at com.novus.salat.ConcreteGrater.indexedFields(Grater.scala:146)
at com.novus.salat.ConcreteGrater.iterateOut(Grater.scala:228)
at com.novus.salat.ConcreteGrater.asDBObject(Grater.scala:244)
at com.novus.salat.ConcreteGrater.asDBObject(Grater.scala:53)
at com.novus.salat.dao.SalatDAO.insert(SalatDAO.scala:197)
at com.novus.salat.dao.SalatDAO.insert(SalatDAO.scala:193)
at controllers.organization.DataSetControl$.dataSetSubmit(DataSetControl.scala:55)

By simply adding a String field to a case class that would otherwise work like a charm. After some debugging I finally figured out that the culprit was the following member:

indexingMappings: List[String] = List.empty[String]

After renaming it to `idxMappings` things started working again. Is this maybe some kind of reserved keyword somewhere? I have trouble thinking of another explanation.

I'm not quite sure if this issue report is useful, I thought I'd just send it in case it could help somebody.