zbirenbaum / copilot.lua

Fully featured & enhanced replacement for copilot.vim complete with API for interacting with Github Copilot
MIT License
2.43k stars 65 forks source link

:Copilot auth crashing #196

Closed SiKreuz closed 11 months ago

SiKreuz commented 11 months ago

I installed zirbenbaum/copilot.lua with wbthomason/packer.nvim and then tried to authenticate with :Copilot auth. This is what I get on my console. Reinstalling didn't work. The original github/copilot.vim seems to work.

Error executing Lua callback: ...ite/pack/packer/start/copilot.lua/lua/copilot/client.lua:130: copilot.setup is not called yet
stack traceback:
        [C]: in function 'error'
        ...ite/pack/packer/start/copilot.lua/lua/copilot/client.lua:130: in function 'use_client'
        ...im/site/pack/packer/start/copilot.lua/plugin/copilot.lua:45: in function <...im/site/pack/packer/start/copilot.lua/plugin/copilot.lua:8>
MunifTanjim commented 11 months ago

You haven't provided any code showing how you set up the plugin.

Did you follow https://github.com/zbirenbaum/copilot.lua#setup-and-configuration?

Did you call require("copilot").setup()?

You need to call the .setup() function.

SiKreuz commented 11 months ago

I'm sure I did exactly that. For some reason it didn't work, but does now. I'm a bit confused but as long as it is working now. Sorry for the redundant issue.