Exafunction / codeium.vim

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

Error when running Auth. #243

Closed leet0rz closed 1 year ago

leet0rz commented 1 year ago

dqt5tLz 1

This is what I see when I copy the Auth message back into nvim.

vitorf7 commented 1 year ago

I am getting similar problems but also errors talking about windows x64 when I am on MacOS

   Error  21:11:13 msg_show.emsg Error detected while processing function <lambda>3[1]..<SNR>38_UnzipAndStart[34]..<SNR>38_ActuallyStart:
21:11:13 msg_show line   16:
21:11:13 msg_show E903: Process failed to start: Unknown system error -8: "/Users/vitorfaiante/.codeium/bin/87b86a22cd2aecd1294beb2346e7b5389a3873e7/language_server_windows_x64.exe"
   Error  21:14:27 msg_show.emsg Paste your token here: ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** Error detected while processing function codeium#command#Command[6]..1:
21:14:27 msg_show Paste your token here: ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** line   66:
21:14:27 msg_show Paste your token here: ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** E474: Unidentified byte: ^[[?25l^[[?7l^[[0m^[[32m^[[1m                    'c.^@                 ,xNMM.^@               .OMMMMo^@               OMMM0,^@     .;loddo:' loolloddol;.^@   cKMMMMMMMMMMNWMMMMMMMMMM0:^@^[[0m^[[33m^[[1m .KMMMMMMMMMMMMMMMMMMMMMMMWd.^@ XMMMMMMMMMMMMMMMMMMMMMMMX.^@^[[0m^[[31m^[[1m;MMMMMMMMMMMMMMMMMMMMMMMM:^@:MMMMMMMMMMMMMMMMMMMMMMMM:^@^[[0m^[[31m^[[1m.MMMMMMMMMMMMMMMMMMMMMMMMX.^@ kMMMMMMMMMMMMMMMMMMMMMMMMWd.^@ ^[[0m^[[35m^[[1m.XMMMMMMMMMMMMMMMMMMMMMMMMMMk^@  .XMMMMMMMMMMMMMMMMMMMMMMMMK.^@    ^[[0m^[[34m^[[1mkMMMMMMMMMMMMMMMMMMMMMMd^@     ;KMMMMMMMWXXWMMMMMMMk.^@       .cooc,.    .,coo:.^[[0m^@^[[17A^[[9999999D^[[33C^[[0m^[[1m^[[32m^[[1mvitorfaiante^[[0m@^[[32m^[[1mTPMBP-F9LXP9L5^[[0m ^@^[[33C^[[0m---------------------------^[[0m ^@^[[33C^[[0m^[[33m^[[1mOS^[[0m^[[0m:^[[0m macOS 14.0 23A344 arm64^[[0m ^@^[[33C^[[0m^[[33m^[[1mHost^[[0m^[[0m:^[[0m MacBookPro18,3^[[0m ^@^[[33C^[[0m^[[33m^[[1mKernel^[[0m^[[0m:^[[0m 23.0.0^[[0m ^@^[[33C^[[0m^[[33m^[[1mUptime^[[0m^[[0m:^[[0m 37 mins^[[0m ^@^[[33C^[[0m^[[33m^[[1mPackages^[[0m^[[0m:^[[0m 228 (brew)^[[0m ^@^[[33C^[[0m^[[33m^[[1mShell^[[0m^[[0m:^[[0m fi
   Error  21:14:27 msg_show.emsg Paste your token here: ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** E474: Failed to parse ^[[?25l^[[?7l^[[0m^[[32m^[[1m                    'c.^@                 ,xNMM.^@               .OMMMMo^@               OMMM0,^@     .;loddo:' loolloddol;.^@   cKMMMMMMMMMMNWMMMMMMMMMM0:^@^[[0m^[[33m^[[1m .KMMMMMMMMMMMMMMMMMMMMMMMWd.^@ XMMMMMMMMMMMMMMMMMMMMMMMX.^@^[[0m^[[31m^[[1m;MMMMMMMMMMMMMMMMMMMMMMMM:^@:MMMMMMMMMMMMMMMMMMMMMMMM:^@^[[0m^[[31m^[[1m.MMMMMMMMMMMMMMMMMMMMMMMMX.^@ kMMMMMMMMMMMMMMMMMMMMMMMMWd.^@ ^[[0m^[[35m^[[1m.XMMMMMMMMMMMMMMMMMMMMMMMMMMk^@  .XMMMMMMMMMMMMMMMMMMMMMMMMK.^@    ^[[0m^[[34m^[[1mkMMMMMMMMMMMMMMMMMMMMMMd^@     ;KMMMMMMMWXXWMMMMMMMk.^@       .cooc,.    .,coo:.^[[0m^@^[[17A^[[9999999D^[[33C^[[0m^[[1m^[[32m^[[1mvitorfaiante^[[0m@^[[32m^[[1mTPMBP-F9LXP9L5^[[0m ^@^[[33C^[[0m---------------------------^[[0m ^@^[[33C^[[0m^[[33m^[[1mOS^[[0m^[[0m:^[[0m macOS 14.0 23A344 arm64^[[0m ^@^[[33C^[[0m^[[33m^[[1mHost^[[0m^[[0m:^[[0m MacBookPro18,3^[[0m ^@^[[33C^[[0m^[[33m^[[1mKernel^[[0m^[[0m:^[[0m 23.0.0^[[0m ^@^[[33C^[[0m^[[33m^[[1mUptime^[[0m^[[0m:^[[0m 37 mins^[[0m ^@^[[33C^[[0m^[[33m^[[1mPackages^[[0m^[[0m:^[[0m 228 (brew)^[[0m ^@^[[33C^[[0m^[[33m^[[1mShell^[[0m^[[0m:^[[0m fish 
21:14:27 msg_show Paste your token here: ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** line   67:
21:14:27 msg_show Paste your token here: ******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** E896: Argument of get() must be a List, Dictionary or Blob
   Error  21:14:39 msg_show.emsg Invalid token, please try again: * line   66:
21:14:39 msg_show Invalid token, please try again: * E474: Unidentified byte: ^[[?25l^[[?7l^[[0m^[[32m^[[1m                    'c.^@                 ,xNMM.^@               .OMMMMo^@               OMMM0,^@     .;loddo:' loolloddol;.^@   cKMMMMMMMMMMNWMMMMMMMMMM0:^@^[[0m^[[33m^[[1m .KMMMMMMMMMMMMMMMMMMMMMMMWd.^@ XMMMMMMMMMMMMMMMMMMMMMMMX.^@^[[0m^[[31m^[[1m;MMMMMMMMMMMMMMMMMMMMMMMM:^@:MMMMMMMMMMMMMMMMMMMMMMMM:^@^[[0m^[[31m^[[1m.MMMMMMMMMMMMMMMMMMMMMMMMX.^@ kMMMMMMMMMMMMMMMMMMMMMMMMWd.^@ ^[[0m^[[35m^[[1m.XMMMMMMMMMMMMMMMMMMMMMMMMMMk^@  .XMMMMMMMMMMMMMMMMMMMMMMMMK.^@    ^[[0m^[[34m^[[1mkMMMMMMMMMMMMMMMMMMMMMMd^@     ;KMMMMMMMWXXWMMMMMMMk.^@       .cooc,.    .,coo:.^[[0m^@^[[17A^[[9999999D^[[33C^[[0m^[[1m^[[32m^[[1mvitorfaiante^[[0m@^[[32m^[[1mTPMBP-F9LXP9L5^[[0m ^@^[[33C^[[0m---------------------------^[[0m ^@^[[33C^[[0m^[[33m^[[1mOS^[[0m^[[0m:^[[0m macOS 14.0 23A344 arm64^[[0m ^@^[[33C^[[0m^[[33m^[[1mHost^[[0m^[[0m:^[[0m MacBookPro18,3^[[0m ^@^[[33C^[[0m^[[33m^[[1mKernel^[[0m^[[0m:^[[0m 23.0.0^[[0m ^@^[[33C^[[0m^[[33m^[[1mUptime^[[0m^[[0m:^[[0m 37 mins^[[0m ^@^[[33C^[[0m^[[33m^[[1mPackages^[[0m^[[0m:^[[0m 228 (brew)^[[0m ^@^[[33C^[[0m^[[33m^[[1mShell^[[0m^[[0m:^[[0m fi
   Error  21:14:39 msg_show.emsg Invalid token, please try again: * E474: Failed to parse ^[[?25l^[[?7l^[[0m^[[32m^[[1m                    'c.^@                 ,xNMM.^@               .OMMMMo^@               OMMM0,^@     .;loddo:' loolloddol;.^@   cKMMMMMMMMMMNWMMMMMMMMMM0:^@^[[0m^[[33m^[[1m .KMMMMMMMMMMMMMMMMMMMMMMMWd.^@ XMMMMMMMMMMMMMMMMMMMMMMMX.^@^[[0m^[[31m^[[1m;MMMMMMMMMMMMMMMMMMMMMMMM:^@:MMMMMMMMMMMMMMMMMMMMMMMM:^@^[[0m^[[31m^[[1m.MMMMMMMMMMMMMMMMMMMMMMMMX.^@ kMMMMMMMMMMMMMMMMMMMMMMMMWd.^@ ^[[0m^[[35m^[[1m.XMMMMMMMMMMMMMMMMMMMMMMMMMMk^@  .XMMMMMMMMMMMMMMMMMMMMMMMMK.^@    ^[[0m^[[34m^[[1mkMMMMMMMMMMMMMMMMMMMMMMd^@     ;KMMMMMMMWXXWMMMMMMMk.^@       .cooc,.    .,coo:.^[[0m^@^[[17A^[[9999999D^[[33C^[[0m^[[1m^[[32m^[[1mvitorfaiante^[[0m@^[[32m^[[1mTPMBP-F9LXP9L5^[[0m ^@^[[33C^[[0m---------------------------^[[0m ^@^[[33C^[[0m^[[33m^[[1mOS^[[0m^[[0m:^[[0m macOS 14.0 23A344 arm64^[[0m ^@^[[33C^[[0m^[[33m^[[1mHost^[[0m^[[0m:^[[0m MacBookPro18,3^[[0m ^@^[[33C^[[0m^[[33m^[[1mKernel^[[0m^[[0m:^[[0m 23.0.0^[[0m ^@^[[33C^[[0m^[[33m^[[1mUptime^[[0m^[[0m:^[[0m 37 mins^[[0m ^@^[[33C^[[0m^[[33m^[[1mPackages^[[0m^[[0m:^[[0m 228 (brew)^[[0m ^@^[[33C^[[0m^[[33m^[[1mShell^[[0m^[[0m:^[[0m fish 
21:14:39 msg_show Invalid token, please try again: * line   67:
21:14:39 msg_show Invalid token, please try again: * E896: Argument of get() must be a List, Dictionary or Blob
   Error  21:14:41 msg_show.emsg Invalid token, please try again:  line   66:
21:14:41 msg_show Invalid token, please try again:  E474: Unidentified byte: ^[[?25l^[[?7l^[[0m^[[32m^[[1m                    'c.^@                 ,xNMM.^@               .OMMMMo^@               OMMM0,^@     .;loddo:' loolloddol;.^@   cKMMMMMMMMMMNWMMMMMMMMMM0:^@^[[0m^[[33m^[[1m .KMMMMMMMMMMMMMMMMMMMMMMMWd.^@ XMMMMMMMMMMMMMMMMMMMMMMMX.^@^[[0m^[[31m^[[1m;MMMMMMMMMMMMMMMMMMMMMMMM:^@:MMMMMMMMMMMMMMMMMMMMMMMM:^@^[[0m^[[31m^[[1m.MMMMMMMMMMMMMMMMMMMMMMMMX.^@ kMMMMMMMMMMMMMMMMMMMMMMMMWd.^@ ^[[0m^[[35m^[[1m.XMMMMMMMMMMMMMMMMMMMMMMMMMMk^@  .XMMMMMMMMMMMMMMMMMMMMMMMMK.^@    ^[[0m^[[34m^[[1mkMMMMMMMMMMMMMMMMMMMMMMd^@     ;KMMMMMMMWXXWMMMMMMMk.^@       .cooc,.    .,coo:.^[[0m^@^[[17A^[[9999999D^[[33C^[[0m^[[1m^[[32m^[[1mvitorfaiante^[[0m@^[[32m^[[1mTPMBP-F9LXP9L5^[[0m ^@^[[33C^[[0m---------------------------^[[0m ^@^[[33C^[[0m^[[33m^[[1mOS^[[0m^[[0m:^[[0m macOS 14.0 23A344 arm64^[[0m ^@^[[33C^[[0m^[[33m^[[1mHost^[[0m^[[0m:^[[0m MacBookPro18,3^[[0m ^@^[[33C^[[0m^[[33m^[[1mKernel^[[0m^[[0m:^[[0m 23.0.0^[[0m ^@^[[33C^[[0m^[[33m^[[1mUptime^[[0m^[[0m:^[[0m 37 mins^[[0m ^@^[[33C^[[0m^[[33m^[[1mPackages^[[0m^[[0m:^[[0m 228 (brew)^[[0m ^@^[[33C^[[0m^[[33m^[[1mShell^[[0m^[[0m:^[[0m fi
   Error  21:14:41 msg_show.emsg Invalid token, please try again:  E474: Failed to parse ^[[?25l^[[?7l^[[0m^[[32m^[[1m                    'c.^@                 ,xNMM.^@               .OMMMMo^@               OMMM0,^@     .;loddo:' loolloddol;.^@   cKMMMMMMMMMMNWMMMMMMMMMM0:^@^[[0m^[[33m^[[1m .KMMMMMMMMMMMMMMMMMMMMMMMWd.^@ XMMMMMMMMMMMMMMMMMMMMMMMX.^@^[[0m^[[31m^[[1m;MMMMMMMMMMMMMMMMMMMMMMMM:^@:MMMMMMMMMMMMMMMMMMMMMMMM:^@^[[0m^[[31m^[[1m.MMMMMMMMMMMMMMMMMMMMMMMMX.^@ kMMMMMMMMMMMMMMMMMMMMMMMMWd.^@ ^[[0m^[[35m^[[1m.XMMMMMMMMMMMMMMMMMMMMMMMMMMk^@  .XMMMMMMMMMMMMMMMMMMMMMMMMK.^@    ^[[0m^[[34m^[[1mkMMMMMMMMMMMMMMMMMMMMMMd^@     ;KMMMMMMMWXXWMMMMMMMk.^@       .cooc,.    .,coo:.^[[0m^@^[[17A^[[9999999D^[[33C^[[0m^[[1m^[[32m^[[1mvitorfaiante^[[0m@^[[32m^[[1mTPMBP-F9LXP9L5^[[0m ^@^[[33C^[[0m---------------------------^[[0m ^@^[[33C^[[0m^[[33m^[[1mOS^[[0m^[[0m:^[[0m macOS 14.0 23A344 arm64^[[0m ^@^[[33C^[[0m^[[33m^[[1mHost^[[0m^[[0m:^[[0m MacBookPro18,3^[[0m ^@^[[33C^[[0m^[[33m^[[1mKernel^[[0m^[[0m:^[[0m 23.0.0^[[0m ^@^[[33C^[[0m^[[33m^[[1mUptime^[[0m^[[0m:^[[0m 37 mins^[[0m ^@^[[33C^[[0m^[[33m^[[1mPackages^[[0m^[[0m:^[[0m 228 (brew)^[[0m ^@^[[33C^[[0m^[[33m^[[1mShell^[[0m^[[0m:^[[0m fish 
21:14:41 msg_show Invalid token, please try again:  line   67:
21:14:41 msg_show Invalid token, please try again:  E896: Argument of get() must be a List, Dictionary or Blob
kunashir commented 1 year ago

I had a similar problem (but looks like the details were a little bit different). I solved it temporarily by disabling the color setup (shell prompt) for bash.

vitorf7 commented 1 year ago

@kunashir Oh, how did you do that? I am using fish shell with starship prompt but even with my zsh + p10k previously it was failing

kunashir commented 1 year ago

I've removed from this line in my bash_profile bash_prompt in bash_prompt I have next:

#!/usr/bin/env bash

# Shell prompt based on the Solarized Dark theme.
# Screenshot: http://i.imgur.com/EkEtphC.png
# Heavily inspired by @necolas’s prompt: https://github.com/necolas/dotfiles
# iTerm → Profiles → Text → use 13pt Monaco with 1.1 vertical spacing.

if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
    export TERM='gnome-256color';
elif infocmp xterm-256color >/dev/null 2>&1; then
    export TERM='xterm-256color';
fi;

prompt_git() {
    local s='';
    local branchName='';

    # Check if the current directory is in a Git repository.
    if [ $(git rev-parse --is-inside-work-tree &>/dev/null; echo "${?}") == '0' ]; then

        # check if the current directory is in .git before running git checks
        if [ "$(git rev-parse --is-inside-git-dir 2> /dev/null)" == 'false' ]; then

            # Ensure the index is up to date.
            git update-index --really-refresh -q &>/dev/null;

            # Check for uncommitted changes in the index.
            if ! $(git diff --quiet --ignore-submodules --cached); then
                s+='+';
            fi;

            # Check for unstaged changes.
            if ! $(git diff-files --quiet --ignore-submodules --); then
                s+='!';
            fi;

            # Check for untracked files.
            if [ -n "$(git ls-files --others --exclude-standard)" ]; then
                s+='?';
            fi;

            # Check for stashed files.
            if $(git rev-parse --verify refs/stash &>/dev/null); then
                s+='$';
            fi;

        fi;

        # Get the short symbolic ref.
        # If HEAD isn’t a symbolic ref, get the short SHA for the latest commit
        # Otherwise, just give up.
        branchName="$(git symbolic-ref --quiet --short HEAD 2> /dev/null || \
            git rev-parse --short HEAD 2> /dev/null || \
            echo '(unknown)')";

        [ -n "${s}" ] && s=" [${s}]";

        echo -e "${1}${branchName}${2}${s}";
    else
        return;
    fi;
}

if tput setaf 1 &> /dev/null; then
    tput sgr0; # reset colors
    bold=$(tput bold);
    reset=$(tput sgr0);
    # Solarized colors, taken from http://git.io/solarized-colors.
    black=$(tput setaf 0);
    blue=$(tput setaf 33);
    cyan=$(tput setaf 37);
    green=$(tput setaf 64);
    orange=$(tput setaf 166);
    purple=$(tput setaf 125);
    red=$(tput setaf 124);
    violet=$(tput setaf 61);
    white=$(tput setaf 15);
    yellow=$(tput setaf 136);
else
    bold='';
    reset="\e[0m";
    black="\e[1;30m";
    blue="\e[1;34m";
    cyan="\e[1;36m";
    green="\e[1;32m";
    orange="\e[1;33m";
    purple="\e[1;35m";
    red="\e[1;31m";
    violet="\e[1;35m";
    white="\e[1;37m";
    yellow="\e[1;33m";
fi;

# Highlight the user name when logged in as root.
if [[ "${USER}" == "root" ]]; then
    userStyle="${red}";
else
    userStyle="${orange}";
fi;

# Highlight the hostname when connected via SSH.
if [[ "${SSH_TTY}" ]]; then
    hostStyle="${bold}${red}";
else
    hostStyle="${yellow}";
fi;

# Set the terminal title and prompt.
PS1="\[\033]0;\W\007\]"; # working directory base name
PS1+="\[${bold}\]\n"; # newline
PS1+="\[${userStyle}\]\u"; # username
PS1+="\[${white}\] at ";
PS1+="\[${hostStyle}\]\h"; # host
PS1+="\[${white}\] at ";
PS1+="\[${cyan}\]\D{%F %T}"; # date
PS1+="\[${white}\] in ";
PS1+="\[${green}\]\w"; # working directory full path
PS1+="\$(prompt_git \"\[${white}\] on \[${violet}\]\" \"\[${blue}\]\")"; # Git repository details
PS1+="\n";
PS1+="\[${white}\]\$ \[${reset}\]"; # `$` (and reset color)
export PS1;

PS2="\[${yellow}\]→ \[${reset}\]";
export PS2;
vitorf7 commented 1 year ago

@kunashir Yeah I am using lazyvim and I just noticed that it had an extra that adds codeium and I tried it and it works fine without needing to change anything. When I was trying to look at the difference it was only that it uses the codeium.nvim package rather than this codeium.vim package that we are commenting on.

leet0rz commented 1 year ago

For me this happened due to trying to Auth in git-bash. I tried again with powershell after manually downloading it like in the documentation, not sure if that had anything to do with it or not but Authing through powershell had it working for me.

leet0rz commented 1 year ago

Closing