neoclide / coc-tabnine

Tabnine integration of coc.nvim
467 stars 18 forks source link

spawn extentions/coc-tabnine-data/...../x86_64-unkown-linux-musl #32

Closed 20jam closed 4 years ago

20jam commented 4 years ago

Hello I have this problem ongoing everytime I open vim , first timeout then this.

Is there something I didn't instsll ?

Thanks

sQVe commented 4 years ago

You need to provide more detailed information and when the issues occurs.

Also, try reinstalling and removing directories related to coc-tabnine.

20jam commented 4 years ago

Yes tried installing and reinstalling / wapping out dir, but still no use. Is there a dependence I need to install ?

sQVe commented 4 years ago

No. You should not have to install any dependency. You do need to provide logs on what the actual issue is though. There isn't much to go on here.

20jam commented 4 years ago

Okay, there is two logs I'm geting:

When I do CoCommand tabnine.openConfig:

[coc.nvim] error: Uncaught exception: Error: spawn /home/a/.config/coc/extentions/coc-tabnine-data/binaries/2.1.22/x86_64-unknown-linux-musl/TabNine EACCES 
     at Process.ChildProcess._handle.onexit (internal/child_process.js:266:19)
     at onErrorNT (internal/child_process.js:468:16)
     at processTickAndRejections (internal/process/task_queues.js:84:21)

And When I'm editing, I get time out errors.

sQVe commented 4 years ago

Is there a binary at /home/a/.config/coc/extentions/coc-tabnine-data/binaries/2.1.22/x86_64-unknown-linux-musl/TabNine and what permissions does it have?

20jam commented 4 years ago
912 -rw-r--r-- 1 beta wheel 932961 Dec 24 05:29 TabNine
sQVe commented 4 years ago

Well its not strange that your getting EACCES when the binary does not have any execute permissions. Try running chmod 755 on the binary.

Something must have failed in the install chain when setting permissions.

20jam commented 4 years ago

So I did chmod 755 no there is not errors from CocCommand tabninte.openConfig, however the config doesn't open and for the timeout error I still get it

sQVe commented 4 years ago

This issue must be because of a failed binary download. Remove everything in coc-tabnine-data, uninstall coc-tabnine and then reinstall again.

20jam commented 4 years ago

After Deleteing coc-tabnine-data and running CocUninstall coc-tabnine-data and reinstalling it , I got the same message as before from running CoCommand tabnine.openConfig:

[coc.nvim] error: Uncaught exception: Error: spawn /home/a/.config/coc/extentions/coc-tabnine-data/binaries/2.1.22/x86_64-unknown-linux-musl/TabNine EACCES 
     at Process.ChildProcess._handle.onexit (internal/child_process.js:266:19)
     at onErrorNT (internal/child_process.js:468:16)
     at processTickAndRejections (internal/process/task_queues.js:84:21)
sQVe commented 4 years ago

Do you have a tabnine_config.json in $HOME/.config/TabNine?

20jam commented 4 years ago

No I do not

sQVe commented 4 years ago

What happens if you type in TabNine::config in a buffer and after it trigger autocomplete? It should open a tab in your browser where you can configure TabNine.

20jam commented 4 years ago

No nothing, I've typed TabNine::config inside the buffer but nothing happend I got `source tabnine timeout after 1000ms

sQVe commented 4 years ago

Closing this as it's been inactive for some time.

zoedsoupe commented 4 years ago

I'm having same issue! Tried to reinstall but no effect.

## versions                                                                    
vim version: NVIM v0.4.4
node version: v14.9.0
coc.nvim version: 0.0.78-0ff42027ff
coc.nvim directory: /home/mdsp/nvim/plugged/coc.nvim
term: xterm-256color
platform: linux (Manjaro GNOME) 
Laptop765 commented 3 years ago

I just ran into a similar issue and it turns out when I was setting up my machine, vim ran as root when it installed coc-tabnine and permissions are all wrong.

While in $HOME run: find | grep -i tabnine | xargs ls -la and make sure all of the user/group permissions are correct (non-root.) After deleting all of the incorrectly permissioned files I was up and running again.

Locations I had to delete (please double check for data loss before blindly deleting!):

ayoubelmhamdi commented 3 years ago

for me i'm go to this directory

cd ~/.config/coc/extensions/coc-tabnine-data/binaries/3.3.96/aarch64-unknown-linux-musl/

and i'm downloas manuel :

curl -LO https://update.tabnine.com/bundles/3.3.96/aarch64-unknown-linux-musl/TabNine

and it's solved for me.

this url got in nvim after tabnine fied to download automatically