copilot-emacs / copilot.el

An unofficial Copilot plugin for Emacs.
MIT License
1.79k stars 126 forks source link

error in process filter: Keyword argument :cancellationReason not one of (:completions) #138

Closed BuddhiLW closed 1 year ago

BuddhiLW commented 1 year ago

This error is occurring every time I type, when using copilot. And it blocks the main thread of emacs. I can't type for like 5 seconds or more, at every typing.

BuddhiLW commented 1 year ago

The error occurs after 2014e0beb448252225773f81561ecc5ead29874a

Through the exhaustion method, I pinned the package in different versions of Doom. Therefore found the commit it happens.

maikol-solis commented 1 year ago

Thanks for this report. I'm having the same issue.

I'll copy your solution from the doom-emacs repo

(package! copilot
  :recipe (:host github :repo "zerolfx/copilot.el" :files ("*.el" "dist"))
  :pin "0160a1108b3bc3fff7e9fe1ebb67e71c0c2a334d")
zerolfx commented 1 year ago

Fixed in 1ab40d8.

maikol-solis commented 1 year ago

Thanks! It works perfectly. 👍

ethansieve commented 6 months ago

Hi, I still get this error on Emacs 29.1 and copilot.el commit 0d48e75dabef86b962b7a8bfcc7d3614a1201821:

Error running timer: (error "Keyword argument :cancellationReason not one of (:completions)")