-
Notifications
You must be signed in to change notification settings - Fork 123
Home directory is absolute #1
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
Comments
oops one sec |
Should be fixed. Packersync and let me know if it works. |
Are you on windows? If so try the patch I just sent out a second ago. If you are on linux or osx, try going to ~/.config and see if github-copilot is there. It should be. |
No, I'm on MacOS. Looks like it's in |
I just pushed an update a second ago that should default to ~/.config if XDG_CONFIG_HOME is not defined and user isn't on windows. If thats not working let me know. I'm not sure why the request isn't working. It seems the error is in here:
But that works fine for me. If the latest commit fixes pathing stuff on packersync, can you open a new issue for the timeout? |
@zbirenbaum Sorry for replying from a closed issue, but I found some problems in
|
Thanks for the info, I'll add a check to make sure that the dir exists. I think I could run filereadable on the hosts file using that as the relative path, but I'd prefer to check if the dir actually exists so that it still works once I no longer rely on copilot.vim for the pre-authentication step. |
@annenpolka I just pushed a fix using the info you provided. I did a bunch of isdirectory checks and I added a print statement to indicate when none of the above locations were directories, so hopefully it behaves a bit more predictably now. Thanks for the catch! |
copilot.lua/lua/copilot/setup.lua
Line 38 in 178fc2b
The text was updated successfully, but these errors were encountered: