tzachar / cmp-tabnine

TabNine plugin for hrsh7th/nvim-cmp
MIT License
287 stars 28 forks source link

Error: aarch64-apple-darwin/TabNine is not executable #37

Closed ninjarogue closed 2 years ago

ninjarogue commented 2 years ago

I'm getting this error when I open neovim in the terminal.

Error executing vim.schedule lua callback: Vim:E475: Invalid value for argument cmd: '/Users/aricjiang/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries /4.0.59/aarch64-apple-darwin/TabNine' is not executable
stack traceback:
[C]: in function 'jobstart'
...pack/packer/start/cmp-tabnine/lua/cmp_tabnine/source.lua:234: in function '_on_exit'
...pack/packer/start/cmp-tabnine/lua/cmp_tabnine/source.lua:135: in function 'new'
...e/pack/packer/start/cmp-tabnine/lua/cmp_tabnine/init.lua:8: in function <...e/pack/packer/start/cmp-tabnine/lua/cmp_tabnine/init.lua:7>

ENVIRONMENT: Mac OS Monterey Version 12.0.1 Apple M1 Pro

tzachar commented 2 years ago

Can you supply the output for the following:

ls -al /Users/aricjiang/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries

ls -al /Users/aricjiang/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries/4.0.59

ls -al /Users/aricjiang/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries/4.0.59/aarch64-apple-darwin/TabNine

and also try to install Tabnine by hand:

/Users/aricjiang/.local/share/nvim/site/pack/packer/start/cmp-tabnine/install.sh
ninjarogue commented 2 years ago

(These are the results before I installed cmp-tabnine by hand)

  1. ls -al /Users/aricjiang/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries total 0 drwxr-x--- 3 aricjiang staff 96 Jan 21 21:24 . drwxr-xr-x 12 aricjiang staff 384 Jan 21 21:24 .. drwxr-x--- 3 aricjiang staff 96 Jan 21 21:24 4.0.59

  2. ls -al /Users/aricjiang/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries/4.0.59 total 0 drwxr-x--- 3 aricjiang staff 96 Jan 21 21:24 . drwxr-x--- 3 aricjiang staff 96 Jan 21 21:24 .. drwxr-x--- 3 aricjiang staff 96 Jan 21 21:24 aarch64-apple-darwin

  3. ls -al /Users/aricjiang/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries/4.0.59/aarch64-apple-darwin/TabNine ls: /Users/aricjiang/.local/share/nvim/site/pack/packer/start/cmp-tabnine/binaries/4.0.59/aarch64-apple-darwin/TabNine: No such file or directory

ninjarogue commented 2 years ago

The error was resolved after I ran the command that you provided to install Tabnine by hand. Thank you!

tzachar commented 2 years ago

Which plugin manager do you use? and how did you configure it?

tzachar commented 2 years ago

Closing this for lack of user feedback