neoclide / coc-tabnine

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

Need to update the download process to use the latest version of TabNine #58

Closed judewang closed 3 years ago

judewang commented 3 years ago

TabNine has updated there download script last year November dl_binaries.sh

Mainly updated the url to check version and download.

version="$(curl -sS https://update.tabnine.com/bundles/version)"

# https://github.com/codota/TabNine/blob/c6c2ee071a12461bb45e6367af5b4d4e71f25e5b/dl_binaries.sh#L6
    curl -sS https://update.tabnine.com/bundles/$path/TabNine.zip > binaries/$path/TabNine.zip

# https://github.com/codota/TabNine/blob/c6c2ee071a12461bb45e6367af5b4d4e71f25e5b/dl_binaries.sh#L21

https://update.tabnine.com/bundles/version and https://update.tabnine.com/version will get different versions. The version applicable to M1 chip must use the updated version. The present version will get a 403 error.

CleanShot 2021-01-19 at 19 30 04

The updated version also needs to modify the download path, which needs to be decompressed after downloading. I tried to adjust the url and add extract:'unzip' to the download function, but found that the main TabNine binary will be deleted after the program runs. There may be path-related issues that require additional adjustments.