Closed pprotas closed 1 year ago
What's the output of :Copilot version
?
Also what is "Kitty settings pane"? 🤔 How do you open it?
Got it. It's https://sw.kovidgoyal.net/kitty/conf/#shortcut-kitty.Edit-config-file
It's not an issue with this plugin. Kitty resets the $PATH
variable when running that command. Nothing we can do here. You should discuss it on Kitty's repo: https://github.com/kovidgoyal/kitty/discussions
Amazing investigative work!
I understand now this is an issue on Kitty's side. Nevertheless, would it be possible to stop copilot.lua
from excessively trying to call node
when it is clear that it's not available in $PATH
?
Nevertheless, would it be possible to stop copilot.lua from excessively trying to call node when it is clear that it's not available in $PATH?
Can you check https://github.com/zbirenbaum/copilot.lua/pull/133?
I am not knowledgeable enough about this codebase to say anything about the code, but if it works then it works! Thanks for your time & effort.
No worries. I'm merging it. You can update the plugin and see if it works.
If it doesn't, comment here again and I'll re-open the issue.
I can confirm this doesn't spam my console anymore.
Now I get this error every time I enter Insert mode:
Which, I suppose, does fix my original problem.
Ideally (for me), this error would only show once, or not show up at all and instead just be logged somewhere. Afterwards it shouldn't show up every time I enter Insert mode.
For now there is a workaround for me: simply don't use the kitty
settings window and instead just cd
into the kitty
conf folder and open nvim
there.
Ideally (for me), this error would only show once
Yep, that was my intention too.
Can you please update the plugin again and see if the situation is improved?
Clean! It just shows up once, and never shows up again. Perfect!
Thank you yet again.
Whenever I try to open the Kitty settings pane and enter Insert mode, I am met with a huge spam of errors coming from this plugin:
node -v
output:My
copilot.lua
config:When I disable this plugin, the error spam is gone.
The plugin works perfectly fine when running Neovim in any other place. Just this Kitty settings page has problems as far as I can tell.