codota / tabnine-nvim

Tabnine Client for Neovim
https://tabnine.com
362 stars 32 forks source link

[BUG] Error executing luv callback #169

Closed SJPBP closed 6 months ago

SJPBP commented 6 months ago

When I try to open nvim with Tabnine installed I following error:

Error executing luv callback:
...local/share/nvim/lazy/tabnine-nvim/lua/tabnine/utils.lua:163: attempt to concatenate local 'chunk' (a nil value)
stack traceback:
        ...local/share/nvim/lazy/tabnine-nvim/lua/tabnine/utils.lua:163: in function <...local/share/nvim/lazy/tabnine-nvim/lua/tabnine/utils.lua:162>

I followed the instructions to install Tabine on Linux. I have curl and unzip in Path. I am using lazy to install Tabnine.

I added

require('tabnine').setup({
  disable_auto_comment=true,
  accept_keymap="<Tab>",
  dismiss_keymap = "<C-]>",
  debounce_ms = 800,
  suggestion_color = {gui = "#808080", cterm = 244},
  exclude_filetypes = {"TelescopePrompt", "NvimTree"},
  log_file_path = nil, -- absolute path to Tabnine log file
})

to init.lua and then I started to get the error described above.

I thought once Tabnine was installed, I could just use it.

Version Info:

aarondill commented 6 months ago

@amirbilu this was broken in #168 It just needs the if chunk then check added back in

amirbilu commented 6 months ago

@aarondill feel free to add if you have time

aarondill commented 6 months ago

@amirbilu I've fixed this at #171