Disclaimer: I started to hack around with elisp today.
I am really wondering what I am getting the following error:
Symbol's value as variable is void: response
with the following code:
(let* ((response (cons 'dict nil)))
(nrepl-request:eval
code
(lambda (resp)
(print resp (get-buffer "*sub-process*"))
(nrepl--merge response resp))
(cider-current-connection)
(cider-current-session)))
My understanding is that response
is in the scope of the let*
clause when called from the lambda function... but apparently that it is not.
This also seem to be working in this code
So I am a bit lost about why I am getting this error and what I should do about it.