On Sun, Dec 21, 2008 at 2:47 PM, Mark Chadwick <mark.chadw...@gmail.com>wrote:
> I'm new to Scala (and consequently Lift), so it's likely an error on my > part. But, the snippet for binding user names to the template on page 13 > tripped me up a bit. Specifying the return type as NodeSeq property > flatMapped the list to a single NodeSeq. The function as it was written was > returning a List[NodeSeq], which was leaving my template untouched. Yeah... I copied and pasted that code from an older example. I'll fix up the text to include the explicit return type. Thanks. > > > Probably just my setup. Though I'd point it out, though. > > Really enjoying Lift, > -Mark > > > On Wed, Dec 17, 2008 at 1:14 AM, Paul O'Rorke <p...@ororke.com> wrote: > >> >> David: thanks for the suggestion. I did that in todo folder and got >> the same errors. >> then I deleted ~/.m2/net/liftweb and tried again and that seemed to >> work. >> the webapp runs fine now (thanks!) >> >> I got a test failure on doing the mvn -U clean install: >> It did not seem to affect anything but might be worth fixing anyway. >> ---Paul O >> >> ------------------------------------------------------- >> T E S T S >> ------------------------------------------------------- >> Running com.liftworkshop.AppTest >> [Fatal Error] :38:21: The entity "nbsp" was referenced, but not >> declared. >> Malformed XML in 1 file: src/main/webapp/index.html >> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.505 >> sec <<< FAILURE! >> >> Results : >> >> Failed tests: >> testXml(com.liftworkshop.AppTest) >> >> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0 >> >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] There are test failures. >> >> >> >> >> >> >> >> >> >> >> On Dec 16, 3:12 pm, "David Pollak" <feeder.of.the.be...@gmail.com> >> wrote: >> > Paul, >> > >> > It looks like the various Lift packages are not up to date in your Maven >> > repository. >> > >> > Please do a "mvn -U clean install" and see if that works any better. >> > >> > Thanks, >> > >> > David >> > >> > On Tue, Dec 16, 2008 at 3:06 PM, Paul O'Rorke <p...@ororke.com> wrote: >> > >> > > does anybody know what causes an error like "value util is not a >> > > member of package net.liftweb"? >> > >> > > when I try to install this, I get the following errors/warnings. >> > > note that I did not use the tar'd zip but used maven and the >> > > instructions in the pdf. >> > > maybe I will try that next. >> > > When I create and run things using archetypeVersion 0.9 (like the >> > > "ChoreWheel" stub) they seem to work fine. But actually when I tried >> > > to use my older copy of todo, it seems to be broken, now, too. >> > > ---Paul O >> > >> > > [WARNING] /Users/Paul/dev/workspace/todo/src/main/scala/bootstrap/ >> > > liftweb/Boot.scala:3: error: value util is not a member of package >> > > net.liftweb >> > > [WARNING] import _root_.net.liftweb.util._ >> > > [WARNING] ^ >> > > [WARNING] /Users/Paul/dev/workspace/todo/src/main/scala/bootstrap/ >> > > liftweb/Boot.scala:8: error: value mapper is not a member of package >> > > net.liftweb >> > > [WARNING] import _root_.net.liftweb.mapper.{DB, ConnectionManager, >> > > Schemifier, DefaultConnectionIdentifier, ConnectionIdentifier} >> > > [WARNING] ^ >> > > [WARNING] /Users/Paul/dev/workspace/todo/src/main/scala/com/ >> > > liftworkshop/model/User.scala:3: error: value mapper is not a member >> > > of package net.liftweb >> > > [WARNING] import _root_.net.liftweb.mapper._ >> > > [WARNING] ^ >> > > [WARNING] /Users/Paul/dev/workspace/todo/src/main/scala/com/ >> > > liftworkshop/model/User.scala:4: error: value util is not a member of >> > > package net.liftweb >> > > [WARNING] import _root_.net.liftweb.util._ >> > > [WARNING] ^ >> > > [WARNING] Exception in thread "main" java.lang.RuntimeException: >> > > malformed Scala signature of Loc at 3992; reference value util of >> > > package liftweb refers to nonexisting symbol. >> > > [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler >> > > $UnPickle.errorBadSignature(UnPickler.scala:762) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbol >> > > (UnPickler.scala:172) >> > > [WARNING] at >> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ >> > > $anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$ >> > > $readSymbolRef$1.apply(UnPickler.scala:714) >> > > [WARNING] at >> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ >> > > $anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$ >> > > $readSymbolRef$1.apply(UnPickler.scala:714) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala: >> > > 139) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$readSymbolRef >> > > (UnPickler.scala:714) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType >> > > (UnPickler.scala:247) >> > > [WARNING] at >> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ >> > > $anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$ >> > > $readTypeRef$1.apply(UnPickler.scala:715) >> > > [WARNING] at >> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ >> > > $anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$ >> > > $readTypeRef$1.apply(UnPickler.scala:715) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala: >> > > 139) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef >> > > (UnPickler.scala:715) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType >> > > (UnPickler.scala:253) >> > > [WARNING] at >> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ >> > > $anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$ >> > > $readTypeRef$1.apply(UnPickler.scala:715) >> > > [WARNING] at >> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ >> > > $anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$ >> > > $readTypeRef$1.apply(UnPickler.scala:715) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala: >> > > 139) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef >> > > (UnPickler.scala:715) >> > > [WARNING] at >> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ >> > > $anonfun$3.apply(UnPickler.scala:255) >> > > [WARNING] at >> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ >> > > $anonfun$3.apply(UnPickler.scala:255) >> > > [WARNING] at scala.tools.nsc.symtab.classfile.PickleBuffer.until >> > > (PickleBuffer.scala:127) >> > > [WARNING] at scala.tools.nsc.symtab.classfile.PickleBuffer.until >> > > (PickleBuffer.scala:127) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType >> > > (UnPickler.scala:255) >> > > [WARNING] at >> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ >> > > $anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$ >> > > $readTypeRef$1.apply(UnPickler.scala:715) >> > > [WARNING] at >> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ >> > > $anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$ >> > > $readTypeRef$1.apply(UnPickler.scala:715) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala: >> > > 139) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef >> > > (UnPickler.scala:715) >> > > [WARNING] at >> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ >> > > $anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType >> > > $1.apply(UnPickler.scala:275) >> > > [WARNING] at >> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ >> > > $anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType >> > > $1.apply(UnPickler.scala:275) >> > > [WARNING] at scala.tools.nsc.symtab.classfile.PickleBuffer.until >> > > (PickleBuffer.scala:127) >> > > [WARNING] at scala.tools.nsc.symtab.classfile.PickleBuffer.until >> > > (PickleBuffer.scala:127) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType >> > > (UnPickler.scala:275) >> > > [WARNING] at >> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ >> > > $anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$ >> > > $readTypeRef$1.apply(UnPickler.scala:715) >> > > [WARNING] at >> scala.tools.nsc.symtab.classfile.UnPickler$UnPickle$ >> > > $anonfun$scala$tools$nsc$symtab$classfile$UnPickler$UnPickle$ >> > > $readTypeRef$1.apply(UnPickler.scala:715) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala: >> > > 139) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$readTypeRef >> > > (UnPickler.scala:715) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$readType >> > > (UnPickler.scala:283) >> > > [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle >> > > $LazyTypeRef$$anonfun$32$$anonfun$apply$4.apply(UnPickler.scala:779) >> > > [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle >> > > $LazyTypeRef$$anonfun$32$$anonfun$apply$4.apply(UnPickler.scala:779) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.classfile.UnPickler$UnPickle.scala >> > > $tools$nsc$symtab$classfile$UnPickler$UnPickle$$at(UnPickler.scala: >> > > 139) >> > > [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle >> > > $LazyTypeRef$$anonfun$32.apply(UnPickler.scala:779) >> > > [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle >> > > $LazyTypeRef$$anonfun$32.apply(UnPickler.scala:779) >> > > [WARNING] at >> scala.tools.nsc.Global$$anonfun$7.apply(Global.scala: >> > > 743) >> > > [WARNING] at >> scala.tools.nsc.Global$$anonfun$7.apply(Global.scala: >> > > 743) >> > > [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle >> > > $LazyTypeRef.complete(UnPickler.scala:779) >> > > [WARNING] at scala.tools.nsc.symtab.classfile.UnPickler$UnPickle >> > > $LazyTypeRef.load(UnPickler.scala:783) >> > > [WARNING] at scala.tools.nsc.symtab.Symbols$Symbol.typeParams >> > > (Symbols.scala:657) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala: >> > > 2302) >> > > [WARNING] at scala.tools.nsc.symtab.Types$AsSeenFromMap.apply >> > > (Types.scala:2708) >> > > [WARNING] at scala.tools.nsc.symtab.Types$AsSeenFromMap.apply >> > > (Types.scala:2575) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.Types$TypeMap.mapOver(Types.scala: >> > > 2336) >> > > [WARNING] at scala.tools.nsc.symtab.Types$AsSeenFromMap.apply >> > > (Types.scala:2708) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.Types$Type.asSeenFrom(Types.scala: >> > > 399) >> > > [WARNING] at >> > > scala.tools.nsc.symtab.Types$Type.memberType(Types.scala: >> > > 429) >> > > [WARNING] at >> scala.tools.nsc.typechecker.Contexts$ImplicitInfo.tpe >> > > (Contexts.scala:630) >> > > [WARNING] at >> scala.tools.nsc.typechecker.Typers$Typer.isApplicable$1 >> > > (Typers.scala:3674) >> > > [WARNING] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun >> > > $applicableInfos$1$1.apply(Typers.scala:3682) >> > > [WARNING] at scala.tools.nsc.typechecker.Typers$Typer$$anonfun >> > > $applicableInfos$1$1.apply(Typers.scala:3680) >> > >> > ... >> > >> > read more ยป >> >> >> > > > > -- Lift, the simply functional web framework http://liftweb.net Collaborative Task Management http://much4.us Follow me: http://twitter.com/dpp Git some: http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---