tzachar / cmp-tabnine

TabNine plugin for hrsh7th/nvim-cmp
MIT License
286 stars 27 forks source link

x86_64-apple-darwin/TabNine is not executable #65

Closed jacksanders-xyz closed 2 years ago

jacksanders-xyz commented 2 years ago

Intel macbook 2020 running Monterey NVIM v0.8.0-dev nvim-cmp cmp-tabnine. output of uname -m is x86_64

Opening nvim I get:

Error executing vim.schedule lua callback: Vim:E475: Invalid value for argument cmd: '/Users/jsanders/.lo
cal/share/nvim/site/pack/packer/start/cmp-tabnine/binaries/4.4.118/x86_64-apple-darwin/TabNine' is not ex
ecutable
stack traceback:
        [C]: in function 'jobstart'
        ...pack/packer/start/cmp-tabnine/lua/cmp_tabnine/source.lua:240: in function '_on_exit'
        ...pack/packer/start/cmp-tabnine/lua/cmp_tabnine/source.lua:141: in function 'new'
        ...e/pack/packer/start/cmp-tabnine/lua/cmp_tabnine/init.lua:8: in function <...e/pack/packer/star
t/cmp-tabnine/lua/cmp_tabnine/init.lua:7>

So I ran the install script manually getting:

++ curl -sS https://update.tabnine.com/bundles/version
+ version=4.4.118
+ case $(uname -s) in
++ uname -s
++ arch
+ '[' i386 == arm64 ']'
++ arch
+ platform=i386-apple-darwin
++ dirname ./install.sh
+ cd .
+ path=4.4.118/i386-apple-darwin
+ curl https://update.tabnine.com/bundles/4.4.118/i386-apple-darwin/TabNine.zip --create-dirs -o binaries/4.4.118/i386-apple-darwin/TabNine.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   454  100   454    0     0   2951      0 --:--:-- --:--:-- --:--:--  3131
+ unzip -o binaries/4.4.118/i386-apple-darwin/TabNine.zip -d binaries/4.4.118/i386-apple-darwin
Archive:  binaries/4.4.118/i386-apple-darwin/TabNine.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of binaries/4.4.118/i386-apple-darwin/TabNine.zip or
        binaries/4.4.118/i386-apple-darwin/TabNine.zip.zip, and cannot find binaries/4.4.118/i386-apple-darwin/TabNine.zip.ZIP, period.

I then tried opening the zip file through different means (other than unzip): jar, the unarchiver.. yet I still received this error message. Wouldn't unzip.

=> My workaround was to replace the install script with shougo's install script for deoplete-tabnine here and running it.

after that, the binary appeared and everything worked

Putting this here in case anyone has the same problem/perhaps the author would find this useful

codepete commented 2 years ago

I got the same issue today, but I saw that my copy of cmp_tabnine didn't have the sameinstall.sh - not really sure why.

gpncarl commented 2 years ago

revert commit 8c4512d148693ecb412ef9be4df9fb4619d033df and it worked for me

bagwaa commented 2 years ago

having the same issue when trying to install on a new computer

tzachar commented 2 years ago

I reverted the commit. I'll contact the original commit's author and see if they can fix the issue.