Can't restore session - problem with save("file",all)
Subject: Can't restore session - problem with save("file",all)
From: Bradley A. Hare
Date: Tue, 24 Jun 2008 13:23:22 -0400
I've been trying to save my sessions with save("file",all), but
the result will not load without errors. I've tested this back
to 5.13.0 with clisp and sbcl.
when I do the load with sbcl I get:
in: LAMBDA NIL
; (SB-KERNEL:%PUTHASH #:G2266 #:G2267 #:G2269)
;
; caught WARNING:
; Asserted type HASH-TABLE conflicts with derived type
; (VALUES (SIMPLE-ARRAY CHARACTER (1)) &OPTIONAL).
; See also:
; The SBCL Manual, Node "Handling of Types"
;
; compilation unit aborted
; caught 1 fatal ERROR condition
; caught 1 WARNING condition
I commented out bits of the session file until I could reproducibly turn the
error on and off. The offending lines seem to be the following (in common
code located about 23 lines up from the bottom of the file):
<lines above deleted>
(MDEFPROP $NSET (NIL $VERSION 1.21) $PROPS)
(ADD2LNC '$NSET $PROPS)
(DEFPROP ${ %{ VERB)
(DEFPROP ${ "{" OP)
Here ->> (SETF (GETHASH *OPR-TABLE* "{") ${)
(ADD2LNC '"{" $PROPS)
(MDEFPROP ${
(LAMBDA) ((MLIST) ((MLIST) $L))
(($BUILDQ) ((MLIST) $L) (($SET)
(($SPLICE) $L))))
MMACRO)
(ADD2LNC '((${) ((MLIST) $L)) $MACROS)
(MDEFPROP ${ T MLEXPRP)
(DEFPROP %{ ${ NOUN)
(DEFPROP $} "}" OP)
And Here ->> (SETF (GETHASH *OPR-TABLE* "}") $})
(ADD2LNC '"}" $PROPS)
The above code appears in all session files. Saving an empty session (i.e.
using save("file",all) from %I1) will also produce the error when the file
is loaded in a new session.
Beyond that my knowledge of lisp syntax is pretty much limited to the
comment
character, so any suggestions would be greatly appreciated.
Thanks,
Brad Hare