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
Errors on each keypress when offline #165
Comments
Just disable it? |
Actually it took some time and googling to even find that this issue is caused by Copilot. As I used Astronvim, my initial thought was that it's some git(hub) plugin I'm unaware about. Nothing in the error messages hints to Copilot. Disabling and enabling back everytime you're on the bad network or without network is a workaround, but not really a solution. There is no reason to throw this error at all (I kinda expect that Copilot won't work without internet, it's expected, no error to react here). Errors should be thrown only when app want's human to intervene and do something. Otherwise it should just fail silently. Definitely not to disrupt a core functionality of the editor. |
Weirdly, if I disconnect my network, I get these in the
But neovim doesn't print any error in the cmdline. So it doesn't interrupt text insertion. Can you share how you're setting up lsp and copilot? |
Also what's the output of |
@MunifTanjim hmm, I checked my lsp.log and it's same as yours upon going offline. But here is a bit more weirdness to the story: When I try to reproduce it on the external monitor or with a small enough font – there is no error thrown. But once I use larger font size (and/or laptop display) – then it appears. Literally by changing terminal font size the issue appears or disappears. It's probably has something to do how Astronvim handles errors display, but as I'm not nvim power use, I have no idea where to even look at.
|
Usually that output also contains neovim's version 🤔 What's the version of Neovim you're using? |
|
Any workaround for this? The error message is quite annoying when you have slow internet connection. I would rather just hide the message. |
I think you can write up an autocmd that suppresses outputs for the copilot plugin, but besides |
When there is no internet connection available, plugin seems to throw error on each keypress:
This seems to be described in #93, but suggested solution is disable auto trigger of Copilot. This might be an option for some people, but I prefer it to be enabled by default, just don't show error when this error is encountered.
The problem is particularly nasty as this error prevents from normal typing – I need to press Enter to dismiss an error and then type the next character. Basically it makes typing impossible without internet.
Any idea how to prevent it from throwing an error?
I'm using Astronvim, not sure if the behaviour of the plugin is the same for all nvim configurations. Could anyone verify if they having the same behaviour?
The text was updated successfully, but these errors were encountered: