Exafunction / codeium.vim

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

Auth fail E488: Trailing characters: curl (6) Could not resolve host: application^@ #372

Open alexxroche opened 3 weeks ago

alexxroche commented 3 weeks ago

VIM - Vi IMproved 9.0 (2022 Jun 28, compiled May 04 2023 10:24:44) Included patches: 1-1378, 1499 installed by apt on debian

I followed https://github.com/Exafunction/codeium.vim?tab=readme-ov-file#-getting-started and did git clone https://github.com/Exafunction/codeium.vim ~/.vim/pack/Exafunction/start/codeium.vim then vim merge_sort.py to test. I issued :Codeium Auth and that opened a new tab in my browser that loaded really slowly. Eventually it gave me an API token, which I pasted into vim.

I detached gnu screen to see if that was causing a problem. I tried with vi as well as vim to see if it was a compatibility issue. (Same error.)

I see in ~/.vim/pack/Exafunction/start/codeium.vim/autoload/codeium/command.vim that there is let register_user_url = 'https://api.codeium.com/register_user/'

So I checked

$ host api.codeium.com
api.codeium.com has address 35.223.238.178

so DNS seems to resolve.

I've tried hacking about with ~/.vim/pack/Exafunction/start/codeium.vim/autoload/codeium/command.vim on line 95

\ '-H "Content-Type:application/json" ' .
\ '-H \"Content-Type: application/json\" ' .
\ '-H \'Content-Type:application/json\' ' .

but none of them seemed to work.

disabled Codeium for now

mv ~/.vim/pack/Exafunction/start/codeium.vim ~/.local/lib/