[ANN] Lift Framework 3.4.0 is released

105 views
Skip to first unread message

Matt Farmer

unread,
Oct 22, 2019, 9:04:57 PM10/22/19
to Lift
Hey all,

I wanted to share that Lift 3.4.0 has been officially released!

The release notes are available here:

This release provide partial support for Scala 2.13. We expect 3.4.1 and 3.4.2 to follow with support for the additional modules.

Please let me know if I missed anything!

Cheers,
Matt

Antonio Salazar Cardozo

unread,
Oct 23, 2019, 8:23:43 AM10/23/19
to Lift
Thanks for the quick turnaround here 🙇🙇🙇🙇 

Colin Bester

unread,
Oct 23, 2019, 4:08:01 PM10/23/19
to Lift
Looking forward to checking it out.

David Hagan

unread,
Oct 29, 2019, 2:25:16 AM10/29/19
to Lift
Hi Matt,

I've just upgraded to 3.4.0, and it seems that you might've missed something in ResourceServer.  However, if you have, there's a simple workaround for anyone who's affected like I am (read below).

It seems that the lift-min.js (and probably the other minified js files) from resources/toserve are no longer included in the webkit jar, but the ResourceServer is still rewriting any requests for them to require them.  This means that my app couldn't get lift.js, which prevented all comet and ajax behaviours.

I've temporarily added the following to my boot.scala

    ResourceServer.pathRewriter = {
     
case anything => anything
   
}

to avoid loading the missing minified versions of the js, which restores ajax and comet.

Was it intended that the minified javascript would still be baked into the webkit jar, or was it intended that the ResourceServer wouldn't do the rewrite anymore, or was this intentional and I've simply missed a migration note?  Please let me know so that I can adjust my solution appropriately - I'd like to be using minified files, and if we've moved philosophically away from them being baked into the webkit jar, I'll add some logic to minify them in sbt somewhere, but if they're meant to be there, then I'll remove the new lines in boot once they're back in the jar.

Thanks,

-Dave

Matt Farmer

unread,
Oct 29, 2019, 7:42:00 AM10/29/19
to lif...@googlegroups.com
This looks like a bug that resulted from the sbt upgrades. Looks like I need to make time for build file spelunking this week. 

--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/liftweb/e58ff5d9-0bf7-47e9-9686-acee0eeb0659%40googlegroups.com.

Antonio Salazar Cardozo

unread,
Dec 1, 2019, 11:37:31 AM12/1/19
to Lift
The issue here seems to be that we're not packaging up the minified versions of our JS
files, specifically lift.js and json.js. These are both remapped to lift-min.js and json2-min.js
at runtime by default.

I'm not actually sure where in the build we generate these minified files, didn't have time to
dig in. We should be able to publish a tweak that includes the minified files and makes things
work correctly.
Thanks,
Antonio
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.

Matt Farmer

unread,
Dec 12, 2019, 10:14:51 AM12/12/19
to Lift
I haven't forgotten about this, I just haven't had time to look at it. :(

To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.

--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/liftweb/f242e4b9-0465-44da-aba0-bf844ecbbc31%40googlegroups.com.

Matt Farmer

unread,
Dec 27, 2019, 9:02:59 PM12/27/19
to Lift
Hey all,

Sorry for the delay here - this has been sitting in my inbox and I finally got around to checking it out.

It looks like we had to rip out the yui compressor when we upgraded sbt. It was long past time to do so but the todo item to finalize the work (e.g. replace yui) didn't happen before we cut the release. That's probably my fault. I think the answer here is to either (a) get sbt-uglify working and cut a 3.4.1 with that or (b) release a 3.4.1 without the automatic re-mapping to the minified files.

Will update further as I know more.

Matt Farmer

unread,
Dec 27, 2019, 9:17:16 PM12/27/19
to Lift
Ok, I've opened a PR to disable the automatic rewrites for the time being. I spent some time fighting sbt and didn't get very far so that may be the best way forward for the moment given how long this has already been languishing.
Reply all
Reply to author
Forward
0 new messages