Open file13 opened 5 years ago
Weighing - I'm running into this as well.
I haven't had time to dig into the code to try to help out, but I did want to mention a workaround to use Lucerne out of the box with quicklisp. This is intended for newer lisp hackers who may not know about this.
To do so, you can switch to an older version of quicklisp before clack related APIs broke where Lucerne works out of the box by running this just once:
(ql-dist:install-dist "http://beta.quicklisp.org/dist/quicklisp/2019-05-21/distinfo.txt" :replace t :prompt nil)
Now you can run the following normally:
(eval-when (:compile-toplevel :load-toplevel :execute)
(ql:quickload :lucerne))
(in-package :lucerne)
(annot:enable-annot-syntax)
(defapp app)
@route app "/"
(defview index ()
(respond "<h1>Welcome to Lucerne</h1>"))
@route app "/greet/:name"
(defview greet (name)
(respond (format nil "Hello, ~A!" name)))
(start app)
If you ever need to switch versions, but don't know what's available, you can do so as follows.
(ql-dist:available-versions (ql-dist:dist "quicklisp"))
Frankly, for production websites, you probably do want to this anyways to stick to a known working quicklisp distro until you're ready to test with the latest (ql:update-all-dists)
.
Hope this helps in the meantime.
It looks like this one broke compatibility with Clack v1-compat so it's soundly in the upstream. The best long-term solution would probably be for Lucerne to be migrated to use the new-ish incarnation of clack/lack as it might be optimistic to try and motivate @fukamachi -san to keep maintaining/testing the legacy v1-compat codebase. That said, I've made a PR on clack that in my tests seems to fix it at https://github.com/fukamachi/clack/pull/161
That was quick. So this bug might be fixed in the upstream now. @eudoxia0 what do you think?
So given that this has been a couple years and this is still open, I have to ask the awkward question if this project is dead at this point? I completely understand that life happens and that sometimes open source projects simply burn out, so there's no judgement in my question. I'm simply asking for the practical reasons if I should be working on migrating off of Lucerne for my production sites? I'd obviously rather not, but if there's no plans to continue the project, it's probably time for me to move on. Would you please let me know either way if there's any plans to continue this project or not?
It looks like the new version of http-body (http-body-20190813-git) has broken Lucerne. It appears that the commits since August 10th are the culprit.
With the latest version of quicklisp, running this now produces an error:
When trying to visit a url, it's getting an error in http-body::parse:
If I revert back to the http-body-20181210-git version Lucerne works fine.
I don't have a solution/workaround suggestion at the moment and am not sure how to proceed. But I did want to bring it to your attention. I'll try to play with it more if I have some time.
Thank you!