zbirenbaum / copilot.lua

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

:Copilot auth popup never closes after inserting the one-time code on WSL2 #309

Open angelorodem opened 2 months ago

angelorodem commented 2 months ago

:Copilot auth popup never closes after inserting the one-time code on WSL2

it stays there forever, never closes even after the code has being accepted, running on windows instead of WSL2 finished successfully,

not sure how to collect logs.

jannolii commented 1 month ago

Same here ... also, when I close prompt with :q I see green copilot icon on status line but copilot stuff isn't working. Not sure how to proceed here either 🤷‍♂️

ldelossa commented 6 days ago

Hey, I just ran into this on a VM on mac OS.

What I did was authorize copilot.lua on my host machine and then just copied ~/.config/github-copilot directory to the same directory in my vm. This made the plugin work fine.

Maybe you can do something similar? You basically just need to find once place where the auth works, and then copy the config directory to ~/.config/github-copilot directory essentially.

vladimir-voinea commented 19 hours ago

Hey, I just ran into this on a VM on mac OS.

What I did was authorize copilot.lua on my host machine and then just copied ~/.config/github-copilot directory to the same directory in my vm. This made the plugin work fine.

Maybe you can do something similar? You basically just need to find once place where the auth works, and then copy the config directory to ~/.config/github-copilot directory essentially.

This worked for me