copilot-emacs / copilot.el

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

Using the latest commit(09c6005), Emacs will show error message when starting #232

Closed maptile closed 8 months ago

maptile commented 8 months ago

When updated to the latest commit(09c6005), Emacs says the following message in Message buffer when staring:

File mode specification error: (invalid-slot-name #<jsonrpc-process-connection jsonrpc-process-connection-156e7b60704c> :events-buffer-config)
down-list: Invalid slot name: "#<jsonrpc-process-connection jsonrpc-process-connection-156e7b7af88e>", :events-buffer-config
Quit
File mode specification error: (invalid-slot-name #<jsonrpc-process-connection jsonrpc-process-connection-156e7abbc6ca> :events-buffer-config)
slot-missing: Invalid slot name: "#<jsonrpc-process-connection jsonrpc-process-connection-156e7aeeb674>", :events-buffer-config
slot-missing: Invalid slot name: "#<jsonrpc-process-connection jsonrpc-process-connection-156e79b878b0>", :events-buffer-config
Error running timer ‘copilot--post-command-debounce’: (invalid-slot-name "#<jsonrpc-process-connection jsonrpc-process-connection-156e7b6f5d26>" :events-buffer-config)
slot-missing: Invalid slot name: "#<jsonrpc-process-connection jsonrpc-process-connection-156e79ac2b36>", :events-buffer-config
Error running timer ‘copilot--post-command-debounce’: (invalid-slot-name "#<jsonrpc-process-connection jsonrpc-process-connection-156e7a6ea8d4>" :events-buffer-config)
Quit [3 times]

I tried to checkout the prior commit, everything goes OK.

My environment: OS: Ubuntu 23.10 Emacs: GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-09-02, modified by Debian

maptile commented 8 months ago

I've found the solution: install jsonrpc 1.0.23 will resolve this problem.

benthamite commented 8 months ago

Does anyone know how to install version 1.0.23 of jsonrpc with elpaca/straight? The GNU Elpa version is 1.0.22. Here is the commit bumping it to 1.0.23.

willbush commented 8 months ago

@benthamite It's at 1.0.24 now and I'm finding that fixed the same issue for me.

benthamite commented 8 months ago

Great, thanks for letting me know!