[hunchentoot-devel] format string error in HANDLE-REQUEST

Hi all, In SBCL, HANDLE-REQUEST raises an error like this if *LOG-LISP-BACKTRACE-P* is NIL: error in FORMAT: no more arguments ~A~:[~*~;~%~:*~A~] ^ [Condition of type SB-FORMAT:FORMAT-ERROR] Just remove the first ~* to fix it, or you can apply the attachment. Thanks, Des.

Hi, it's not a problem with Hunchentoot, but rather new version of SBCL or its incompatibility with SLIME (I'm not yet sure). As this error randomly appears in different situations for me. Best, Vsevolod On Tue, Jun 8, 2010 at 12:19 AM, Desmond O. Chang <dochang@gmail.com> wrote:
Hi all,
In SBCL, HANDLE-REQUEST raises an error like this if *LOG-LISP-BACKTRACE-P* is NIL:
error in FORMAT: no more arguments ~A~:[~*~;~%~:*~A~] ^ [Condition of type SB-FORMAT:FORMAT-ERROR]
Just remove the first ~* to fix it, or you can apply the attachment.
Thanks, Des.
_______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel
-- vsevolod

"Desmond O. Chang" <dochang@gmail.com> writes:
Hi all,
In SBCL, HANDLE-REQUEST raises an error like this if *LOG-LISP-BACKTRACE-P* is NIL:
error in FORMAT: no more arguments ~A~:[~*~;~%~:*~A~] ^ [Condition of type SB-FORMAT:FORMAT-ERROR]
Just remove the first ~* to fix it, or you can apply the attachment.
Thanks, Des.
diff --git a/source/hunchentoot/acceptor.lisp b/source/hunchentoot/acceptor.lisp index 44b7559..e5da7f1 100644 --- a/source/hunchentoot/acceptor.lisp +++ b/source/hunchentoot/acceptor.lisp @@ -439,7 +439,7 @@ handler." (lambda (cond) (when *log-lisp-errors-p* (log-message *lisp-errors-log-level* - "~A~:[~*~;~%~:*~A~]" + "~A~:[~;~%~:*~A~]" cond (and *log-lisp-backtraces-p* (get-backtrace)))) ;; if the headers were already sent, the error
Format string can be simplified to "~A~@[~%~A~]". -- With Best Regards, Stas.

Desmond, Stas, thank you for pointing at the bug and fixing it. I've committed the simplified format string. -Hans On Tue, Jun 8, 2010 at 07:23, Stas Boukarev <stassats@gmail.com> wrote:
"Desmond O. Chang" <dochang@gmail.com> writes:
Hi all,
In SBCL, HANDLE-REQUEST raises an error like this if *LOG-LISP-BACKTRACE-P* is NIL:
error in FORMAT: no more arguments ~A~:[~*~;~%~:*~A~] ^ [Condition of type SB-FORMAT:FORMAT-ERROR]
Just remove the first ~* to fix it, or you can apply the attachment.
Thanks, Des.
diff --git a/source/hunchentoot/acceptor.lisp b/source/hunchentoot/acceptor.lisp index 44b7559..e5da7f1 100644 --- a/source/hunchentoot/acceptor.lisp +++ b/source/hunchentoot/acceptor.lisp @@ -439,7 +439,7 @@ handler." (lambda (cond) (when *log-lisp-errors-p* (log-message *lisp-errors-log-level* - "~A~:[~*~;~%~:*~A~]" + "~A~:[~;~%~:*~A~]" cond (and *log-lisp-backtraces-p* (get-backtrace)))) ;; if the headers were already sent, the error
Format string can be simplified to "~A~@[~%~A~]".
-- With Best Regards, Stas.
_______________________________________________ tbnl-devel site list tbnl-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/tbnl-devel
participants (4)
-
Desmond O. Chang
-
Hans Hübner
-
Stas Boukarev
-
Vsevolod Dyomkin