Received: by 10.42.32.8 with SMTP id b8mr10487811icd.12.1349735403767; Mon, 08 Oct 2012 15:30:03 -0700 (PDT) X-BeenThere: play-framework@googlegroups.com Received: by 10.42.244.193 with SMTP id lr1ls7274748icb.1.gmail; Mon, 08 Oct 2012 15:29:56 -0700 (PDT) Received: by 10.43.105.135 with SMTP id dq7mr10540934icc.3.1349735396802; Mon, 08 Oct 2012 15:29:56 -0700 (PDT) Received: by 10.43.105.135 with SMTP id dq7mr10540932icc.3.1349735396778; Mon, 08 Oct 2012 15:29:56 -0700 (PDT) Return-Path: Received: from mail-ie0-f173.google.com (mail-ie0-f173.google.com [209.85.223.173]) by gmr-mx.google.com with ESMTPS id dx8si1349337igc.1.2012.10.08.15.29.56 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Oct 2012 15:29:56 -0700 (PDT) Received-SPF: pass (google.com: domain of benjamin.j.mcc...@gmail.com designates 209.85.223.173 as permitted sender) client-ip=209.85.223.173; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of benjamin.j.mcc...@gmail.com designates 209.85.223.173 as permitted sender) smtp.mail=benjamin.j.mcc...@gmail.com; dkim=pass header...@gmail.com Received: by mail-ie0-f173.google.com with SMTP id 17so1123438iea.32 for ; Mon, 08 Oct 2012 15:29:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=UpOJINQMyFwlLUemUTk/zVTyBpbujnzKnf46rSWa7sQ=; b=JwJ98mEC4dJCX8NvmSPPkTMnIfmuKTmmSvNl9T/l/NzA7krfrJoF4/AoowSteU2S82 yhZHFoOF4rpn6yNtnsmHQVbQubyXg1LB3eKXVVgZVaN0r612Qma87sIYkAXUdUjjZZcU oUNldWBfwYiDXRma/ub6/3asa8x62ikPhkaZx2KAMIAJ4q5N7hiIz/AzwCaDgNdcP+UI 0CE5zV9ao8ppf1d8MAaiRcD/ZJTytgG5o2W5kGgKu38g3u3yj5Ua0/6v8reZZCmzm2zr eZpfvmHI9xENRoyPH+o0ac+77UfUTt8aQnhLVl+ngGbly1D2+dxBXCiIzx59g+BdPaY4 v1xg== MIME-Version: 1.0 Received: by 10.50.51.234 with SMTP id n10mr9718791igo.74.1349735396599; Mon, 08 Oct 2012 15:29:56 -0700 (PDT) Sender: benjamin.j.mcc...@gmail.com Received: by 10.64.23.230 with HTTP; Mon, 8 Oct 2012 15:29:56 -0700 (PDT) In-Reply-To: References: <6be9e80a-1422-4951-b523-653bb28ada60@googlegroups.com> <1c4ab11a-9376-4868-9522-f76231e48a07@googlegroups.com> <4375911f-8d64-4d16-84dc-f8bf684ac1a3@googlegroups.com> Date: Mon, 8 Oct 2012 15:29:56 -0700 Message-ID: Subject: Re: [play-framework] Re: Tests fail due to recent upgrade to Scala 2.10 From: Ben McCann To: play-framework@googlegroups.com Content-Type: multipart/alternative; boundary=14dae9340495dae64004cb93c216 --14dae9340495dae64004cb93c216 Content-Type: text/plain; charset=ISO-8859-1 Here's what happens if I run "dependencies". Do you have any idea why it thinks my project is using Scala 2.9.2 instead of 2.10? [connectifier] $ dependencies [warn] Binary version (2.10) for dependency org.scala-lang#scala-library;2.10.0-M7 [warn] in connectifier#connectifier_2.9.2;1.0-SNAPSHOT differs from Scala binary version in project (2.9.2). [info] :: delivering :: connectifier#connectifier_2.9.2;1.0-SNAPSHOT :: 1.0-SNAPSHOT :: integration :: Mon Oct 08 15:27:58 PDT 2012 [info] delivering ivy file to /home/bmccann/src/connectifier/frontend/target/scala-2.9.2/ivy-1.0-SNAPSHOT.xml [error] (connectifier/*:ivy-dependencies) java.io.FileNotFoundException: /home/bmccann/src/connectifier/frontend/target/resolution-cache/reports/connectifier-connectifier_2.10.0-M7/runtime-resolved.xml (No such file or directory) Cannot compute dependencies On Mon, Oct 8, 2012 at 3:27 PM, Ben McCann wrote: > Looks like I'm not alone in having this problem. I just found another > thread with several people complaining about not being able to run "play > new" > > https://groups.google.com/forum/#!msg/play-framework/kUchK6RsG5U/ogpDimxxHeUJ > > > On Mon, Oct 8, 2012 at 3:15 PM, Ben McCann wrote: > >> I'm just using the default Play dependencies. I haven't changed anything. >> >> >> On Mon, Oct 8, 2012 at 2:52 PM, Pascal Voitot Dev < >> pascal.voitot....@gmail.com> wrote: >> >>> I had the same problem with SBT alone outside Play with Scala 2.10-M7. >>> Apparently it's a problem of Specs2 version. >>> >>> After some time on the web, I found a solution. I added the following >>> dep to my project: >>> "org.specs2" % "specs2_2.10.0-M7" % "1.12.1.1" % "test", >>> >>> what version of Specs2 do you use in your project? >>> >>> Pascal >>> >>> >>> On Mon, Oct 8, 2012 at 11:25 PM, peter hausel wrote: >>> >>>> which version of play are you on? (I am on the latest master) >>>> >>>> >>>> On Monday, October 8, 2012 5:22:34 PM UTC-4, peter hausel wrote: >>>>> >>>>> hmm, seems to work for me: >>>>> ------------------------------**---------------- >>>>> $ play new x >>>>> _ _ >>>>> _ __ | | __ _ _ _| | >>>>> | '_ \| |/ _' | || |_| >>>>> | __/|_|\____|\__ (_) >>>>> |_| |__/ >>>>> >>>>> play! 2.1-SNAPSHOT, http://www.playframework.org >>>>> >>>>> The new application will be created in /Users/phausel/x >>>>> >>>>> What is the application name? >>>>> > x >>>>> >>>>> Which template do you want to use for this new application? >>>>> >>>>> 1 - Create a simple Scala application >>>>> 2 - Create a simple Java application >>>>> 3 - Create an empty project >>>>> - Create an app based on the g8 template hosted on >>>>> Github >>>>> >>>>> > 2 >>>>> OK, application x is created. >>>>> >>>>> Have fun! >>>>> -------------- >>>>> >>>>> >>>>> >>>>> >>>>> On Monday, October 8, 2012 4:56:04 PM UTC-4, Ben McCann wrote: >>>>>> >>>>>> I was going to try to create a test case, but I'm afraid I can't get >>>>>> that far even :-) Do you have any trouble creating new projects? >>>>>> >>>>>> $ play new tmp >>>>>> Getting play console_2.9.2 2.1-SNAPSHOT ... >>>>>> :: retrieving :: org.scala-sbt#boot-app >>>>>> confs: [default] >>>>>> 32 artifacts copied, 0 already retrieved (9545kB/63ms) >>>>>> _ _ >>>>>> _ __ | | __ _ _ _| | >>>>>> | '_ \| |/ _' | || |_| >>>>>> | __/|_|\____|\__ (_) >>>>>> |_| |__/ >>>>>> >>>>>> play! 2.1-SNAPSHOT (using Scala 2.10.0-M7), >>>>>> http://www.playframework.org >>>>>> >>>>>> The new application will be created in /home/bmccann/src/tmp >>>>>> >>>>>> What is the application name? >>>>>> > tmp >>>>>> >>>>>> Which template do you want to use for this new application? >>>>>> >>>>>> 1 - Create a simple Scala application >>>>>> 2 - Create a simple Java application >>>>>> 3 - Create an empty project >>>>>> - Create an app based on the g8 template hosted on >>>>>> Github >>>>>> >>>>>> > 2 >>>>>> java.lang.NoSuchMethodError: scalax.io.Input.string$** >>>>>> default$1()Lscalax/io/Codec; >>>>>> at play.console.Console$.replace(**Console.scala:29) >>>>>> at play.console.Console$.**generateLocalTemplate(Console.**scala:61) >>>>>> at play.console.Console$.**newCommand(Console.scala:133) >>>>>> at play.console.Console$$anonfun$**10$$anonfun$apply$5.apply(** >>>>>> Console.scala:182) >>>>>> at play.console.Console$$anonfun$**10$$anonfun$apply$5.apply(** >>>>>> Console.scala:182) >>>>>> at play.console.Console$$anonfun$**11.apply(Console.scala:185) >>>>>> at play.console.Console$$anonfun$**11.apply(Console.scala:184) >>>>>> at scala.Option.map(Option.scala:**133) >>>>>> at play.console.Console$.main(**Console.scala:184) >>>>>> at play.console.Console.run(**Console.scala:208) >>>>>> at play.console.Console.run(**Console.scala:205) >>>>>> at xsbt.boot.Launch$.run(Launch.**scala:55) >>>>>> at xsbt.boot.Launch$$anonfun$**explicit$1.apply(Launch.scala:**45) >>>>>> at xsbt.boot.Launch$.launch(**Launch.scala:69) >>>>>> at xsbt.boot.Launch$.apply(**Launch.scala:16) >>>>>> at xsbt.boot.Boot$.runImpl(Boot.**scala:31) >>>>>> at xsbt.boot.Boot$.main(Boot.**scala:20) >>>>>> at xsbt.boot.Boot.main(Boot.**scala) >>>>>> Error during sbt execution: java.lang.NoSuchMethodError: >>>>>> scalax.io.Input.string$**default$1()Lscalax/io/Codec; >>>>>> >>>>>> >>>>>> On Monday, October 8, 2012 10:33:54 AM UTC-7, peter hausel wrote: >>>>>>> >>>>>>> I can not replicate this. Do you have a test case? Thanks Peter >>>>>>> >>>>>>> On Monday, October 8, 2012 1:17:03 PM UTC-4, Ben McCann wrote: >>>>>>>> >>>>>>>> My tests fail since the recent upgrade to Scala 2.10. >>>>>>>> I was hoping someone might have a solution. >>>>>>>> >>>>>>>> Exception in thread "main" java.lang.**NoClassDefFoundError: >>>>>>>> scala/Right >>>>>>>> at org.specs2.runner.**SpecsFramework.testRunner(** >>>>>>>> TestInterfaceRunner.scala:18) >>>>>>>> at org.specs2.runner.**SpecsFramework.testRunner(** >>>>>>>> TestInterfaceRunner.scala:15) >>>>>>>> at sbt.ForkMain$Run.run(ForkMain.**java:130) >>>>>>>> at sbt.ForkMain.main(ForkMain.**java:70) >>>>>>>> Caused by: java.lang.**ClassNotFoundException: scala.Right >>>>>>>> at java.net.URLClassLoader$1.run(**URLClassLoader.java:217) >>>>>>>> at java.security.**AccessController.doPrivileged(**Native Method) >>>>>>>> at java.net.URLClassLoader.**findClass(URLClassLoader.java:**205) >>>>>>>> at java.lang.ClassLoader.**loadClass(ClassLoader.java:**321) >>>>>>>> at sun.misc.Launcher$**AppClassLoader.loadClass(** >>>>>>>> Launcher.java:294) >>>>>>>> at java.lang.ClassLoader.**loadClass(ClassLoader.java:**266) >>>>>>>> ... 4 more >>>>>>>> >>>>>>>> Thanks, >>>>>>>> Ben >>>>>>>> >>>>>>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "play-framework" group. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msg/play-framework/-/kgv8p8Xdnx4J. >>>> >>>> To post to this group, send email to play-framework@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> play-framework+unsubscribe@googlegroups.com. >>>> For more options, visit this group at >>>> http://groups.google.com/group/play-framework?hl=en. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "play-framework" group. >>> To post to this group, send email to play-framework@googlegroups.com. >>> To unsubscribe from this group, send email to >>> play-framework+unsubscribe@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/play-framework?hl=en. >>> >> >> >> >> -- >> about.me/benmccann >> > > > > -- > about.me/benmccann > -- about.me/benmccann --14dae9340495dae64004cb93c216 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Here's what happens if I run "dependencies". =A0Do you h= ave any idea why it thinks my project is using Scala 2.9.2 instead of 2.10?=

