From franks-muc at web.de Wed Nov 18 22:30:51 2009 From: franks-muc at web.de (Frank Schorr) Date: Wed, 18 Nov 2009 23:30:51 +0100 Subject: [xuriella-devel] problem running xuriella Message-ID: <2018140524@web.de> I'm on Lispworks 5.02 windows 32 and wanted to give xuriella a try, and here is what I found: 1. number.lisp does not compile ;;; Compiling file c:\lisp\libraries\xuriella\number.lisp ... ;;; Safety = 3, Speed = 1, Space = 1, Float = 1, Interruptible = 0 ;;; Compilation speed = 1, Debug = 2, Fixnum safety = 3 ;;; Source level debugging is on ;;; Source file recording is on ;;; Cross referencing is on ; (TOP-LEVEL-FORM 1) ; (TOP-LEVEL-FORM 2) ; XURIELLA::XSL-NUMBER-VALUE ; (TOP-LEVEL-FORM 3) ; XURIELLA::PATTERN-THUNK-MATCHES-P ; XURIELLA::ANCESTORS-USING-COUNT-AND-FROM ; XURIELLA::NODE-POSITION-AMONG-SIBLINGS ; XURIELLA::NODE-TYPE ; XURIELLA::COMPUTE-NUMBER-LIST **++++ Error between functions: #\α is not of type BASE-CHAR. ; XURIELLA::FORMAT-NUMBER-TOKEN ; XURIELLA::GROUP-NUMBERS ; XURIELLA::FORMAT-NUMBER-LIST ; XURIELLA::PARSE-NUMBER-FORMAT ; (TOP-LEVEL-FORM 4) ; *** 1 error detected, no fasl file produced. Warning: COMPILE-FILE warned while performing # on #. I commented out this form: (xpath::deflexer (format-lexer :ignore-whitespace nil) ;; zzz just enough unicode "support" here to pass the tests (#.(format nil "([a-zA-Z0-9~A]+)" (code-char 945)) (x) (values :format x)) (#.(format nil "([^a-zA-Z0-9~A]+)" (code-char 945)) (x) (values :text x))) and number.lisp compiles. Is this form needed? 2. profile.lisp does not compile ;;; Compiling file c:\lisp\libraries\xuriella\profile.lisp ... ;;; Safety = 3, Speed = 1, Space = 1, Float = 1, Interruptible = 0 ;;; Compilation speed = 1, Debug = 2, Fixnum safety = 3 ;;; Source level debugging is on ;;; Source file recording is on ;;; Cross referencing is on ; (TOP-LEVEL-FORM 1) ; (TOP-LEVEL-FORM 2) ; (DEFVAR XURIELLA::*PROFILING-CALLERS*) ; (DEFVAR XURIELLA::*SAMPLES*) ; XURIELLA::CLEAR-COUNTER ; XURIELLA::COUNTER- ; XURIELLA::REPORT-COUNTER ; XURIELLA:ENABLE-PROFILING ; XURIELLA:DISABLE-PROFILING ; XURIELLA::INVOKE-TEMPLATE/PROFILE ; XURIELLA::INVOKE-WITH-PROFILE-COUNTER ; (SUBFUNCTION (DEFSETF XURIELLA::DATA-CALLS) (DEFSTRUCT XURIELLA::PROFILE-DATA)) ; (SUBFUNCTION (DEFSETF XURIELLA::DATA-SELF-RUN) (DEFSTRUCT XURIELLA::PROFILE-DATA)) ; (SUBFUNCTION (DEFSETF XURIELLA::DATA-SELF-REAL) (DEFSTRUCT XURIELLA::PROFILE-DATA)) ; (SUBFUNCTION (DEFSETF XURIELLA::DATA-TOTAL-RUN) (DEFSTRUCT XURIELLA::PROFILE-DATA)) ; (SUBFUNCTION (DEFSETF XURIELLA::DATA-TOTAL-REAL) (DEFSTRUCT XURIELLA::PROFILE-DATA)) ; (SUBFUNCTION (DEFSETF XURIELLA::DATA-TEMPLATE) (DEFSTRUCT XURIELLA::PROFILE-DATA)) ; (SUBFUNCTION XURIELLA::MAKE-PROFILE-DATA (DEFSTRUCT XURIELLA::PROFILE-DATA)) ; XURIELLA::GROUP-AND-SORT-SAMPLES **++++ Error in XURIELLA::REPORT-SAMPLES: Unknown LOOP keyword in (... LOOP::IN BASE-URIS COLLECT (CONS ID BASE-URI)). ; XURIELLA:REPORT ; (TOP-LEVEL-FORM 3) ; *** 1 error detected, no fasl file produced. I replaced this form (sort (loop for base-uri being each hash-key using (hash-value id) in base-uris collect (cons id base-uri)) #'< :key #'car) with (sort (loop for base-uri being each hash-key in base-uris using (hash-value id) collect (cons id base-uri)) #'< :key #'car) may be lispworks specific... 3. I tried the example from the home page (defmacro with-stylesheet ((stylesheet-pathname) &body body) `(invoke-with-stylesheet (lambda () , at body) ,stylesheet-pathname)) (defun invoke-with-stylesheet (fn stylesheet-pathname) (xuriella:apply-stylesheet (pathname stylesheet-pathname) (cxml:with-xml-output (stp:make-builder) (funcall fn)))) (defun show-directory () (with-stylesheet ("directory.xsl") (cxml:with-element "directory" (let ((directory (user-homedir-pathname))) (cxml:attribute "namestring" (namestring directory)) (dolist (file (directory (merge-pathnames "*.*" directory))) (cxml:with-element "file" (cxml:text (enough-namestring file directory)))))))) (show-directory) Error: The value "directory" of CXML-STP-IMPL::NAME is not of type RUNES:ROD. 1 (continue) Supply a new value of CXML-STP-IMPL::NAME. 2 (abort) Abort job 22 :(BIND-STANDARD-STREAMS-AND-EXECUTE # 21A1CEBB> (FUNCALL-BACKGROUND-JOB-AUX # BACKGROUND-REGION-EVAL (# # # # T NIL NIL))) Type :b for backtrace, :c