fukamachi / ningle

Super micro framework for Common Lisp
http://8arrow.org/ningle/
273 stars 25 forks source link

clack:clackup fails after quicklisp update with ETYPECASE on <app> #5

Closed otwieracz closed 9 years ago

otwieracz commented 9 years ago

Hey,

with

clack-20150505-git
ningle-20150505-git

in ~/quicklisp/dists/quicklisp/software

I am trying to follow your guide:

CL-USER> (ql:quickload :ningle)
To load "ningle":
  Load 1 ASDF system:
    ningle
; Loading "ningle"
.........................
(:NINGLE)
CL-USER> (defvar *app* (make-instance 'ningle:<app>))
*APP*
CL-USER> (setf (ningle:route *app* "/")
      "Welcome to ningle!")
"Welcome to ningle!"
CL-USER> (clack:clackup *app*)

And I fall into:

#<NINGLE.APP:<APP>
  {10066DCCF3}> fell through ETYPECASE expression.
Wanted one of ((OR PATHNAME STRING) FUNCTION).
   [Condition of type SB-KERNEL:CASE-FAILURE]

Restarts:
 0: [RETRY] Retry SLIME REPL evaluation request.
 1: [*ABORT] Return to SLIME's top level.
 2: [ABORT] abort thread (#<THREAD "repl-thread" RUNNING {1004D28033}>)

Backtrace:
  0: (SB-KERNEL:CASE-FAILURE ETYPECASE #<NINGLE.APP:<APP> {10066DCCF3}> ((OR PATHNAME STRING) FUNCTION))
  1: (CLACK:CLACKUP #<NINGLE.APP:<APP> {10066DCCF3}>)
  2: (SB-INT:SIMPLE-EVAL-IN-LEXENV (CLACK:CLACKUP *APP*) #<NULL-LEXENV>)
  3: (EVAL (CLACK:CLACKUP *APP*))

Do you have any ideas what's wrong here?

Cheers, Slawek

otwieracz commented 9 years ago
191233 < otwieracz> Why APP should be pathname?
191244 < eudoxia> oh wait
191302 < eudoxia> also instead of (clack:clackup *app* ...) do (clack:clackup (lack:builder *app*) ...)

Please update documentation.

fukamachi commented 9 years ago

It's a bug of Clack. It should be fixed soon.

fukamachi commented 9 years ago

Now it should be fixed in the latest Clack. Thanks for reporting.