Closed xqliu closed 2 years ago
There are two problems:
content
is a string rather than a list. But content
is the result of json-read-from-string
, which should return a list. So I don't know what happened there.I'm also getting similar errors, including one reported above. All of the errors originate from passing non-lists to copilot--process-response
.
The details are as follows.
I've advised the function for the time being, but that's obviously a bad fix.
(defun my/copilot-process-response-fix (fun content)
(when (listp content)
(funcall fun content)))
(advice-add #'copilot--process-response :around #'my/copilot-process-response-fix)
It doesn't seem to affect the availability of completions, although I'm not sure about that.
Hi,
Suddenly, it shows below errors and stop works
Part of
copilot-log
bufferSeems the format of copilot server return value is not what expected by the program?
If any more information needed, just post here, thanks for the great plugin ;)