Exafunction / codeium.vim

Free, ultrafast Copilot alternative for Vim and Neovim
https://codeium.com
MIT License
4.12k stars 147 forks source link

Improve behavior of Codeium Auth #161

Closed psalm842 closed 1 year ago

psalm842 commented 1 year ago

Summary

Addresses #148 - Codeium Auth will now prompt the user to ask if they want to run curl with the "--ssl-no-revoke" option if a revocation error is detected during authorization and they are using a windows system.

Testing Method and Results

Deleted the config.json file (which contained the stored api key to force a re-auth) and retried authentication on my system. It produced the expected prompt upon the curl ssl error and then successfully authenticated after responding to the prompt with a "y"

fortenforge commented 1 year ago

This generally looks good to me (nice work!). Do you also need to modify the curl request where we download the language server?: https://github.com/Exafunction/codeium.vim/blob/1715a11fe4882205119810371bb57b5e48509486/autoload/codeium/server.vim#L72

psalm842 commented 1 year ago

I did not have to modify the other curl requests and everything seems to be working fine, just that one.

fortenforge commented 1 year ago

Sounds good.