On a similar note, there's another problem with swank:inspect - gensyms. I noticed that for variables in a macro expansion; this example uses the reader instead:
(defun fn1 ( #. *v* ) (funcall #. *v* 'a)) (fn1 #'1+)
Tthen inspect that variable; please note that this is from slimv, perhaps the command is wrong and a different inspect string should be sent?
(:emacs-rex (swank:inspect-in-frame "#:G1752" 2) "CL-USER" 23 217)
gives (:write-string " ; in: LAMBDA (#:G1754) ; (SYMBOL-MACROLET ((#:G1752 ; (SB-DI:DEBUG-VAR-VALUE ; '#<SB-DI::COMPILED-DEBUG-VAR #:G1752 0 {1006E36B51}> ; #:G1754))) ; #:G1752) ; ; caught WARNING: ; undefined variable: #:G1752 ; ; compilation unit finished ; Undefined variable: ; #:G1752 ; caught 1 WARNING condition ")
On a similar note, there's another problem with swank:inspect - gensyms.
I noticed that for variables in a macro expansion; this example uses the reader instead:
(defun fn1 ( #. *v* )
(funcall #. *v* 'a))
(fn1 #'1+)
Tthen inspect that variable; please note that this is from slimv, perhaps the command is wrong and a different inspect string should be sent?
(:emacs-rex (swank: inspect- in-frame "#:G1752" 2) "CL-USER" 23 217)
gives DEBUG-VAR- VALUE :COMPILED- DEBUG-VAR #:G1752 0 {1006E36B51}>
(:write-string "
; in: LAMBDA (#:G1754)
; (SYMBOL-MACROLET ((#:G1752
; (SB-DI:
; '#<SB-DI:
; #:G1754)))
; #:G1752)
;
; caught WARNING:
; undefined variable: #:G1752
;
; compilation unit finished
; Undefined variable:
; #:G1752
; caught 1 WARNING condition
")