Exafunction / codeium.vim

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

Invalid token error every Auth #272

Closed geetmankar closed 9 months ago

geetmankar commented 10 months ago

Hi, I am using astronvim on windows 11, everytime I try to use :Codeium Auth and copy and paste the token to the Paste your token here:, the response is:

Unexpected response: {"detail":[{"loc":["body",3],"msg":"Expecting ':' delimiter: line 1 column 4 (char 3)","type":"value_error.jsondecode","ctx":{"msg":"Expecting ':' delimiter","doc":"{\"\"firebase_id_token\"\": \"\"\"\"}","pos":3,"lineno":1,"colno":4}}]} Invalid token, please try again:

Here, <WHATEVER-THE-TOKEN-IS> stands for the actual text of the token

geetmankar commented 9 months ago

Resolved by commenting out the following line:

    vim.opt.shell = "nu",
    vim.opt.shellcmdflag = "-c",
    vim.opt.shellquote = "",
    vim.opt.shellxquote = "",

The Auth probably works only in Command Prompt / cmd in Windows.