Exafunction / codeium.vim

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

Authentication does not work depending on .zshenv? #392

Open Garamogui opened 1 week ago

Garamogui commented 1 week ago

Codeium was working just fine for a feel months.

After sometime and some configuration at my system, it simply stopped. However, I have not made any changes to my nvim config and its related files.

After that, codeium stopped working and I simply tried to remove and reinstall codeium via lazy.nvim. And some time after some trial and error, it worked after launching nvim from bash? (I normally use zsh.)

Codeium Auth, up to that point returned this:

Navigating to https://www.codeium.com/profile?response_type=token&redirect_uri=vim-show-auth-token&state=a&scope=openid%20profile%20ema
il&redirect_parameters_type=query                                                                                                      
Paste your token here: ****************************************************************************************************************
***************************************************************************************************************************************
***************************************************************************************************************************************
***************************************************************************************************************************************
***************************************************************************************************************************************
***************************************************************************************************************************************
***************************************************************************************************************************************
**************************************Error detected while processing function codeium#command#Command[6]..1:                          
line   66:                                                                                                                             
E474: Unidentified byte: █████╗ ██╗   ██╗███████╗     ██████╗██╗  ██╗██████╗ ██╗███████╗████████╗^@██╔══██╗██║   ██║██╔════╝    ██╔════
╝██║  ██║██╔══██╗██║██╔════╝╚══██╔══╝^@███████║██║   ██║█████╗      ██║     ███████║██████╔╝██║███████╗   ██║   ^@██╔══██║╚██╗ ██╔╝██╔═
═╝      ██║     ██╔══██║██╔══██╗██║╚════██║   ██║   ^@██║  ██║ ╚████╔╝ ███████╗    ╚██████╗██║  ██║██║  ██║██║███████║   ██║   ^@╚═╝  ╚
═╝  ╚═══╝  ╚════<e2><95>                                                                                                               
E474: Failed to parse  █████╗ ██╗   ██╗███████╗     ██████╗██╗  ██╗██████╗ ██╗███████╗████████╗^@██╔══██╗██║   ██║██╔════╝    ██╔════╝█
█║  ██║██╔══██╗██║██╔════╝╚══██╔══╝^@███████║██║   ██║█████╗      ██║     ███████║██████╔╝██║███████╗   ██║   ^@██╔══██║╚██╗ ██╔╝██╔══╝
      ██║     ██╔══██║██╔══██╗██║╚════██║   ██║   ^@██║  ██║ ╚████╔╝ ███████╗    ╚██████╗██║  ██║██║  ██║██║███████║   ██║   ^@╚═╝  ╚═╝
  ╚═══╝  ╚═════<e2>

After that, and realizing that this error looks like my ascii art in the .zshenv, I commented the following line in my .zshenv file:

 # toilet -t -f "ANSIShadow" -d /usr/share/figlet/fonts  "Ave Christus Rex"

It works fine after that...

Why does codeium have to check my .zsenv file????

LeonardoMor commented 1 week ago

I don't think it does.

I have seen that weird characters are introduced when copying and pasting due to misconfigured TERM and/or encoding.

Garamogui commented 4 days ago

My .zshenv has only that unique line the prints ASCII art.