tzachar / cmp-tabnine

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

Lazynvim error #94

Closed DartMitai closed 1 year ago

DartMitai commented 1 year ago

Good day, after switching to Lazynvim, I began to receive such an error

Failed to run `config` for cmp-tabnine

/home/mitai/.config/nvim/lua/plugins/tabnine.lua:1: module 'cmp-tabnine' not found:
    no field package.preload['cmp-tabnine']
cache_loader: module cmp-tabnine not found
cache_loader_lib: module cmp-tabnine not found
    no file './cmp-tabnine.lua'
    no file '/usr/share/luajit-2.1.0-beta3/cmp-tabnine.lua'
    no file '/usr/local/share/lua/5.1/cmp-tabnine.lua'
    no file '/usr/local/share/lua/5.1/cmp-tabnine/init.lua'
    no file '/usr/share/lua/5.1/cmp-tabnine.lua'
    no file '/usr/share/lua/5.1/cmp-tabnine/init.lua'
    no file './cmp-tabnine.so'
    no file '/usr/local/lib/lua/5.1/cmp-tabnine.so'
    no file '/usr/lib/lua/5.1/cmp-tabnine.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'

# stacktrace:
  - ~/.config/nvim/lua/plugins/tabnine.lua:1
  - ~/.config/nvim/lua/plugins.lua:158 _in_ **config**
  - ~/.config/nvim/lua/plugins.lua:15
  - ~/.config/nvim/init.lua:4

image

{
        'tzachar/cmp-tabnine',
        build = './install.sh',
        dependencies = 'hrsh7th/nvim-cmp',
        config = function()
            require('plugins.tabnine')
        end
    }

log install

$ ./install.sh
++ curl -sS https://update.tabnine.com/bundles/version
+ version=4.4.273
+ case $(uname -s) in
++ uname -s
++ uname -m
+ platform=x86_64-unknown-linux-musl
++ dirname ./install.sh
+ cd .
+ path=4.4.273/x86_64-unknown-linux-musl
+ curl https://update.tabnine.com/bundles/4.4.273/x86_64-unknown-linux-musl/TabNine.zip --create-dirs -o binaries/4.4.273/x86_64-unknown-linux-musl/TabNine.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 35.9M  100 35.9M    0     0  5017k      0  0:00:07  0:00:07 --:--:-- 5290k
+ unzip -o binaries/4.4.273/x86_64-unknown-linux-musl/TabNine.zip -d binaries/4.4.273/x86_64-unknown-linux-musl
Archive:  binaries/4.4.273/x86_64-unknown-linux-musl/TabNine.zip
  inflating: binaries/4.4.273/x86_64-unknown-linux-musl/TabNine
  inflating: binaries/4.4.273/x86_64-unknown-linux-musl/TabNine-deep-cloud
  inflating: binaries/4.4.273/x86_64-unknown-linux-musl/TabNine-deep-local
  inflating: binaries/4.4.273/x86_64-unknown-linux-musl/WD-TabNine
+ rm -rf binaries/4.4.273/x86_64-unknown-linux-musl/TabNine.zip
+ chmod +x binaries/4.4.273/x86_64-unknown-linux-musl/TabNine binaries/4.4.273/x86_64-unknown-linux-musl/TabNine-deep-cloud binaries/4.4.273/x86_64-unknown-linux-musl/TabNine-deep-local binaries/4.4.273/x86_64-unknown-linux-musl/WD-TabNine
tzachar commented 1 year ago

You config function require's the wrong string.

See here: https://github.com/tzachar/cmp-tabnine#setup

DartMitai commented 1 year ago

You config function require's the wrong string.

See here: https://github.com/tzachar/cmp-tabnine#setup

yes, thanks you are cool