Can't use sbt 0.13.7 with my play project

921 views
Skip to first unread message

Wei Chen

unread,
Nov 21, 2014, 5:36:14 PM11/21/14
to sbt...@googlegroups.com
Trying out the new 0.13.7, but get this when start the play console. Any idea?

BTW, the project builds fine on 0.13.1.


java.lang.UnsupportedOperationException: Position.start on class scala.reflect.internal.util.OffsetPosition

        at scala.reflect.internal.util.Position.start(Position.scala:114)

        at sbt.internals.parser.SbtParser.sbt$internals$parser$SbtParser$$convertStatement$1(SbtParser.scala:142)

        at sbt.internals.parser.SbtParser$$anonfun$4.apply(SbtParser.scala:147)

        at sbt.internals.parser.SbtParser$$anonfun$4.apply(SbtParser.scala:147)

        at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)

        at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)

        at scala.collection.immutable.List.foreach(List.scala:318)

        at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)

        at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)

        at sbt.internals.parser.SbtParser.splitExpressions(SbtParser.scala:147)

        at sbt.internals.parser.SbtParser.<init>(SbtParser.scala:60)

        at sbt.EvaluateConfigurations$.splitExpressions(EvaluateConfigurations.scala:227)

        at sbt.EvaluateConfigurations$.parseConfiguration(EvaluateConfigurations.scala:69)

        at sbt.EvaluateConfigurations$.evaluateSbtFile(EvaluateConfigurations.scala:107)

        at sbt.Load$.sbt$Load$$loadSettingsFile$1(Load.scala:710)

        at sbt.Load$$anonfun$sbt$Load$$memoLoadSettingsFile$1$1.apply(Load.scala:715)

        at sbt.Load$$anonfun$sbt$Load$$memoLoadSettingsFile$1$1.apply(Load.scala:714)

        at scala.Option.getOrElse(Option.scala:120)

        at sbt.Load$.sbt$Load$$memoLoadSettingsFile$1(Load.scala:714)

        at sbt.Load$$anonfun$loadFiles$1$2.apply(Load.scala:721)

        at sbt.Load$$anonfun$loadFiles$1$2.apply(Load.scala:721)

        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)

        at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)

        at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)

Josh Suereth

unread,
Nov 21, 2014, 7:48:54 PM11/21/14
to sbt...@googlegroups.com
This is related to the new incremental compiler.   Can you try the following:

incOptions := incOptions.value.withNameHashing(false)

--
You received this message because you are subscribed to the Google Groups "sbt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sbt-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sbt-dev/39f65b25-4876-4a5c-881b-9796c7b8e75c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Wei Chen

unread,
Nov 21, 2014, 9:58:04 PM11/21/14
to sbt...@googlegroups.com
I believe it is this problem:

Both workarounds work for me. I think it is a bug sbt should fix unless scala 2.10.4 is required.

Wei
Reply all
Reply to author
Forward
0 new messages