jberkel/android-plugin — Issue #89: jberkel/android-app fails with java.lang.StringIndexOutOfBoundsException: String index out of range: 1
Author: glenviewjeff
Created: 2011-11-16 18:16:14+00:00
State: open

After updating my g8, the jberkel/android-app template fails. This is occurring for multiple users (at least on Windows/Cygwin) Log follows:

c:/Users/Jeff/bin/g8.bat jberkel/android-app

Template for Android apps in Scala

package [my.android.project]: my.android.project2
name [My Android Project]: My Second Android Project
main_activity [MainActivity]:
scala_version [2.9.0-1]:
api_level [10]:
java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.charAt(String.java:686)
at java.util.regex.Matcher.appendReplacement(Matcher.java:703)
at java.util.regex.Matcher.replaceAll(Matcher.java:813)
at java.lang.String.replaceAll(String.java:2189)
at giter8.Apply$$anonfun$write$1$$anonfun$6.apply(apply.scala:97)
at giter8.Apply$$anonfun$write$1$$anonfun$6.apply(apply.scala:96)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:194)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:60)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:44)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:194)
at scala.collection.mutable.ArrayBuffer.map(ArrayBuffer.scala:44)
at giter8.Apply$$anonfun$write$1.apply(apply.scala:96)
at giter8.Apply$$anonfun$write$1.apply(apply.scala:93)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at giter8.Apply$class.write(apply.scala:93)
at giter8.Giter8.write(giter8.scala:3)
at giter8.Apply$$anonfun$inspect$2.apply(apply.scala:35)
at giter8.Apply$$anonfun$inspect$2.apply(apply.scala:17)
at scala.Either$RightProjection.flatMap(Either.scala:277)
at giter8.Apply$class.inspect(apply.scala:17)
at giter8.Giter8.inspect(giter8.scala:3)
at giter8.Giter8.run(giter8.scala:15)
at giter8.Giter8.run(giter8.scala:3)
at xsbt.boot.Launch$.run(Launch.scala:54)
at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:43)
at xsbt.boot.Launch$.launch(Launch.scala:68)
at xsbt.boot.Launch$.apply(Launch.scala:14)
at xsbt.boot.Boot$.runImpl(Boot.scala:24)
at xsbt.boot.Boot$.main(Boot.scala:15)
at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.lang.StringIndexOutOfBoundsException: String index out of range: 1