[connectifier] $ dependencies
[war= n] Binary version (2.10) for dependency org.scala-lang#scala-library;2.10.0= -M7
[warn] in connectifier#connectifier_2.9.2;1.0-SNAPSHOT differs from Scala binary= version in project (2.9.2).
[info] :: delivering :: connectifier= #connectifier_2.9.2;1.0-SNAPSHOT :: 1.0-SNAPSHOT :: integration :: Mon Oct = 08 15:27:58 PDT 2012
[info] delivering ivy file to /home/bmccann/src/connectifier/frontend/target/sca= la-2.9.2/ivy-1.0-SNAPSHOT.xml
[error] (connectifier/*:ivy-depende= ncies) java.io.FileNotFoundException: /home/bmccann/src/connectifier/fronte= nd/target/resolution-cache/reports/connectifier-connectifier_2.10.0-M7/runt= ime-resolved.xml (No such file or directory)

Cannot compute dependencies

<= br>
On Mon, Oct 8, 2012 at 3:27 PM, Ben McCan= n <b...@benmccann.com> wrote:
Looks like I'm not alone in having this = problem. =A0I just found another thread with several people complaining abo= ut not being able to run "play new"


On Mon, Oct = 8, 2012 at 3:15 PM, Ben McCann <b...@benmccann.com> wrote:
I'm just using the default Play dependencies. =A0I haven't changed = anything.


On Mon, Oct= 8, 2012 at 2:52 PM, Pascal Voitot Dev <pascal.voitot.dev@gmail.= com> wrote:
I had the same problem with SBT alone outsid= e Play with Scala 2.10-M7.
Apparently it's a problem of Specs2 versi= on.

After some time on the web, I found a solution. I added the following d= ep to my project:
=A0 "org.specs2" % "specs2_2.10.0-M7" % "1.12.1.1&= quot; % "test",

what version of Specs2 do you use in your = project?

Pascal


On Mon, Oct 8, 2012 at 11:25 PM, pe= ter hausel <peter.hau...@gmail.com> wrote:
which version of play are you on? (I am on t= he latest master)


On Monday, October 8, 2012 5:22:34 PM UT= C-4, peter hausel wrote:
hmm, seems to work for me:
------------------------------= ----------------
$ play new x
=A0 =A0 =A0 =A0_ =A0 = =A0 =A0 =A0 =A0 =A0_
=A0_ __ | | __ _ _ =A0_| |
| '= _ \| |/ _' | || |_|
| =A0__/|_|\____|\__ (_)
|_| =A0 =A0 =A0 =A0 =A0 =A0|__/

play! 2.1-SNAPSHOT, http://www.playframework.org

The new application will be created in /Users/phausel/x

What is the application name?=A0
> x
=

Which template do you want to use for this new applicat= ion?=A0

=A0 1 =A0 =A0 =A0 =A0 =A0 =A0 - Create a s= imple Scala application
=A0 2 =A0 =A0 =A0 =A0 =A0 =A0 - Create a simple Java application
=
=A0 3 =A0 =A0 =A0 =A0 =A0 =A0 - Create an empty project
=A0 = <g8 template> - Create an app based on the g8 template hosted on Gith= ub

> 2
OK, application x is created.

Hav= e fun!
--------------



On Monday, October 8, 2012 4:56:04 PM UTC-4, Ben McCann wrote: I was going to try to create a test case, but I'm afraid I can't ge= t that far even :-) =A0Do you have any trouble creating new projects?
<= br>
$ play new tmp
Getting play console_2.9.2 2.1-= SNAPSHOT ...
:: retrieving :: org.scala-sbt#boot-app
confs: [default]
32 artifacts copied, 0 already retrieved (9545kB/63ms= )
=A0 =A0 =A0 =A0_ =A0 =A0 =A0 =A0 =A0 =A0_
=A0_ __ | | __ _ _= =A0_| |
| '_ \| |/ _' | || |_|
| =A0__/|_|\___= _|\__ (_)
|_| =A0 =A0 =A0 =A0 =A0 =A0|__/

play! 2.1-SNAPSHOT (using Scala 2.10.0-M7), http://www.playframework.org

The new application will be created in /home/bmccann/sr= c/tmp

What is the application name?=A0
&= gt; tmp

Which template do you want to use for this= new application?=A0

=A0 1 =A0 =A0 =A0 =A0 =A0 =A0 - Create a simple Scala a= pplication
=A0 2 =A0 =A0 =A0 =A0 =A0 =A0 - Create a simple Java a= pplication
=A0 3 =A0 =A0 =A0 =A0 =A0 =A0 - Create an empty projec= t
=A0 <g8 template> - Create an app based on the g8 templat= e hosted on Github

> 2
java.lang.NoSuchMethodError: scalax.io= .Input.string$default$1()Lscalax/io/Codec;
at play.console.Console$.replace(Conso= le.scala:29)
at play.console.Console$.= generateLocalTemplate(Console.scala:61)
at play.console.Console$.newComman= d(Console.scala:133)
at play.console.Console$$= anonfun$10$$anonfun$apply$5.apply(Console.scala:182)
at play.console.Console$$ano= nfun$10$$anonfun$apply$5.apply(Console.scala:182)
at play.console.Console$$= anonfun$11.apply(Console.scala:185)
at play.console.Console$$anonfun$11.apply(Con= sole.scala:184)
at scala.Option.map(Optio= n.scala:133)
= at play.console.Console$.main(Console.scala:184)
at play.console.Console.run(Cons= ole.scala:208)
at play.console.Console.r= un(Console.scala:205)
at xsbt.boot.Launch$.run(Launch.scala:55)
at xsbt.boot.Launch$$anonfun$e= xplicit$1.apply(Launch.scala:45)
at xsbt.boot.Launch$.laun= ch(Launch.scala:69)
= at xsbt.boot.Launch$.apply(Launch.scala:16)
at xsbt.boot.Boot$.runImpl(Boot.scala:31)
at xsbt.boot.Boot$.main(B= oot.scala:20)
at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execu= tion: java.lang.NoSuchMethodError: scalax.io.Input.string$default$1(= )Lscalax/io/Codec;


On Monday, October 8, 2012 10:33:54 AM UTC-7, peter haus= el wrote:
I can not replicate this. = Do you have a test case? Thanks Peter

On Monday, October 8, 2012 1:17:03 PM UTC-4, Ben McCann wrote:
My tests fail since the recent upgrade to Scala 2= .10. =A0I was hoping someone might have a solution.

Exception in thread "main" java.lang.N= oClassDefFoundError: scala/Right
at org.specs2.runner.SpecsFramework.testRunner(<= /u>TestInterfaceRunner.scala:18)
at org.specs2.runner.<= /u>SpecsFramework.testRunner(TestInterfaceRunner.scala:15)
at sbt.ForkMain$Run.run(ForkM= ain.java:130)
at sbt.ForkMain.main(Fork= Main.java:70)
Caused by: java.lang.ClassNotFoundExc= eption: scala.Right
= at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.A= ccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(= URLClassLoader.java:205)
at java.lang.ClassLoader.= loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadCl= ass(Launcher.java:294)
at java.lang.ClassLoader.= loadClass(ClassLoader.java:266)
... 4 more

Thanks,
Ben

<= /blockquote>

--
You received this message because you are subscribed to the Google Groups &= quot;play-framework" group.
To view this discussion on the web visit https://groups.go= ogle.com/d/msg/play-framework/-/kgv8p8Xdnx4J.

=20 To post to this group, send email to play-framework@googlegroups.com.
To unsubscribe from this group, send email to play-framework+unsubs= cribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/gro= up/play-framework?hl=3Den.

--
You received this message because you are subscribed to the Google Groups &= quot;play-framework" group.
To post to this group, send email to play-framework@googlegroups.com.
To unsubscribe from this group, send email to play-framework+unsubs= cribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/gro= up/play-framework?hl=3Den.



<= /div>--
about.me/benmccann



--
about.me/benmccann



--
about.me/benmccann
--14dae9340495dae64004cb93c216--