[sbteclipse] java.util.regex.PatternSyntaxException when using 'eclipse' target with a populated lib directory

8 views
Skip to first unread message

John

unread,
Jan 5, 2012, 12:54:08 PM1/5/12
to simple-build-tool
I've narrowed down the issue to the fact that I have a .jar file in my
lib directory. If I remove all .jar files, everything works. It's a
minor inconvenience since I can get around it by renaming the
directory, execute and rename back, but it's still a little annoying.
Full stack trace below:

[info] About to create Eclipse project files for your project(s).
[debug] Running task... Cancelable: false, max worker threads: 2,
check cycles:
false
[debug] Running task... Cancelable: false, max worker threads: 2,
check cycles:
false
[debug] Running task... Cancelable: false, max worker threads: 2,
check cycles:
false
[debug] Running task... Cancelable: false, max worker threads: 2,
check cycles:
false
[debug] Running task... Cancelable: false, max worker threads: 2,
check cycles:
false
java.util.regex.PatternSyntaxException: Unexpected internal error near
index 1
\
^
at java.util.regex.Pattern.error(Unknown Source)
at java.util.regex.Pattern.compile(Unknown Source)
at java.util.regex.Pattern.<init>(Unknown Source)
at java.util.regex.Pattern.compile(Unknown Source)
at java.lang.String.split(Unknown Source)
at java.lang.String.split(Unknown Source)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun
$6.apply(Eclipse.scala:197)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun
$6.apply(Eclipse.scala:196)
at scala.Function2$$anonfun$curried$1$$anonfun$apply
$1.apply(Function2.scala:40)
at scalaz.Applys$$anon$2$$anonfun$apply$1$$anonfun$apply
$2.apply(Apply.scala:12)
at scala.Option.map(Option.scala:133)
at scalaz.Functor$$anon$22.fmap(Functor.scala:113)
at scalaz.Functor$$anon$22.fmap(Functor.scala:112)
at scalaz.Applys$$anon$2$$anonfun$apply$1.apply(Apply.scala:
12)
at scalaz.Applys$$anon$2$$anonfun$apply$1.apply(Apply.scala:
12)
at scala.Option.flatMap(Option.scala:146)
at scalaz.Bind$$anon$21.bind(Bind.scala:112)
at scalaz.Bind$$anon$21.bind(Bind.scala:111)
at scalaz.Applys$$anon$2.apply(Apply.scala:12)
at scalaz.ApplicativeBuilder.apply(ApplicativeBuilder.scala:7)
at com.typesafe.sbteclipse.core.Eclipse$.path$1(Eclipse.scala:
196)
at com.typesafe.sbteclipse.core.Eclipse
$.libEntry(Eclipse.scala:201)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$classpath$1$
$anonfun$5.apply(Eclipse.scala:177)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$classpath$1$
$anonfun$5.apply(Eclipse.scala:177)
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.LinearSeqOptimized
$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:45)
at scala.collection.TraversableLike
$class.map(TraversableLike.scala:194)
at scala.collection.immutable.List.map(List.scala:45)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$classpath
$1.apply(Eclipse.scala:177)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$classpath
$1.apply(Eclipse.scala:175)
at scalaz.effects.IO$$anonfun$map$1.apply(IO.scala:21)
at scalaz.effects.IO$$anonfun$map$1.apply(IO.scala:19)
at scalaz.effects.IO$$anon$2.apply(IO.scala:96)
at scalaz.effects.IO$$anonfun$flatMap$1.apply(IO.scala:15)
at scalaz.effects.IO$$anonfun$flatMap$1.apply(IO.scala:14)
at scalaz.effects.IO$$anon$2.apply(IO.scala:96)
at scalaz.effects.IO$$anonfun$flatMap$1.apply(IO.scala:16)
at scalaz.effects.IO$$anonfun$flatMap$1.apply(IO.scala:14)
at scalaz.effects.IO$$anon$2.apply(IO.scala:96)
at scalaz.effects.IO$$anonfun$flatMap$1.apply(IO.scala:16)
at scalaz.effects.IO$$anonfun$flatMap$1.apply(IO.scala:14)
at scalaz.effects.IO$$anon$2.apply(IO.scala:96)
at scalaz.effects.IO$$anonfun$flatMap$1.apply(IO.scala:16)
at scalaz.effects.IO$$anonfun$flatMap$1.apply(IO.scala:14)
at scalaz.effects.IO$$anon$2.apply(IO.scala:96)
at scalaz.effects.IO$$anonfun$map$1.apply(IO.scala:20)
at scalaz.effects.IO$$anonfun$map$1.apply(IO.scala:19)
at scalaz.effects.IO$$anon$2.apply(IO.scala:96)
at scalaz.effects.IO$$anonfun$flatMap$1.apply(IO.scala:16)
at scalaz.effects.IO$$anonfun$flatMap$1.apply(IO.scala:14)
at scalaz.effects.IO$$anon$2.apply(IO.scala:96)
at scalaz.effects.IO$$anonfun$flatMap$1.apply(IO.scala:15)
at scalaz.effects.IO$$anonfun$flatMap$1.apply(IO.scala:14)
at scalaz.effects.IO$$anon$2.apply(IO.scala:96)
at scalaz.effects.IO$$anonfun$map$1.apply(IO.scala:20)
at scalaz.effects.IO$$anonfun$map$1.apply(IO.scala:19)
at scalaz.effects.IO$$anon$2.apply(IO.scala:96)
at scalaz.effects.IO$$anonfun$flatMap$1.apply(IO.scala:16)
at scalaz.effects.IO$$anonfun$flatMap$1.apply(IO.scala:14)
at scalaz.effects.IO$$anon$2.apply(IO.scala:96)
at scalaz.effects.IO$class.unsafePerformIO(IO.scala:12)
at scalaz.effects.IO$$anon$2.unsafePerformIO(IO.scala:95)
at com.typesafe.sbteclipse.core.Eclipse
$.onSuccess(Eclipse.scala:110)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$action
$4.apply(Eclipse.scala:79)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$action
$4.apply(Eclipse.scala:79)
at scalaz.Validation$class.fold(Validation.scala:7)
at scalaz.Success.fold(Validation.scala:82)
at com.typesafe.sbteclipse.core.Eclipse$.action(Eclipse.scala:
79)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$eclipseCommand
$2.apply(Eclipse.scala:65)
at com.typesafe.sbteclipse.core.Eclipse$$anonfun$eclipseCommand
$2.apply(Eclipse.scala:65)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply
$2.apply(Command.scala:62)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply
$2.apply(Command.scala:62)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply
$3.apply(Command.scala:64)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply
$3.apply(Command.scala:64)
at sbt.Command$.process(Command.scala:92)
at sbt.MainLoop$$anonfun$next$1$$anonfun$apply
$1.apply(Main.scala:121)
at sbt.MainLoop$$anonfun$next$1$$anonfun$apply
$1.apply(Main.scala:121)
at sbt.State$$anon$1.process(State.scala:154)
at sbt.MainLoop$$anonfun$next$1.apply(Main.scala:121)
at sbt.MainLoop$$anonfun$next$1.apply(Main.scala:121)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.MainLoop$.next(Main.scala:121)
at sbt.MainLoop$.run(Main.scala:114)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(Main.scala:103)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(Main.scala:100)
at sbt.Using.apply(Using.scala:25)
at sbt.MainLoop$.runWithNewLog(Main.scala:100)
at sbt.MainLoop$.runAndClearLast(Main.scala:83)
at sbt.MainLoop$.runLoggedLoop(Main.scala:67)
at sbt.MainLoop$.runLogged(Main.scala:60)
at sbt.xMain.run(Main.scala:33)
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:25)
at xsbt.boot.Boot$.main(Boot.scala:15)
at xsbt.boot.Boot.main(Boot.scala)
[error] java.util.regex.PatternSyntaxException: Unexpected internal
error near index 1

[error] \

[error] ^
[error] Use 'last' for the full log.

Heiko Seeberger

unread,
Jan 5, 2012, 1:00:02 PM1/5/12
to simple-b...@googlegroups.com
Hi John,

Thanks for reporting.

Could you please use the issue tracker at https://github.com/typesafehub/sbteclipse/issues and provide a little background information, e.g. which sbt version, which sbteclipse version, etc.
If possible, please create a reproducible test case (self-contained project) on GitHub.

Thanks
Heiko

--

Heiko Seeberger
Twitter: hseeberger
Blog: heikoseeberger.name
Company: Typesafe - Enterprise-Grade Scala from the Experts
Author of Durchstarten mit Scala, a German tutorial-style Scala book


--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.


Reply all
Reply to author
Forward
0 new messages