New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading compiled Clim-Example "address-book" errors with UNDEFINED-CLASS #926
Comments
The form that creates the trouble is probably: CLIM-DEMO> (macroexpand '(define-presentation-type address ()))
(PROGN
(EVAL-WHEN (:COMPILE-TOPLEVEL)
(CLIM-INTERNALS::RECORD-PRESENTATION-TYPE 'ADDRESS
'NIL
'NIL
'NIL
'(&KEY
((:DESCRIPTION #:G6417322)))
#'(LAMBDA (#:TYPE6417323)
(DESTRUCTURING-BIND
()
(CLIM-INTERNALS::DECODE-PARAMETERS
#:TYPE6417323)
(DECLARE (IGNORABLE))
(DESTRUCTURING-BIND
(&KEY
((:DESCRIPTION
#:G6417322)))
(CLIM-INTERNALS::DECODE-OPTIONS
#:TYPE6417323)
(DECLARE
(IGNORABLE #:G6417322))
NIL)))
'"address"
'T
'NIL
T
NIL
NIL))
(EVAL-WHEN (:LOAD-TOPLEVEL :EXECUTE)
(CLIM-INTERNALS::%DEFINE-PRESENTATION-TYPE ADDRESS
NIL
NIL
NIL
(&KEY
((:DESCRIPTION #:G6417322)))
NIL
(LAMBDA (#:TYPE6417323)
(DESTRUCTURING-BIND
()
(CLIM-INTERNALS::DECODE-PARAMETERS
#:TYPE6417323)
(DECLARE (IGNORABLE))
(DESTRUCTURING-BIND
(&KEY
((:DESCRIPTION
#:G6417322)))
(CLIM-INTERNALS::DECODE-OPTIONS
#:TYPE6417323)
(DECLARE
(IGNORABLE #:G6417322))
NIL)))
"address"
T
NIL))) |
This migh be mcclim using undefined behaviour, this fix in presentation.lisp seem to work: (eval-when (:compile-toplevel :load-toplevel :execute)
#-(or excl cmu sbcl openmcl clasp)
(defun compile-time-clos-p (name)
(let ((meta (find-class name nil)))
(and meta
(typep meta 'standard-class))))
#+(or excl cmu sbcl openmcl clasp)
(defun compile-time-clos-p (name)
(let ((metaclass (find-class name nil)))
(or (and metaclass
(typep metaclass 'standard-class))
(clim-lisp-patch::compile-time-clos-class-p name))))
.... |
Solves it, so closing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So it errors while loading the compiled-file not while compiling
same with
In both cases it works fine after the error:
The text was updated successfully, but these errors were encountered: