codota / tabnine-nvim

Tabnine Client for Neovim
https://tabnine.com
335 stars 31 forks source link

:TabnineHub not functional #13

Closed raelldottin closed 1 year ago

raelldottin commented 1 year ago

I set up the Tabnine nvim plugin on macOS Ventura 13.1 using a MacBook Pro with an arm64 processor, and the TabnineHub command doesn't work.

Here is my configuration:

use({ "codota/tabnine-nvim", run = "./dl_binaries.sh" })

-- import tabnine plugin safely
local status, tabnine = pcall(require, "tabnine")
if not status then
  return
end

tabnine.setup({
  disable_auto_comment = true,
  accept_keymap = "<Tab>",
  dismiss_keymap = "<C-]>",
  debounce_ms = 300,
  suggestion_color = { gui = "#808080", cterm = 244 },
  execlude_filetypes = { "TelescopePrompt" },
})

Could someone help me out?

amirbilu commented 1 year ago

Hi @raelldottin Anything under :messages? What is the output of ps -ef | grep TabNine? While nvim is running?

raelldottin commented 1 year ago

pf -ef | grep TabNine | pbcopy

The TabNine process isn't running since only the grep process is included in the output.

Output: 501 18946 23417 0 2:05PM ttys005 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox TabNine

pf -ef | grep TabNine | grep -v grep has no output.

With no luck, I even tried pf -ef | grep -i TabNine | grep -v grep.

amirbilu commented 1 year ago

What do you see under tabnine-nvim/binaries dir?

raelldottin commented 1 year ago

I don't see the binary directory in /Users/r2e/.local/share/nvim/site/pack/packer/start/tabnine-nvim.

.
├── .git
│   ├── FETCH_HEAD
│   ├── HEAD
│   ├── ORIG_HEAD
│   ├── config
│   ├── description
│   ├── hooks
│   │   ├── applypatch-msg.sample
│   │   ├── commit-msg.sample
│   │   ├── fsmonitor-watchman.sample
│   │   ├── post-update.sample
│   │   ├── pre-applypatch.sample
│   │   ├── pre-commit.sample
│   │   ├── pre-merge-commit.sample
│   │   ├── pre-push.sample
│   │   ├── pre-rebase.sample
│   │   ├── pre-receive.sample
│   │   ├── prepare-commit-msg.sample
│   │   ├── push-to-checkout.sample
│   │   └── update.sample
│   ├── index
│   ├── info
│   │   └── exclude
│   ├── logs
│   │   ├── HEAD
│   │   └── refs
│   │       ├── heads
│   │       │   └── master
│   │       └── remotes
│   │           └── origin
│   │               └── HEAD
│   ├── modules
│   │   └── lua
│   │       └── tabnine
│   │           └── third_party
│   │               └── semver
│   │                   ├── HEAD
│   │                   ├── config
│   │                   ├── description
│   │                   ├── hooks
│   │                   │   ├── applypatch-msg.sample
│   │                   │   ├── commit-msg.sample
│   │                   │   ├── fsmonitor-watchman.sample
│   │                   │   ├── post-update.sample
│   │                   │   ├── pre-applypatch.sample
│   │                   │   ├── pre-commit.sample
│   │                   │   ├── pre-merge-commit.sample
│   │                   │   ├── pre-push.sample
│   │                   │   ├── pre-rebase.sample
│   │                   │   ├── pre-receive.sample
│   │                   │   ├── prepare-commit-msg.sample
│   │                   │   ├── push-to-checkout.sample
│   │                   │   └── update.sample
│   │                   ├── index
│   │                   ├── info
│   │                   │   └── exclude
│   │                   ├── logs
│   │                   │   ├── HEAD
│   │                   │   └── refs
│   │                   │       ├── heads
│   │                   │       │   └── master
│   │                   │       └── remotes
│   │                   │           └── origin
│   │                   │               └── HEAD
│   │                   ├── objects
│   │                   │   ├── info
│   │                   │   └── pack
│   │                   │       ├── pack-82967ec77b2e0a5d8253d582eb699ecc665fe541.idx
│   │                   │       └── pack-82967ec77b2e0a5d8253d582eb699ecc665fe541.pack
│   │                   ├── packed-refs
│   │                   └── refs
│   │                       ├── heads
│   │                       │   └── master
│   │                       ├── remotes
│   │                       │   └── origin
│   │                       │       └── HEAD
│   │                       └── tags
│   ├── objects
│   │   ├── info
│   │   └── pack
│   │       ├── pack-6573d45be04495f9ac993ab26ee7c0d448611da4.idx
│   │       └── pack-6573d45be04495f9ac993ab26ee7c0d448611da4.pack
│   ├── packed-refs
│   ├── refs
│   │   ├── heads
│   │   │   └── master
│   │   ├── remotes
│   │   │   └── origin
│   │   │       └── HEAD
│   │   └── tags
│   └── shallow
├── .gitignore
├── .gitmodules
├── .luarc.json
├── README.md
├── dl_binaries.sh
├── expamples
│   ├── javascript.gif
│   ├── javascript.js
│   └── python.py
└── lua
    ├── lualine
    │   └── components
    │       └── tabnine.lua
    ├── tabnine
    │   ├── binary.lua
    │   ├── third_party
    │   │   └── semver
    │   │       ├── .git
    │   │       ├── .travis.yml
    │   │       ├── MIT-LICENSE.txt
    │   │       ├── README.md
    │   │       ├── rockspecs
    │   │       │   ├── semver-1.1.0-1.rockspec
    │   │       │   ├── semver-1.1.1-1.rockspec
    │   │       │   ├── semver-1.2.0-1.rockspec
    │   │       │   └── semver-1.2.1-1.rockspec
    │   │       ├── semver.lua
    │   │       └── spec
    │   │           ├── custom_assertions.lua
    │   │           └── semver_spec.lua
    │   └── utils.lua
    └── tabnine.lua

46 directories, 78 files

Should I run the ./dl_binaries.sh shell script manually?

raelldottin commented 1 year ago

I ran ./dl_binaries.sh manually, and it created the binaries directory.

binaries
└── 4.4.219
    ├── aarch64-apple-darwin
    │   ├── TabNine
    │   ├── TabNine-deep-cloud
    │   ├── TabNine-deep-local
    │   └── WD-TabNine
    ├── i686-pc-windows-gnu
    │   ├── TabNine-deep-cloud.exe
    │   ├── TabNine-deep-local.exe
    │   ├── TabNine.exe
    │   └── WD-TabNine.exe
    ├── x86_64-apple-darwin
    │   ├── TabNine
    │   ├── TabNine-deep-cloud
    │   ├── TabNine-deep-local
    │   └── WD-TabNine
    ├── x86_64-pc-windows-gnu
    │   ├── TabNine-deep-cloud.exe
    │   ├── TabNine-deep-local.exe
    │   ├── TabNine.exe
    │   └── WD-TabNine.exe
    └── x86_64-unknown-linux-musl
        ├── TabNine
        ├── TabNine-deep-cloud
        ├── TabNine-deep-local
        └── WD-TabNine

7 directories, 20 files
raelldottin commented 1 year ago

Screenshot 2023-01-11 at 2 22 03 PM Ok, I have some progress. I had to disable my VPN.

raelldottin commented 1 year ago

Is there anything else I should test before I start celebrating?

The code generation works.

My VPN uses servers from random countries so it could have been the root cause. Thank you so much for your help.

Screenshot 2023-01-11 at 2 23 30 PM Screenshot 2023-01-11 at 2 23 52 PM

amirbilu commented 1 year ago

Whoo hoo 🎉 Are you getting completions?

raelldottin commented 1 year ago

Yes, I'm getting completions. 👍

Screenshot 2023-01-11 at 2 28 24 PM

danielo515 commented 1 year ago

I also had to manually run the download script. However, despite the lualine integration was working tabnine was disabled. I had to run PackerCompile to make this start working, so anyone reading this, be aware.