-
Notifications
You must be signed in to change notification settings - Fork 123
Agent service not initialized #321
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
Comments
+1 on this issue |
+1 also experienced this |
I am experiencing this as well and for what it is worth, this is the first time I have noticed it so it must be something more recent. I am on Windows 11 and most recent neovim nightly. |
This is issue should be assigned on priority |
same issue after switching from copilot.vim to copilot.lua |
I can't seem to reproduce this. I updated neovim to the most recent version, re-authenticated copilot, and pasted this config directly. I noticed one comment reported using windows 11. Is everyone else having this issue on windows as well? |
I'm on Mac |
Nah, I'm on Linux. |
@zbirenbaum do you use Lazy for package manager and more importantly lazy load copilot so it does not load the plugin immediately at nvim startup? I believe the issue is because I for example lazy load on 'InsertEnter' so if I open a buffer the first time in nvim session, press For others, can you confirm reproducing (especially if you use insert enter to lazy load) by opening a buffer and going to insert mode but do NOT start typing right way... wait a few seconds to start typing... then see if the error occurs as I get no error if I wait. So @zbirenbaum the TLDR is that whatever recent change happened in the plugin and/or in Neovim core itself (or possible in copilot server itself), there should be some sort of check maybe to see if the copilot server is started up yet or not. For me the immediate solution is to just lazy load on filetype enter so it loads as soon as I load a buffer instead of waiting for InsertEnter. |
I believe that the example installation in the
I can confirm that. |
Any updates to this? |
Anybody know if a way to at least disable the error? |
Wild |
If you use noice.nvim you could silence it: require('noice').setup({
...
routes = {
{
filter = {
event = 'msg_show',
any = {
{ find = 'Agent service not initialized' },
},
},
opts = { skip = true },
},
},
...
}) |
+1 |
Still getting this |
Any update? |
On Arch Linux, Neovim version
Lazy plugin manager, tried not lazy loading at all, still gives the same error message. For repro, as soon as you get control of a buffer, press i to go into insert mode then press enter to start a newline. The speed with which you need to do this cannot be understated, the issue is non-existent without sufficient speed. Likely best course of action is to ignore the notification with noice and go about my business. |
I someone wants to test out the PR I made for the fix you can temporarily change your config to pull from it like: return {
"AntoineGS/copilot.lua",
branch = "fix_RPC",
...
} |
Unfortunately I still experience this error...
I use Neovim 0.10.4 on Arch system (with LazyVim) My config I use the master version of the plugin: Also, there is this error in lsp.log:
|
A complete shot in the dark but could you try the |
I've tried it and it still does not work. However, I found this which might be relevant since I've had some problems with certificates lately: https://github.com/orgs/community/discussions/121812 Your plugin works normally on a fresh install of Arch with the same package versions. This issue is on my side somewhere. |
Ah that sucks :( I hope you find a solution that does not require a fresh install! |
Just so you know, it's also broken on the fresh distro Alpine WSL What's funny is that it works some time after cleaning and reinstalling the plugin (for like 2 minutes) and then I get the error This is not an issue with your plugin but at least you can tell people that the problem is elsewhere. I do believe that this would not appear on Ubuntu for example. |
Hello, I get this error every time I attach to a buffer for the first time after entering neovim, then entering insert mode and starting to write immediately:
It's consistent and it happens 100% of the time. I'm pretty much using a default config:
The text was updated successfully, but these errors were encountered: