tzachar / cmp-tabnine

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

Manually executing ./install.sh fails, with error 'End-of-central-directory signature not found.' #79

Closed gachikuku closed 1 year ago

gachikuku commented 1 year ago

I'm trying to set up tabnine.

error: cmp-tabnine: Cannot find installed TabNine. Please run install.sh

For some reason it cannot set itself up automatically.

So I clone the repo to my packer path, and execute ./install.sh manually.

I get the following error:

➜  cmp-tabnine git:(main) ./install.sh
++ curl -sS https://update.tabnine.com/bundles/version
+ version=4.4.186
+ case $(uname -s) in
++ uname -s
++ uname -m
+ platform=aarch64-unknown-linux-musl
++ dirname ./install.sh
+ cd .
+ path=4.4.186/aarch64-unknown-linux-musl
+ curl https://update.tabnine.com/bundles/4.4.186/aarch64-unknown-linux-musl/TabNine.zip --create-dirs -o binaries/4.4.186/aarch64-unknown-linux-musl/TabNine.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   454  100   454    0     0    966      0 --:--:-- --:--:-- --:--:--   968
+ unzip -o binaries/4.4.186/aarch64-unknown-linux-musl/TabNine.zip -d binaries/4.4.186/aarch64-unknown-linux-musl
Archive:  binaries/4.4.186/aarch64-unknown-linux-musl/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.
Archive:  binaries/4.4.186/aarch64-unknown-linux-musl/TabNine.zip.zip
warning [binaries/4.4.186/aarch64-unknown-linux-musl/TabNine.zip.zip]:  zipfile is empty
➜  cmp-tabnine git:(main)

after I try to unzip the TabNine.zip file I get End-of-central-directory signature not found.

System: Asahi linux on M1 pro 2021.

tzachar commented 1 year ago

Looks like two separate problems. First, the system is not recognized correctly. Second, the downloaded binary was corrupted.

For the second one redownloading should solve the issue. As for the first, what is the output of the following:

> uname -s
> uname -m
> uname -a
gachikuku commented 1 year ago

Hello, thank you for responding.

➜  ~ uname -s
Linux
➜  ~ uname -m
aarch64
➜  ~ uname -a
Linux mp1421 6.1.0-rc6-asahi-5-1-edge-ARCH #2 SMP PREEMPT_DYNAMIC Tue, 22 Nov 2022 17:45:34 +0000 aarch64 GNU/Linux

It seems the binary is not corrupted, because redownloading has been done twice.

tzachar commented 1 year ago

I think I understand. TabNine does not support M1 on linux, as far as I know. See: https://github.com/codota/TabNine/issues/282 https://github.com/codota/TabNine/issues/65