Damn. I guess there is no free lunch :)

Thanks for the response Kris, and the stylistic tips!  I am easing my
way into scala, starting with the more verbose syntax and picking up
shortcuts as I get more familiar with stuff!

- Alex

On Nov 19, 7:33 pm, Kris Nuttycombe <kris.nuttyco...@gmail.com> wrote:
> Unfortunately, JRebel is sensitive to certain kinds of changes;
> changes to the names of the generated classes for function literals is
> one of them. In this case, since you've got two function literals in
> the class, their names are something$1 and something$2 or equivalent.
> After commenting out the line, the second one is now something$1,
> which has a totally different interface.
>
> You can work around it if you really want to, but it's probably easier
> (or at least prettier code) to just restart the server.
>
> Also, just stylistically, that commented line could be:
>
> >      //.sort(_.name.toString < _.name.toString)
>
> Kris
>
>
>
> On Thu, Nov 19, 2009 at 4:56 PM, Alex Black <a...@alexblack.ca> wrote:
> > Anyone got any tips on working around this error?
>
> > JRebel: Class 'com.blah.blah.explorer.snippet.Features$$anonfun$render
> > $1' implements new interfaces and could not be reloaded!
>
> > I've just tried JRebel for the first time, and I made what I thought
> > was a minor change to my snippet and JRebel wasn't able to reload it.
>
> > The change I made was to uncomment the "sort" line in this snippet:
>
> > class Features {
> >  def render( xhtml: NodeSeq) : NodeSeq = {
> >    Server.store
> >      .classes
> >      //.sort( (c1,c2) => c1.name.toString < c2.name.toString)
> >      .flatMap( c =>
> >      bind("feature", xhtml,
> >        "name" -> c.name
> >      )
> >    )
> >  }
> > }
>
> > Thanks,
>
> > - Alex
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "Lift" group.
> > To post to this group, send email to lift...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > liftweb+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/liftweb?hl=.

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@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=.


Reply via email to