-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copilot stops attaching to buffers at some point #359
Comments
From what I can see this should be fixed with #377 as I ended up making some changes to prevent multiple instances of Copilot from running, as it was happening very often with workspaces active. |
Prevents scenarios where a second client could be created and cause and caught in store_client_id. May fix zbirenbaum#359
Prevents scenarios where a second client could be created and cause and caught in store_client_id. May fix zbirenbaum#359
Prevents scenarios where a second client could be created and cause and caught in store_client_id. May fix zbirenbaum#359
The PR has been merged, can you report back if the issue is fixed or persists? require("copilot").setup {
...
logger = {
file_log_level = vim.log.levels.TRACE,
log_to_file = true,
trace_lsp = "verbose",
},
... Thanks! |
Closing as completed for now, if you report back that it is not fixed I will reopen! |
There were no such problems earlier, but recently I updated to:
15fc12a
The config didn't change. I use lazy as my package manager. The plugin does not display the copilot hints itself, but rather provides them to the completion plugin
nvim-cmp
viacopilot_cmp
pluginWhen neovim is just opened, first couple of files are usually OK. I see copilot hints in autocompletion list, and I see something similar to:
However, as I keep opening more buffers, and sometimes when the existing buffer is reloaded due to external changes, there are no more copilot suggestions. I start getting:
If I now try enabling copilot manually for such buffer, I get this:
First, we have 2 copilot clients now. Second, the new client (id=5), even though seems attached to the current buffer, does not do anything.
Some new buffers may be lucky and get attached of the original copilot client (id=2). The copilot suggestions work for all the buffers attached to the original client, both old and new. Otherwise, not :(
The above error may also appear by itself (on events, I presume), for example when reloading files.
The text was updated successfully, but these errors were encountered: