[2.3.0 Java] Rjs xception while running activator dist - PatternSyntaxException

82 views
Skip to first unread message

plo...@gmail.com

unread,
Jun 10, 2014, 5:00:21 PM6/10/14
to play-fr...@googlegroups.com
Hi, 

While migrating from play 2.2 to 2.3 and using require.js, I get the following error when trying to start or dist (under windows):

Any suggestions?

java.util.regex.PatternSyntaxException: Unmatched closing ')' near index 47
['"]?([^\s'"]*)['"]?\s*:\s*[\[]?.*['"].*/lib\(.*)['"]
                                               ^
        at java.util.regex.Pattern.error(Pattern.java:1924)
        at java.util.regex.Pattern.compile(Pattern.java:1669)
        at java.util.regex.Pattern.<init>(Pattern.java:1337)
        at java.util.regex.Pattern.compile(Pattern.java:1022)
        at scala.util.matching.Regex.<init>(Regex.scala:153)
        at scala.collection.immutable.StringLike$class.r(StringLike.scala:224)
        at scala.collection.immutable.StringOps.r(StringOps.scala:31)
        at scala.collection.immutable.StringLike$class.r(StringLike.scala:213)
        at scala.collection.immutable.StringOps.r(StringOps.scala:31)
        at com.typesafe.sbt.rjs.SbtRjs$$anonfun$getWebJarPaths$1$$anonfun$apply$
5.apply(SbtRjs.scala:136)
        at com.typesafe.sbt.rjs.SbtRjs$$anonfun$getWebJarPaths$1$$anonfun$apply$
5.apply(SbtRjs.scala:132)
        at scala.Option.fold(Option.scala:157)
        at com.typesafe.sbt.rjs.SbtRjs$$anonfun$getWebJarPaths$1.apply(SbtRjs.sc
ala:132)
        at com.typesafe.sbt.rjs.SbtRjs$$anonfun$getWebJarPaths$1.apply(SbtRjs.sc
ala:124)
        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
        at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
        at sbt.std.Transform$$anon$4.work(System.scala:64)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:23
7)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:23
7)
        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
        at sbt.Execute.work(Execute.scala:244)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
        at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestric
tions.scala:160)
        at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
1)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
        at java.lang.Thread.run(Thread.java:722)
[error] (*:rjsPaths) java.util.regex.PatternSyntaxException: Unmatched closing '
)' near index 47
[error] ['"]?([^\s'"]*)['"]?\s*:\s*[\[]?.*['"].*/lib\(.*)['"]
[error]                                                ^
[error] Total time: 1 s, completed Jun 10, 2014 11:55:47 PM

Grzegorz Słowikowski

unread,
Jun 11, 2014, 7:30:26 AM6/11/14
to play-fr...@googlegroups.com
Hi

Already fixed - https://github.com/sbt/sbt-rjs/pull/17
We are waiting for 1.0.2.

Grzegorz Slowikowski
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

plo...@gmail.com

unread,
Jun 11, 2014, 8:05:39 AM6/11/14
to play-fr...@googlegroups.com
That's great. Is that a windows only issue? 
So I can just build on a different os and it'll work?

Grzegorz Słowikowski

unread,
Jun 11, 2014, 8:33:09 AM6/11/14
to play-fr...@googlegroups.com
Yes
Reply all
Reply to author
Forward
0 new messages