Css selectors broken in 2.10

37 views
Skip to first unread message

Naftoli Gugenheim

unread,
Sep 13, 2012, 12:38:14 PM9/13/12
to liftweb
Compiling Lift against 2.10 (M7), I got errors like this:

[error] /home/naftoli/dev/liftweb/framework/web/webkit/src/main/scala/net/liftweb/http/LiftSession.scala:2242: value #> is not a member of String
[error]             case (id, replacement) => (("#" + id) #> replacement)


So I added an explicit cal to "strToCssBindPromoter" to figure out why it wasn't getting inserted implicitly, and got this:

[error] /home/naftoli/dev/liftweb/framework/web/webkit/src/main/scala/net/liftweb/http/LiftSession.scala:2242: reference to strToCssBindPromoter is ambiguous;
[error] it is imported twice in the same scope by
[error] import Helpers._
[error] and import util._
[error]             case (id, replacement) => (strToCssBindPromoter("#" + id) #> replacement)

Apparently the same implicit is duplicated in both trait BindHelpers (extended by Helpers), and the util package object. What is the reason for having both?
This only works in 2.9 due to a scalac bug (implementation differs from specification).

Reply all
Reply to author
Forward
0 new messages