copilot-emacs / copilot.el

An unofficial Copilot plugin for Emacs.
MIT License
1.71k stars 122 forks source link

feat: Use the latest server #305

Open jcs090218 opened 1 month ago

jcs090218 commented 1 month ago

Fix #304.

alexmurray commented 1 month ago

I have tried using copilot 1.30.0 locally with copilot.el and it fails to work correctly - ie it doesn't appear to return any completions, and when running copilot-diagnose I see the following:

Copilot error: (:code -32002 :message "Agent service not initialized.")

it looks like a significant reworking of the protocol between the local nodejs server and the client (either in vim or emacs) happened in the 1.28.0 release - see https://github.com/github/copilot.vim/commit/f45ecd95c1474885e278f20d6ae86a6e30de2151 for details - so I think copilot.el would need similar updates to work with this newer version

jidicula commented 1 month ago

it looks like a significant reworking of the protocol between the local nodejs server and the client (either in vim or emacs) happened in the 1.28.0 release - see github/copilot.vim@f45ecd9 for details - so I think copilot.el would need similar updates to work with this newer version

could the default be brought forward to 1.27.0 perhaps?

edit: I've opened https://github.com/copilot-emacs/copilot.el/pull/314