zbirenbaum / copilot.lua

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

Using :Copilot auth in a docker container gives error message #150

Closed JedWalton closed 1 year ago

JedWalton commented 1 year ago

In a docker container with Nvim installed: I run :Copilot auth I then see the usual auth screen as I would see on my local environment, I fill in the code. In my browser I view:

'Congratulations, you're all set! Your device is now connected.'

I wait 5 seconds then get this message:

[Copilot] RPC[Error] code_name = unknown, code = 1001, message = "Error: EACCES: permission denied, mkdir '/home/dev/.config/github-copilot'"

I've adjusted the permissions of this directory as per every other directory in my dev environment. This process works for all other plugins that are able to create files here with no problem. Currently everything in dev has 775 permissions recursively.

Any thoughts on how I might workaround this?

I'm fairly sure I am an edge case here.

Are there any other ways to authenticate copilot.lua?

JedWalton commented 1 year ago

I am closing.

Simply forcing .config to chmod -R 777 solved tho problem.